51objectiveGeometric::objectiveGeometric
55 const word& adjointSolverName,
56 const word& primalSolverName
59 objective(
mesh,
dict, adjointSolverName, primalSolverName)
71 const word& adjointSolverName,
72 const word& primalSolverName
77 Info<<
"Creating objective function : " <<
dict.dictName()
78 <<
" of type " << modelType <<
endl;
80 auto* ctorPtr = dictionaryConstructorTable(modelType);
89 *dictionaryConstructorTablePtr_
93 return autoPtr<objectiveGeometric>
95 ctorPtr(
mesh,
dict, adjointSolverName, primalSolverName)
Macros for easy insertion into run-time selection tables.
#define addToRunTimeSelectionTable(baseType, thisType, argNames)
Add to construction table with typeName as the key.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
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.
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.
virtual void update()
Update objective function derivatives.
Abstract base class for objective functions. No point in making this runTime selectable since its chi...
virtual void update()=0
Update objective function derivatives.
scalar weight_
Objective weight.
virtual void doNormalization()
Normalize all fields allocated by the objective.
const dictionary & dict() const
Return objective dictionary.
bool computed_
Whether the objective is computed or not.
A class for handling words, derived from Foam::string.
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
#define FatalIOErrorInLookup(ios, lookupTag, lookupName, lookupTable)
Report an error message using Foam::FatalIOError.
messageStream Info
Information stream (stdout output on master, null elsewhere).
Ostream & endl(Ostream &os)
Add newline and flush stream.
IOerror FatalIOError
Error stream (stdout output on all processes), with additional 'FOAM FATAL IO ERROR' header text and ...
errorManipArg< error, int > exit(error &err, const int errNo=1)
#define defineRunTimeSelectionTable(baseType, argNames)
Define run-time selection table.