Go to the documentation of this file.
39 #ifndef objectiveManager_H
40 #define objectiveManager_H
151 const scalar weightedObjective,
152 const bool valid =
true
void updateNormalizationFactor()
class for managing incompressible objective functions.
virtual void addPaEqnSource(fvScalarMatrix &paEqn)=0
const word & primalSolverName() const
A class for handling words, derived from Foam::string.
PtrList< objective > objectives_
virtual bool readDict(const dictionary &dict)
virtual ~objectiveManager()=default
virtual void addUaEqnSource(fvVectorMatrix &UaEqn)=0
TypeName("objectiveManager")
autoPtr< OFstream > weigthedObjectiveFile_
void incrementIntegrationTimes(const scalar timeSpan)
virtual bool writeObjectives(const scalar weightedObjective, const bool valid=true)
const word & adjointSolverManagerName() const
declareRunTimeSelectionTable(autoPtr, objectiveManager, dictionary,(const fvMesh &mesh, const dictionary &dict, const word &adjointSolverName, const word &primalSolverName),(mesh, dict, adjointSolverName, primalSolverName))
A list of pointers to objects of type <T>, with allocation/deallocation management of the pointers....
fvScalarMatrix paEqn(fvm::d2dt2(pa) - sqr(c0) *fvc::laplacian(pa))
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
const word primalSolverName_
Mesh data needed to do the Finite Volume discretisation.
const word adjointSolverName_
void checkIntegrationTimes() const
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
regIOobject is an abstract class derived from IOobject to handle automatic object registration with t...
static autoPtr< objectiveManager > New(const fvMesh &mesh, const dictionary &dict, const word &adjointSolverName, const word &primalSolverName)
Macros to ease declaration of run-time selection tables.
virtual bool writeData(Ostream &) const
A special matrix type and solver, designed for finite volume solutions of scalar equations....
virtual void addTMEqn2Source(fvScalarMatrix &adjTMEqn2)=0
virtual void addTMEqn1Source(fvScalarMatrix &adjTMEqn1)=0
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
const word & adjointSolverName() const
PtrList< objective > & getObjectiveFunctions()