42 namespace incompressible
52 adjointSensitivity::adjointSensitivity
79 Info<<
"adjointSensitivity type : " << modelType <<
endl;
81 auto* ctorPtr = dictionaryConstructorTable(modelType);
90 *dictionaryConstructorTablePtr_
150 "adjointMeshMovementSource",
171 return (tadjointMeshMovementSource);
virtual void write(const word &baseName=word::null)
Write sensitivity fields.
defineTypeNameAndDebug(adjointEikonalSolver, 0)
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...
T & ref() const
Return non-const reference to the contents of a non-null managed pointer.
void postProcessSens(Field< Type > &sensField, const word &fieldName=word::null, const word &designVariablesName=word::null)
Post process sensitivity field related to the fvOption.
tmp< GeometricField< Type, fvPatchField, volMesh > > div(const GeometricField< Type, fvsPatchField, surfaceMesh > &ssf)
dimensioned< vector > dimensionedVector
Dimensioned vector obtained from generic dimensioned type.
Ostream & endl(Ostream &os)
Add newline and flush stream.
virtual void write(const word &baseName=word::null)
Write sensitivity fields.
Base class for adjoint solvers.
incompressibleAdjointSolver & adjointSolver_
Ignore writing from objectRegistry::writeObject()
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.
const Time & time() const
Return the top-level database.
virtual const scalarField & calculateSensitivities()
Calculates and returns sensitivity fields.
Abstract base class for adjoint sensitivities.
Base class for incompressibleAdjoint solvers.
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.
tmp< volVectorField > adjointMeshMovementSource()
Compute source term for adjoint mesh movement equation.
autoPtr< volScalarField > fieldSensPtr_
const word & solverName() const
Return solver name.
const scalarField & getSensitivities() const
Returns the sensitivity fields.
tmp< GeometricField< Type, PatchField, GeoMesh > > T() const
Return transpose (only if it is a tensor field)
static word timeName(const scalar t, const int precision=precision_)
Return time name of given scalar time formatted with the given precision.
tmp< volTensorField > computeGradDxDbMultiplier()
Compute the volTensorField multiplying grad(dxdb) for the volume-based approach to compute shape sens...
defineRunTimeSelectionTable(adjointSensitivity, dictionary)
virtual void assembleSensitivities()=0
Assemble sensitivities.
const dimensionSet dimLength(0, 1, 0, 0, 0, 0, 0)
Mesh data needed to do the Finite Volume discretisation.
virtual tmp< volTensorField > computeGradDxDbMultiplier()
Compute the multiplier for grad(dxdb)
messageStream Info
Information stream (stdout output on master, null elsewhere)
Internal & ref(const bool updateAccessTime=true)
Same as internalFieldRef()
Pointer management similar to std::unique_ptr, with some additional methods and type checking...
Macros to ease declaration of run-time selection tables.
A class for managing temporary objects.
incompressibleAdjointVars & adjointVars_
static options & New(const fvMesh &mesh)
Construct fvOptions and register to database if not present.
virtual void clearSensitivities()
Zero sensitivity fields and their constituents.
Defines the attributes of an object for which implicit objectRegistry management is supported...
#define FatalIOErrorInLookup(ios, lookupTag, lookupName, lookupTable)
Report an error message using Foam::FatalIOError.
const dimensionSet & dimensions() const noexcept
Return dimensions.
IOerror FatalIOError
Error stream (stdout output on all processes), with additional 'FOAM FATAL IO ERROR' header text and ...
static constexpr const zero Zero
Global zero (0)