44 const IOdictionary& dict
48 if (dict.registerObject())
51 const_cast<IOdictionary&
>(
dict).checkOut();
53 io.registerObject() =
true;
88 coeffDict_(dict.
subDict(type +
"Coeffs"))
100 const word solverTypeName(solverDict.
lookup(
"solver"));
102 Info<<
"Selecting motion solver: " << solverTypeName <<
endl;
104 const_cast<Time&
>(mesh.
time()).libs().open
108 dictionaryConstructorTablePtr_
111 if (!dictionaryConstructorTablePtr_)
115 "motionSolver::New(const polyMesh& mesh)" 116 ) <<
"solver table is empty" 120 dictionaryConstructorTable::iterator cstrIter =
121 dictionaryConstructorTablePtr_->find(solverTypeName);
123 if (cstrIter == dictionaryConstructorTablePtr_->end())
127 "motionSolver::New(const polyMesh&)" 128 ) <<
"Unknown solver type " 129 << solverTypeName <<
nl <<
nl 130 <<
"Valid solver types are:" << endl
131 << dictionaryConstructorTablePtr_->sortedToc()
153 return New(mesh, solverDict);
virtual bool writeObject(IOstream::streamFormat fmt, IOstream::versionNumber ver, IOstream::compressionType cmp) const
Write state using given format, version and compression.
void correctPoints(pointField &p) const
Correct motion points.
motionSolver(const polyMesh &mesh)
Construct from polyMesh.
virtual void updateMesh(const mapPolyMesh &)=0
Update local data for topology changes.
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
static const twoDPointCorrector & New(const polyMesh &mesh)
A class for handling words, derived from string.
const polyMesh & mesh() const
Return reference to mesh.
virtual void twoDCorrectPoints(pointField &) const
errorManipArg< error, int > exit(error &err, const int errNo=1)
const dictionary & subDict(const word &) const
Find and return a sub-dictionary.
const word & constant() const
Return constant name.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
Ostream & endl(Ostream &os)
Add newline and flush stream.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
streamFormat
Enumeration for the format of data in the stream.
virtual void solve()=0
Solve for motion.
virtual ~motionSolver()
Destructor.
IOdictionary is derived from dictionary and IOobject to give the dictionary automatic IO functionalit...
virtual tmp< pointField > curPoints() const =0
Provide current points for motion. Uses current motion field.
virtual bool read()
Read object.
fileName::Type type(const fileName &)
Return the file type: DIRECTORY or FILE.
#define FatalErrorIn(functionName)
Report an error message using Foam::FatalError.
compressionType
Enumeration for the format of data in the stream.
static autoPtr< motionSolver > New(const polyMesh &)
Select constructed from polyMesh.
Mesh consisting of general polyhedral cells.
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.
Constant dispersed-phase particle diameter model.
defineRunTimeSelectionTable(reactionRateFlameArea, dictionary)
virtual tmp< pointField > newPoints()
Provide new points for motion. Solves for motion.
const Time & time() const
Return time.
IOdictionary(const IOobject &)
Construct given an IOobject.
A class for managing temporary objects.
virtual bool read()
Read dynamicMeshDict dictionary.
defineTypeNameAndDebug(combustionModel, 0)