61 class designVariables;
124 optionalSubDict(
"sensitivities");
virtual void write(const word &baseName=word::null)
Write sensitivity fields.
virtual bool readDict(const dictionary &dict)
Read dictionary if changed.
A list of keyword definitions, which are a keyword followed by a number of values (eg...
Abstract base class for adjoint sensitivities.
const fvMesh & mesh() const
Return reference to mesh.
const dictionary & optionalSubDict(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
Find and return a sub-dictionary, otherwise return this dictionary.
virtual const scalarField & calculateSensitivities(autoPtr< designVariables > &designVars)=0
Calculates and returns sensitivity field.
A class for handling words, derived from Foam::string.
static const word null
An empty word.
autoPtr< volScalarField > fieldSensPtr_
Useful typenames for fields defined only at the boundaries.
const dictionary & dict() const
Return the construction dictionary.
const word & name() const
Return reference to name.
TypeName("sensitivity")
Runtime type information.
Mesh data needed to do the Finite Volume discretisation.
Pointer management similar to std::unique_ptr, with some additional methods and type checking...
virtual ~sensitivity()=default
Destructor.
const autoPtr< volScalarField > & fieldSensPtr() const
Get the fieldSensPtr.