Go to the documentation of this file.
41 #ifndef adjointSolverManager_H
42 #define adjointSolverManager_H
102 const word& managerType,
PtrList< adjointSolver > adjointSolvers_
label nConstraints() const
Number of adjoint solvers corresponding to constraints.
label nObjectives() const
Number of adjoint solvers corresponding to objectives.
const word & name() const
Return name.
scalar operatingPointWeight() const
Const access to adjoint solvers.
A class for handling words, derived from Foam::string.
virtual PtrList< scalarField > constraintSensitivities()
Get constraint sensitivities. One scalarField per constraint.
void clearSensitivities()
Clear sensitivity fields from all adjoint solvers.
A class for managing temporary objects.
const word primalSolverName_
label nAdjointSolvers() const
Total number of adjoint solvers.
virtual tmp< scalarField > aggregateSensitivities()
Aggregate sensitivities from various adjoint solvers.
virtual bool readDict(const dictionary &dict)
virtual tmp< scalarField > constraintValues()
Get constraint values.
TypeName("adjointSolverManager")
A list of pointers to objects of type <T>, with allocation/deallocation management of the pointers....
virtual ~adjointSolverManager()=default
Destructor.
void computeAllSensitivities()
Class for managing adjoint solvers, which may be more than one per operating point.
const dictionary & dict() const
Const access to the construction dictionary.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Mesh data needed to do the Finite Volume discretisation.
const PtrList< adjointSolver > & adjointSolvers() const
Const access to adjoint solvers.
const word & managerName() const
Const access to the manager name.
scalar objectiveValue()
Get objective value.
virtual void solveAdjointEquations()
regIOobject is an abstract class derived from IOobject to handle automatic object registration with t...
labelList constraintSolverIDs_
const word & primalSolverName() const
Const access to the primal solver name.
void updatePrimalBasedQuantities(const word &name)
Update fields related to primal solution.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
virtual bool writeData(Ostream &) const
Pure virtual writeData function.
labelList objectiveSolverIDs_
scalar operatingPointWeight_