79 #ifndef Foam_solution_H 80 #define Foam_solution_H 91 template<
class Type>
class Function1;
146 void operator=(
const solution&) =
delete;
248 template<
class FieldType>
word dictName() const
The local dictionary name (final part of scoped name)
scalar equationRelaxationFactor(const word &name) const
Get the relaxation factor for the given equation. Fatal if not found.
A class for handling file names.
A list of keyword definitions, which are a keyword followed by a number of values (eg...
bool read()
Read the solution dictionary.
const dictionary & solver(const word &name) const
The solver controls dictionary for the given field. Same as solverDict(...)
bool relaxField(const word &name) const
True if the relaxation factor is given for the field.
A HashTable of pointers to objects of type <T>, with deallocation management of the pointers...
const dictionary & solverDict(const word &name) const
The solver controls dictionary for the given field. Same as solversDict().subDict(...)
bool relaxEquation(const word &name) const
True if the relaxation factor is given for the equation.
IOdictionary is derived from dictionary and IOobject to give the dictionary automatic IO functionalit...
static void cachePrintMessage(const char *message, const word &name, const FieldType &fld)
Helper for printing cache message.
A class for handling words, derived from Foam::string.
const dictionary & solutionDict() const
The entire dictionary or the optional "select" sub-dictionary.
bool cache(const word &name) const
True if the given field should be cached.
const word & name() const
Name function is needed to disambiguate those inherited from regIOobject and dictionary.
const dictionary & solversDict() const
The solver controls dictionary (all fields)
gmvFile<< "tracers "<< particles.size()<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().x()<< ' ';}gmvFile<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().y()<< ' ';}gmvFile<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().z()<< ' ';}gmvFile<< nl;for(const word &name :lagrangianScalarNames){ IOField< scalar > fld(IOobject(name, runTime.timeName(), cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
scalar fieldRelaxationFactor(const word &name) const
Get the relaxation factor for the given field. Fatal if not found.
virtual ~solution()
Destructor. Non-default in header (incomplete types)
Pointer management similar to std::unique_ptr, with some additional methods and type checking...
Selector class for relaxation factors, solver type and solution.
Registry of regIOobjects.
static int debug
Debug switch (registered name: "solution")
static label upgradeSolverDict(dictionary &dict, const bool verbose=true)
Update from older solver controls syntax.
readOption
Enumeration defining read preferences.