Go to the documentation of this file.
31 auto motionModel = dict.
getVal<
word>(
"motionModel");
33 if(motionModel !=
"fixedWall")
36 " motionModel should be fixedWall, but found " << motionModel <<
endl;
48 dict.
add(
"motionModel",
"fixedWall");
63 if(! readDictionary(dict) )
78 if( !motionInfo.
read(is) )
85 if( !readDictionary(motionInfo) )
return false;
98 if( !writeDictionary(motionInfo))
103 if( !motionInfo.
write(os) )
106 " error in writing dictionray to file. \n";
const char * motionModelFile__
FUNCTION_H bool read(iIstream &is)
Read from input stream is.
bool writeDictionary(dictionary &dict) const
write to a dictionary
virtual bool write(iOstream &os) const
virtual bool read(iIstream &is)
dictionary & subDictOrCreate(const word &keyword)
bool add(const word &keyword, const float &v)
iOstream & endl(iOstream &os)
Add newline and flush stream.
FUNCTION_H bool write(iOstream &os) const
Write to output stream os.
#define fatalErrorInFunction
virtual const word & name() const
Return the name of the stream.
T getVal(const word &keyword) const
bool readDictionary(const dictionary &dict)
Read from a dictionary.
#define ioErrorInFile(fileName, lineNumber)
int32 lineNumber() const
Const access to the current stream line number.