Go to the documentation of this file.
52 if (
dict.registerObject())
112 const word solverName
114 solverDict.
getCompat<
word>(
"motionSolver", {{
"solver", -1612}})
117 Info<<
"Selecting motion solver: " << solverName <<
nl;
123 dictionaryConstructorTablePtr_
126 if (!dictionaryConstructorTablePtr_)
129 <<
"solver table is empty"
133 auto cstrIter = dictionaryConstructorTablePtr_->cfind(solverName);
135 if (!cstrIter.found())
142 *dictionaryConstructorTablePtr_
146 return autoPtr<motionSolver>(cstrIter()(
mesh, solverDict));
188 dictEntry.
name() +
":meshSolver",
static autoPtr< motionSolver > New(const polyMesh &)
Select constructed from polyMesh.
IOdictionary is derived from dictionary and IOobject to give the dictionary automatic IO functionalit...
Defines the attributes of an object for which implicit objectRegistry management is supported,...
A keyword and a list of tokens is a 'dictionaryEntry'.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
virtual const fileName & name() const
Return the scoped dictionary name (eg, dictA.dictB.dictC)
A class for handling words, derived from Foam::string.
A class for managing temporary objects.
defineRunTimeSelectionTable(reactionRateFlameArea, dictionary)
const Time & time() const
Return time.
static const twoDPointCorrector & New(const polyMesh &mesh, Args &&... args)
Get existing or create a new MeshObject.
virtual bool read()
Read object.
virtual void twoDCorrectPoints(pointField &) const
motionSolver(const polyMesh &mesh)
Construct from polyMesh.
T getCompat(const word &keyword, std::initializer_list< std::pair< const char *, int >> compat, enum keyType::option=keyType::REGEX) const
Mesh consisting of general polyhedral cells.
virtual void solve()=0
Solve for motion.
static const dictionary null
An empty dictionary, which is also the parent for all dictionaries.
bool registerObject() const
Should object created with this IOobject be registered?
#define NotImplemented
Issue a FatalErrorIn for a function not currently implemented.
#define FatalIOErrorInLookup(ios, lookupTag, lookupName, lookupTable)
Report an error message using Foam::FatalIOError.
iNew(const polyMesh &mesh)
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
messageStream Info
Information stream (uses stdout - output is on the master only)
virtual tmp< pointField > curPoints() const =0
Provide current points for motion. Uses current motion field.
The IOstreamOption is a simple container for options an IOstream can normally have.
virtual bool read()
Read dynamicMeshDict dictionary.
errorManipArg< error, int > exit(error &err, const int errNo=1)
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tdf1, const word &name, const dimensionSet &dimensions)
Global function forwards to reuseTmpDimensionedField::New.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
virtual autoPtr< motionSolver > clone() const
Clone function.
virtual tmp< pointField > newPoints()
Provide new points for motion. Solves for motion.
static IOobject stealRegistration(const IOdictionary &dict)
De-register object if registered and assign to current.
fileName::Type type(const fileName &name, const bool followLink=true)
Return the file type: DIRECTORY or FILE, normally following symbolic links.
virtual void updateMesh(const mapPolyMesh &)=0
Update local data for topology changes.
virtual bool writeObject(IOstreamOption streamOpt, const bool valid) const
Write state using stream options.
const dictionary & optionalSubDict(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
Find and return a sub-dictionary, otherwise return this dictionary.
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
const Time & time() const
Return the top-level database.
void correctPoints(pointField &p) const
Correct motion points.
const word & constant() const
Return constant name.
constant condensation/saturation model.
defineTypeNameAndDebug(combustionModel, 0)