Go to the documentation of this file.
42 if(!read(axisMotion, dict))
45 " error in reading rotatingAxis from dictionary "<< dict.
globalName()<<
endl;
62 if(!rotatingAxis::read(dict))
return false;
68 parentAxisIndex_ = -1;
72 parentAxisIndex_ = axisMotion-> nameToIndex(rotAxis);
85 if( !rotatingAxis::write(dict) )
return false;
87 if(parentAxisIndex_ == -1)
89 dict.
add(
"rotationAxis",
"none");
93 auto rotAxis = axisMotion->
indexToName(parentAxisIndex_);
94 dict.
add(
"rotationAxis", rotAxis);
FUNCTION_H bool write(const multiRotatingAxisMotion *axisMotion, dictionary &dict) const
Write to dictionary.
T getValOrSet(const word &keyword, const T &setVal) const
get the value of data entry or if not found, set the value to setVal
FUNCTION_H bool read(multiRotatingAxisMotion *axisMotion, const dictionary &dict)
Read from dictionary.
#define fatalExit
Fatal exit.
INLINE_FUNCTION_H word indexToName(label i) const
Index of motion component to component name.
virtual word globalName() const
global name of entry, separated with dots
bool add(const word &keyword, const float &v)
add a float dataEntry
iOstream & endl(iOstream &os)
Add newline and flush stream.
#define fatalErrorInFunction
Report a fatal error and function name and exit the application.
INLINE_FUNCTION_HD multiRotatingAxis()
Empty Constructor.
Rotating axis motion model for walls.
Dictionary holds a set of data entries or sub-dictionaries that are enclosed in a curely braces or ar...