38 namespace incompressible
53 sensitivityMultiple::sensitivityMultiple
61 sensTypes_(
dict.subDict(
"sensTypes").
toc()),
62 sens_(sensTypes_.size())
105 sens_[sI].accumulateIntegrand(dt);
114 sens_[sI].assembleSensitivities();
136 sens_[sI].clearSensitivities();
virtual bool readDict(const dictionary &dict)
Read dictionary if changed.
defineTypeNameAndDebug(adjointEikonalSolver, 0)
A list of keyword definitions, which are a keyword followed by a number of values (eg...
const scalarField & calculateSensitivities()
Calculates sensitivities at wall surface points.
Ostream & endl(Ostream &os)
Add newline and flush stream.
Base class for adjoint solvers.
virtual void clearSensitivities()
Zero sensitivity fields and their constituents.
const dictionary & subDict(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
Find and return a sub-dictionary.
addToRunTimeSelectionTable(adjointSensitivity, sensitivityBezier, dictionary)
Macros for easy insertion into run-time selection tables.
const incompressibleAdjointSolver & adjointSolver() const
Get adjoint solver.
Base class for incompressibleAdjoint solvers.
#define forAll(list, i)
Loop across all elements in list.
PtrList< adjointSensitivity > sens_
const dictionary & dict() const
Return the construction dictionary.
fileName::Type type(const fileName &name, const bool followLink=true)
Return the file type: DIRECTORY or FILE, normally following symbolic links.
A class for handling words, derived from Foam::string.
Abstract base class for adjoint-based sensitivities in incompressible flows.
static autoPtr< adjointSensitivity > New(const fvMesh &mesh, const dictionary &dict, incompressibleAdjointSolver &adjointSolver)
Return a reference to the selected turbulence model.
virtual void assembleSensitivities()
Assemble sensitivities.
virtual void accumulateIntegrand(const scalar dt)
Accumulate sensitivity integrands.
virtual void write(const word &baseName=word::null)
Write sensitivities to file.
Calculation of adjoint based sensitivities of multiple types.
Mesh data needed to do the Finite Volume discretisation.
messageStream Info
Information stream (stdout output on master, null elsewhere)
virtual bool readDict(const dictionary &dict)
Read dict if changed.
List< label > toc(const UList< bool > &bools)
Return the (sorted) values corresponding to 'true' entries.