38namespace incompressible
61 sensTypes_(
dict.subDict(
"sensTypes").toc()),
62 sens_(sensTypes_.size())
84 if (sensitivity::readDict(
dict))
105 sens_[sI].accumulateIntegrand(dt);
114 sens_[sI].assembleSensitivities();
136 sens_[sI].clearSensitivities();
Macros for easy insertion into run-time selection tables.
#define addToRunTimeSelectionTable(baseType, thisType, argNames)
Add to construction table with typeName as the key.
static autoPtr< Time > New()
Construct (dummy) Time - no functionObjects or libraries.
Base class for adjoint solvers.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
const dictionary & subDict(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
Find and return a sub-dictionary.
virtual bool write()
Write the output fields.
Mesh data needed to do the Finite Volume discretisation.
Base class for incompressibleAdjoint solvers.
Abstract base class for adjoint-based sensitivities in incompressible flows.
Calculation of adjoint based sensitivities of multiple types.
virtual void clearSensitivities()
Zero sensitivity fields and their constituents.
virtual void assembleSensitivities()
Assemble sensitivities.
const scalarField & calculateSensitivities()
Calculates sensitivities at wall surface points.
PtrList< adjointSensitivity > sens_
virtual void accumulateIntegrand(const scalar dt)
Accumulate sensitivity integrands.
const dictionary & dict() const
Return the construction dictionary.
A class for handling words, derived from Foam::string.
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
messageStream Info
Information stream (stdout output on master, null elsewhere)
fileName::Type type(const fileName &name, const bool followLink=true)
Return the file type: DIRECTORY or FILE, normally following symbolic links.
Ostream & endl(Ostream &os)
Add newline and flush stream.
#define forAll(list, i)
Loop across all elements in list.