Rotating axis 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... | |
Protected Types | |
using | axisVector_HD = VectorDual< multiRotatingAxis > |
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 | |
axisVector_HD | axis_ |
Vector of multiRotaingAxis axes. More... | |
VectorDual< int32 > | sortedIndex_ |
Sorted index based on number of parrents each axis ha. More... | |
wordList | axisName_ |
List of axes names. More... | |
label | numAxis_ = 0 |
Number of axes. More... | |
Rotating axis motion model for walls.
This class is used for simulaiton that at least one wall components is moving according to multiRotatingAxis motion mode. One or more than one motion components can be defined in multiRotatingAxisMotionInfo dictionary
// In geometryDict file, this will defines multi-rotating walls during simulation ... motionModel multiRotatingAxisMotion; multiRotatingAxisMotionInfo { rotationAxis1 { // the definition based on class multiRotatingAxis } rotatoinAxis2 { // the definition based on calss multiRotatingAxis } } ...
Definition at line 65 of file multiRotatingAxisMotion.hpp.
|
protected |
Definition at line 121 of file multiRotatingAxisMotion.hpp.
Empty constructor.
Definition at line 163 of file multiRotatingAxisMotion.cpp.
multiRotatingAxisMotion | ( | const dictionary & | dict | ) |
Construct with dictionary.
Definition at line 167 of file multiRotatingAxisMotion.cpp.
References fatalExit.
|
default |
Copy constructor.
|
delete |
No Move.
|
default |
Destructor.
|
protected |
Read from a dictionary.
Definition at line 27 of file multiRotatingAxisMotion.cpp.
References dictionary::dictionaryKeywords(), pFlow::endl(), fatalErrorInFunction, dictionary::getVal(), n, sort(), and dictionary::subDict().
|
protected |
Write to a dictionary.
Definition at line 139 of file multiRotatingAxisMotion.cpp.
References dictionary::add(), pFlow::endl(), fatalErrorInFunction, ForAll, and dictionary::subDictOrCreate().
TypeInfoNV | ( | "multiRotatingAxisMotion" | ) |
Type info.
|
default |
Copy assignment.
|
delete |
No move assignment.
Retrun motion model at time t.
Definition at line 177 of file multiRotatingAxisMotion.hpp.
References multiRotatingAxisMotion::axis_, multiRotatingAxisMotion::getAxisListPtrDevice(), VectorDual< T, MemorySpace >::modifyOnHost(), multiRotatingAxisMotion::numAxis_, and VectorDual< T, MemorySpace >::syncViews().
|
inline |
Pointer to axis list on host side.
Definition at line 192 of file multiRotatingAxisMotion.hpp.
References multiRotatingAxisMotion::axis_, and VectorDual< T, MemorySpace >::data().
|
inline |
Pointer to axis list on device.
Definition at line 199 of file multiRotatingAxisMotion.hpp.
References multiRotatingAxisMotion::axis_, and VectorDual< T, MemorySpace >::data().
Referenced by multiRotatingAxisMotion::getModel().
|
inline |
Name of motion component to index.
Definition at line 206 of file multiRotatingAxisMotion.hpp.
References multiRotatingAxisMotion::axisName_, fatalErrorInFunction, fatalExit, and List< T >::findi().
|
inline |
Index of motion component to component name.
Definition at line 224 of file multiRotatingAxisMotion.hpp.
References multiRotatingAxisMotion::axisName_, pFlow::endl(), fatalErrorInFunction, fatalExit, and multiRotatingAxisMotion::numAxis_.
Referenced by multiRotatingAxis::write().
|
inline |
Is moving.
Definition at line 240 of file multiRotatingAxisMotion.hpp.
FUNCTION_H bool move | ( | real | t, |
real | dt | ||
) |
Move points.
Definition at line 178 of file multiRotatingAxisMotion.cpp.
bool read | ( | iIstream & | is | ) |
Read from input stream is.
Definition at line 198 of file multiRotatingAxisMotion.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 219 of file multiRotatingAxisMotion.cpp.
References ioErrorInFile, IOstream::lineNumber(), pFlow::motionModelFile__, IOstream::name(), and dictionary::write().
|
protected |
Vector of multiRotaingAxis axes.
Definition at line 124 of file multiRotatingAxisMotion.hpp.
Referenced by multiRotatingAxisMotion::getAxisListPtrDevice(), multiRotatingAxisMotion::getAxisListPtrHost(), and multiRotatingAxisMotion::getModel().
|
protected |
Sorted index based on number of parrents each axis ha.
Definition at line 127 of file multiRotatingAxisMotion.hpp.
|
protected |
List of axes names.
Definition at line 130 of file multiRotatingAxisMotion.hpp.
Referenced by multiRotatingAxisMotion::indexToName(), and multiRotatingAxisMotion::nameToIndex().
|
protected |
Number of axes.
Definition at line 133 of file multiRotatingAxisMotion.hpp.
Referenced by multiRotatingAxisMotion::getModel(), and multiRotatingAxisMotion::indexToName().