Fixed wall motion model for walls. More...
Classes | |
class | Model |
Motion model class to be passed to computational units/kernels for transfing points and returning velocities at various positions. More... | |
Public Member Functions | |
TypeInfoNV ("fixedWall") | |
Type info. More... | |
fixedWall () | |
Empty. More... | |
fixedWall (const dictionary &dict) | |
Constructor with dictionary. More... | |
fixedWall (const fixedWall &)=default | |
Copy constructor. More... | |
fixedWall (fixedWall &&)=default | |
Move constructor. More... | |
fixedWall & | operator= (const fixedWall &)=default |
Copy assignment. More... | |
fixedWall & | operator= (fixedWall &&)=default |
Move assignment. More... | |
~fixedWall ()=default | |
Destructor. More... | |
Model | getModel (real t) const |
Return motion model t is the current simulation time More... | |
int32 | nameToIndex (const word &name) const |
Name of the motion component to index. More... | |
word | indexToName (label i) const |
Index of motion component to name. More... | |
INLINE_FUNCTION_HD realx3 | pointVelocity (label n, const realx3 &p) const |
Velocity at point p. More... | |
INLINE_FUNCTION_HD realx3 | transferPoint (label n, const realx3 p, real dt) const |
Transfer point p for dt seconds according to motion component n. More... | |
INLINE_FUNCTION_HD bool | transferPoint (label n, realx3 *pVec, size_t numP, real dt) |
Transfer a vector of point pVec for dt seconds according to motion component n. More... | |
INLINE_FUNCTION_HD bool | isMoving () const |
Are walls moving. More... | |
bool | move (real t, real dt) |
Move points. More... | |
FUNCTION_H bool | read (iIstream &is) |
Read from input stream is. More... | |
FUNCTION_H bool | write (iOstream &os) const |
Write to output stream os. More... | |
Protected Member Functions | |
bool | readDictionary (const dictionary &dict) |
Read from a dictionary. More... | |
bool | writeDictionary (dictionary &dict) const |
write to a dictionary More... | |
Protected Attributes | |
const word | name_ = "none" |
Name. More... | |
Fixed wall motion model for walls.
This class is used for geometries that are fixed during simulation.
// In geometryDict file, this will defines fixed walls during simulation ... motionModel fixedWall; ...
Definition at line 50 of file fixedWall.hpp.
fixedWall | ( | ) |
Empty.
Definition at line 55 of file fixedWall.cpp.
fixedWall | ( | const dictionary & | dict | ) |
|
default |
Destructor.
|
protected |
Read from a dictionary.
Definition at line 26 of file fixedWall.cpp.
References pFlow::endl(), fatalErrorInFunction, and dictionary::getVal().
|
protected |
write to a dictionary
Definition at line 44 of file fixedWall.cpp.
References dictionary::add(), and dictionary::subDictOrCreate().
TypeInfoNV | ( | "fixedWall" | ) |
Type info.
Return motion model t is the current simulation time
Definition at line 140 of file fixedWall.hpp.
Name of the motion component to index.
Definition at line 146 of file fixedWall.hpp.
Index of motion component to name.
Definition at line 152 of file fixedWall.hpp.
References fixedWall::name_.
|
inline |
|
inline |
Transfer point p for dt seconds according to motion component n.
Definition at line 167 of file fixedWall.hpp.
|
inline |
Transfer a vector of point pVec for dt seconds according to motion component n.
Definition at line 175 of file fixedWall.hpp.
|
inline |
Are walls moving.
Definition at line 182 of file fixedWall.hpp.
Move points.
Definition at line 188 of file fixedWall.hpp.
bool read | ( | iIstream & | is | ) |
Read from input stream is.
Definition at line 70 of file fixedWall.cpp.
References ioErrorInFile, IOstream::lineNumber(), pFlow::motionModelFile__, IOstream::name(), and dictionary::read().
bool write | ( | iOstream & | os | ) | const |
Write to output stream os.
Definition at line 91 of file fixedWall.cpp.
References ioErrorInFile, IOstream::lineNumber(), pFlow::motionModelFile__, IOstream::name(), and dictionary::write().
|
protected |