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)
bool writeDictionary(dictionary &dict) const
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)
FUNCTION_H bool write(iOstream &os) const
#define fatalErrorInFunction
virtual const word & name() const
T getVal(const word &keyword) const
bool readDictionary(const dictionary &dict)
#define ioErrorInFile(fileName, lineNumber)