Go to the documentation of this file.
34 " error in reading rotatingAxis from dictionary "<< dict.
globalName()<<
endl;
50 rotating_(!
equal(omega,0.0))
90 if( !dict.
add(
"omega", omega_) )
93 " error in writing omega to dictionary "<< dict.
globalName()<<
endl;
105 if( !rotatingAxis::timeInterval::read(is))
return false;
106 if( !rotatingAxis::line::read(is))
return false;
111 is >> omegaw >> omega;
117 if(omegaw !=
"omega")
120 " expected omega but found "<< omegaw <<
endl;
136 if( !rotatingAxis::timeInterval::write(os))
return false;
137 if( !rotatingAxis::line::write(os) )
return false;
FUNCTION_HD real setOmega(real omega)
Set omega.
T getValOrSet(const word &keyword, const T &setVal) const
get the value of data entry or if not found, set the value to setVal
#define fatalExit
Fatal exit.
FUNCTION_H bool write(dictionary &dict) const
INLINE_FUNCTION_HD bool equal(const box &b1, const box &b2, real tol=smallValue)
FUNCTION_H bool write(dictionary &ditc) const
char readEndStatement(const char *funcName)
End statement character ;.
virtual word globalName() const
global name of entry, separated with dots
bool add(const word &keyword, const float &v)
add a float dataEntry
FUNCTION_H bool read(const dictionary &dict)
iOstream & endl(iOstream &os)
Add newline and flush stream.
FUNCTION_H bool write(dictionary &dict) const
Write to dictionary.
bool rotating_
is rotating
virtual bool check(const char *operation) const
Check IOstream status for given operation.
FUNCTION_HD rotatingAxis()=default
Empty constructor.
FUNCTION_H bool read(const dictionary &dict)
Interface class for any input stream
real omega_
rotation speed
#define fatalErrorInFunction
Report a fatal error and function name and exit the application.
INLINE_FUNCTION_HD real omega() const
Return omega.
virtual const word & name() const
Return the name of the stream.
FUNCTION_H bool read(const dictionary &dict)
Read from dictionary.
#define ioErrorInFile(fileName, lineNumber)
Report an error in file operation with supplied fileName and lineNumber.
int32 lineNumber() const
Const access to the current stream line number.
Interface class for any output stream.
iOstream & writeWordEntry(const word &key, const T &value)
Write a keyword/value entry.
Dictionary holds a set of data entries or sub-dictionaries that are enclosed in a curely braces or ar...