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