42namespace incompressible
79 Info<<
"adjointSensitivity type : " << modelType <<
endl;
81 auto* ctorPtr = dictionaryConstructorTable(modelType);
90 *dictionaryConstructorTablePtr_
150 "adjointMeshMovementSource",
171 return (tadjointMeshMovementSource);
const dimensionSet & dimensions() const
Return dimensions.
tmp< GeometricField< Type, PatchField, GeoMesh > > T() const
Return transpose (only if it is a tensor field)
Internal::FieldType & primitiveFieldRef(const bool updateAccessTime=true)
Return a reference to the internal field.
Defines the attributes of an object for which implicit objectRegistry management is supported,...
static autoPtr< Time > New()
Construct (dummy) Time - no functionObjects or libraries.
static word timeName(const scalar t, const int precision=precision_)
Base class for adjoint solvers.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
T get(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
virtual bool write()
Write the output fields.
Mesh data needed to do the Finite Volume discretisation.
const Time & time() const
Return the top-level database.
Base class for incompressibleAdjoint solvers.
virtual tmp< volTensorField > computeGradDxDbMultiplier()
Compute the multiplier for grad(dxdb)
Abstract base class for adjoint-based sensitivities in incompressible flows.
virtual void clearSensitivities()
Zero sensitivity fields and their constituents.
virtual const scalarField & calculateSensitivities()
Calculates and returns sensitivity fields.
incompressibleAdjointSolver & adjointSolver_
virtual void assembleSensitivities()=0
Assemble sensitivities.
tmp< volVectorField > adjointMeshMovementSource()
Compute source term for adjoint mesh movement equation.
tmp< volTensorField > computeGradDxDbMultiplier()
const scalarField & getSensitivities() const
Returns the sensitivity fields.
incompressibleAdjointVars & adjointVars_
Abstract base class for adjoint sensitivities.
const dictionary & dict() const
Return the construction dictionary.
autoPtr< volScalarField > fieldSensPtr_
A class for managing temporary objects.
const word & solverName() const
Return solver name.
A class for handling words, derived from Foam::string.
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
#define FatalIOErrorInLookup(ios, lookupTag, lookupName, lookupTable)
Report an error message using Foam::FatalIOError.
tmp< GeometricField< Type, fvPatchField, volMesh > > div(const GeometricField< Type, fvsPatchField, surfaceMesh > &ssf)
const dimensionSet dimLength(0, 1, 0, 0, 0, 0, 0)
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.
static constexpr const zero Zero
Global zero (0)
errorManipArg< error, int > exit(error &err, const int errNo=1)
Macros to ease declaration of run-time selection tables.
#define defineRunTimeSelectionTable(baseType, argNames)
Define run-time selection table.