44 const word& managerType,
46 const word& solverName
64 managerType_(managerType),
66 solverName_(solverName),
67 active_(
dict.getOrDefault<bool>(
"active", true)),
68 isMaster_(
dict.getOrDefault<bool>(
"isMaster", true)),
69 useSolverNameForFields_
@ READ_IF_PRESENT
Reading is optional [identical to LAZY_READ].
@ AUTO_WRITE
Automatically write from objectRegistry::writeObject().
Defines the attributes of an object for which implicit objectRegistry management is supported,...
const Time & time() const noexcept
Return Time associated with the objectRegistry.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
T getOrDefault(const word &keyword, const T &deflt, enum keyType::option matchOpt=keyType::REGEX) const
Find and return a T, or return the given default value. FatalIOError if it is found and the number of...
static const dictionary null
An empty dictionary, which is also the parent for all dictionaries.
A class for handling file names.
Mesh data needed to do the Finite Volume discretisation.
localIOdictionary is derived from IOdictionary but excludes parallel master reading.
localIOdictionary(const IOobject &io, const dictionary *fallback=nullptr)
Construct given an IOobject and optional fallback dictionary content.
autoPtr< variablesSet > vars_
Base variableSet pointer.
const word & managerType() const
Return the manager type.
bool active_
Solve equations?
bool useSolverNameForFields_
Append the variables related to the solver with it name.
bool isMaster_
Is the solver the master one.
const word managerType_
The optimisation type.
virtual void restoreInitValues()
Restore initial field values if necessary.
dictionary dict_
Dictionary holding the solver info.
virtual bool readDict(const dictionary &dict)
virtual void addTopOFvOptions() const
Add topO fvOptions.
const dictionary & dict() const
Return the solver dictionary.
virtual void preLoop()
Functions to be called before loop.
const word solverName_
Solver name.
const fvMesh & mesh() const
Return the solver mesh.
const word & solverName() const
Return the solver name.
fvMesh & mesh_
Reference to the mesh database.
virtual void postLoop()
Functions to be called after loop.
solver(const solver &)=delete
No copy construct.
A class for handling words, derived from Foam::string.
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.