51 objectiveGeometric::objectiveGeometric
55 const word& adjointSolverName,
56 const word& primalSolverName
71 const word& adjointSolverName,
72 const word& primalSolverName
78 <<
" of type " << modelType <<
endl;
80 auto* ctorPtr = dictionaryConstructorTable(modelType);
89 *dictionaryConstructorTablePtr_
93 return autoPtr<objectiveGeometric>
95 ctorPtr(
mesh,
dict, adjointSolverName, primalSolverName)
word dictName() const
The local dictionary name (final part of scoped name)
const dictionary & dict() const
Return objective dictionary.
errorManipArg< error, int > exit(error &err, const int errNo=1)
A list of keyword definitions, which are a keyword followed by a number of values (eg...
virtual void doNormalization()
Normalize all fields allocated by the objective.
Abstract base class for objective functions that contain only geometric quantities.
Ostream & endl(Ostream &os)
Add newline and flush stream.
static autoPtr< objectiveGeometric > New(const fvMesh &mesh, const dictionary &dict, const word &adjointSolverName, const word &primalSolverName)
Return a reference to the selected turbulence model.
T get(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
Find and return a T. FatalIOError if not found, or if the number of tokens is incorrect.
Macros for easy insertion into run-time selection tables.
A class for handling words, derived from Foam::string.
bool computed_
Whether the objective is computed or not.
Abstract base class for objective functions. No point in making this runTime selectable since its chi...
defineRunTimeSelectionTable(reactionRateFlameArea, dictionary)
defineTypeNameAndDebug(combustionModel, 0)
scalar weight_
Objective weight.
Mesh data needed to do the Finite Volume discretisation.
messageStream Info
Information stream (stdout output on master, null elsewhere)
virtual void update()=0
Update objective function derivatives.
virtual void update()
Update objective function derivatives.
Pointer management similar to std::unique_ptr, with some additional methods and type checking...
#define FatalIOErrorInLookup(ios, lookupTag, lookupName, lookupTable)
Report an error message using Foam::FatalIOError.
addToRunTimeSelectionTable(functionObject, pointHistory, dictionary)
IOerror FatalIOError
Error stream (stdout output on all processes), with additional 'FOAM FATAL IO ERROR' header text and ...