32 libs.
open(
"lib" + solverName +
"Solver.so");
38 const word& solverName,
46 fvMeshConstructorTable::iterator cstrIter =
47 fvMeshConstructorTablePtr_
48 ? fvMeshConstructorTablePtr_->find(solverName)
49 : fvMeshConstructorTable::end();
51 if (cstrIter == fvMeshConstructorTable::end())
56 if (!fvMeshConstructorTablePtr_)
59 <<
"Solvers table is empty"
63 if (cstrIter == fvMeshConstructorTable::end())
66 <<
"Unknown solver type "
67 << solverName <<
nl <<
nl
68 <<
"Valid solvers are :" <<
endl
69 << fvMeshConstructorTablePtr_->sortedToc()
77 solverPtr->fvModels();
78 solverPtr->fvConstraints();
bool open(const fileName &libName, const bool verbose=true)
Open the named library, optionally with warnings if problems occur.
bool openPattern(const regExp &pattern, const bool verbose=true)
Open the named libraries, optionally with warnings if problems occur.
Mesh data needed to do the Finite Volume discretisation.
static autoPtr< solver > New(const word &solverName, fvMesh &mesh)
Select, construct and return the solver.
static void load(const word &solverName)
Load the specified solver library.
A class for handling words, derived from string.
Foam::fvMesh mesh(Foam::IOobject(regionName, runTime.name(), runTime, Foam::IOobject::MUST_READ), false)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
errorManipArg< error, int > exit(error &err, const int errNo=1)
dlLibraryTable libs
Table of loaded dynamic libraries.
Ostream & endl(Ostream &os)
Add newline and flush stream.
Ostream & indentOrNl(Ostream &os)
Indent stream or add newline if indent level == 0.