70 const word solverTypeName = solverDict.
lookup<
word>(
"motionSolver");
72 Info<<
"Selecting motion solver: " << solverTypeName <<
endl;
78 dictionaryConstructorTablePtr_
81 if (!dictionaryConstructorTablePtr_)
84 <<
"solver table is empty"
88 dictionaryConstructorTable::iterator cstrIter =
89 dictionaryConstructorTablePtr_->find(solverTypeName);
91 if (cstrIter == dictionaryConstructorTablePtr_->end())
94 <<
"Unknown solver type "
95 << solverTypeName <<
nl <<
nl
96 <<
"Valid solver types are:" <<
endl
97 << dictionaryConstructorTablePtr_->sortedToc()
static twoDPointCorrector & New(const word &name, const polyMesh &mesh)
Construct and return the named DemandDrivenMeshObject.
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.
const dictionary & optionalSubDict(const word &) const
Find and return a sub-dictionary if found.
bool open(const fileName &libName, const bool verbose=true)
Open the named library, optionally with warnings if problems occur.
Virtual base class for mesh motion solver.
virtual ~motionSolver()
Destructor.
virtual tmp< pointField > newPoints()
Provide new points for motion. Solves for motion.
motionSolver(const word &name, const polyMesh &mesh, const word &type)
Construct from polyMesh and dictionary and type.
virtual void twoDCorrectPoints(pointField &) const
Correct point field for reduced-dimensionality cases.
static autoPtr< motionSolver > New(const word &name, const polyMesh &, const dictionary &)
Select constructed from polyMesh and dictionary.
virtual bool write() const
Optionally write motion state information for restart.
virtual autoPtr< motionSolver > clone() const
Clone function.
Mesh consisting of general polyhedral cells.
A class for managing temporary objects.
void correctPoints(pointField &p) const
Correct motion points.
A class for handling words, derived from string.
Foam::fvMesh mesh(Foam::IOobject(regionName, runTime.name(), runTime, Foam::IOobject::MUST_READ), false)
#define NotImplemented
Issue a FatalErrorIn for a function not currently implemented.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
errorManipArg< error, int > exit(error &err, const int errNo=1)
dlLibraryTable libs
Table of loaded dynamic libraries.
defineRunTimeSelectionTable(reactionRateFlameArea, dictionary)
Ostream & endl(Ostream &os)
Add newline and flush stream.
defineTypeNameAndDebug(combustionModel, 0)
word name(const LagrangianState state)
Return a string representation of a Lagrangian state enumeration.
fileType type(const fileName &, const bool checkVariants=true, const bool followLink=true)
Return the file type: directory or file.
SolverPerformance< Type > solve(fvMatrix< Type > &, const word &)
Solve returning the solution statistics given convergence tolerance.