40 #ifndef objectiveGeometric_H 41 #define objectiveGeometric_H 86 const word& adjointSolverName,
87 const word& primalSolverName
89 (
mesh,
dict, adjointSolverName, primalSolverName)
100 const word& adjointSolverName,
101 const word& primalSolverName
112 const word& adjointSolverName,
113 const word& primalSolverName
124 virtual scalar
J() = 0;
TypeName("geometric")
Runtime type information.
declareRunTimeSelectionTable(autoPtr, objectiveGeometric, dictionary,(const fvMesh &mesh, const dictionary &dict, const word &adjointSolverName, const word &primalSolverName),(mesh, dict, adjointSolverName, primalSolverName))
const dictionary & dict() const
Return objective dictionary.
A list of keyword definitions, which are a keyword followed by a number of values (eg...
Abstract base class for objective functions that contain only geometric quantities.
static autoPtr< objectiveGeometric > New(const fvMesh &mesh, const dictionary &dict, const word &adjointSolverName, const word &primalSolverName)
Return a reference to the selected turbulence model.
A class for handling words, derived from Foam::string.
virtual ~objectiveGeometric()=default
Destructor.
virtual scalar J()=0
Return the objective function value.
Abstract base class for objective functions. No point in making this runTime selectable since its chi...
Mesh data needed to do the Finite Volume discretisation.
virtual void update()
Update objective function derivatives.
Pointer management similar to std::unique_ptr, with some additional methods and type checking...