44 const word& managerType,
63 managerType_(managerType),
66 active_(
dict.getOrDefault(
"active", true)),
67 optTypeSource_(nullptr),
157 optTypeSource_ = &optSource;
virtual void restoreInitValues()
Restore initial field values if necessary.
A class for handling file names.
Base class for solution control classes.
A list of keyword definitions, which are a keyword followed by a number of values (eg...
const fvMesh & mesh() const
Return the solver mesh.
const word dictName("faMeshDefinition")
localIOdictionary is derived from IOdictionary but excludes parallel master reading.
virtual bool active()
Return state of solver.
A class for handling words, derived from Foam::string.
solver(const solver &)=delete
No copy construct.
virtual const dictionary & dict() const
Return the solver dictionary.
virtual ~solver()
Destructor.
virtual bool readDict(const dictionary &dict)
const volScalarField * optTypeSource_
Pointer to a source term coming from the optimisationType (e.g. porosity from topologyOptimisation) ...
defineTypeNameAndDebug(combustionModel, 0)
virtual void preLoop()
Functions to be called before loop.
Base class for creating a set of variables.
const word & solverName() const
Return the solver name.
Mesh data needed to do the Finite Volume discretisation.
const variablesSet & getVariablesSet() const
Return constant reference to variableSet used by the solver.
Pointer management similar to std::unique_ptr, with some additional methods and type checking...
void updateOptTypeSource(const autoPtr< volScalarField > &optSourcePtr)
Update source term related to optimisationType.
Defines the attributes of an object for which implicit objectRegistry management is supported...
virtual void postLoop()
Functions to be called after loop.