Go to the documentation of this file.
60 #ifndef sensitivitySurfaceIncompressible_H
61 #define sensitivitySurfaceIncompressible_H
75 namespace incompressible
const dictionary & dict() const
Return the construction dictionary.
class for managing incompressible objective functions.
virtual void assembleSensitivities()
Assemble sensitivities.
bool includePressureTerm_
Include the adjoint pressure term in sens computation.
bool includeObjective_
Include terms directly emerging from the objective function.
A class for handling words, derived from Foam::string.
bool getIncludeSurfaceArea() const
Get access to the includeSurfaceArea bool.
autoPtr< adjointEikonalSolver > eikonalSolver_
virtual void write(const word &baseName=word::null)
Write sensitivity maps.
void smoothSensitivities()
void setIncludeSurfaceArea(const bool includeSurfaceArea)
Set includeSurfaceArea bool.
Class including all adjoint fields for incompressible flows.
autoPtr< adjointMeshMovementSolver > meshMovementSolver_
bool includeGradStressTerm_
Include the term containing the grad of the stress at the boundary.
Abstract base class for adjoint-based sensitivities in incompressible flows.
bool includeDivTerm_
Include the term from the deviatoric part of the stresses.
void computeDerivativesSize()
Compute the number of faces on sensitivityPatchIDs_.
scalar computeRadius(const faMesh &aMesh)
TypeName("surface")
Runtime type information.
bool writeGeometricInfo_
Write geometric info for use by external programs.
virtual void accumulateIntegrand(const scalar dt)
Accumulate sensitivity integrands.
bool useSnGradInTranposeStresses_
Use snGrad in the transpose part of the adjoint stresses.
autoPtr< adjointEikonalSolver > & getAdjointEikonalSolver()
Get adjoint eikonal solver.
autoPtr< volVectorField > nfOnPatchPtr_
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
void setIncludeObjective(const bool includeObjective)
Set includeObjective bool.
bool includeSurfaceArea_
Include surface area in sens computation.
Mesh data needed to do the Finite Volume discretisation.
bool includeDistance_
Include distance variation in sens computation.
bool includeTransposeStresses_
Include the transpose part of the adjoint stresses.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
void read()
Read controls and update solver pointers if necessary.
virtual void clearSensitivities()
Zero sensitivity fields and their constituents.
virtual ~sensitivitySurface()=default
Destructor.
autoPtr< volVectorField > CfOnPatchPtr_
static const word null
An empty word.
Finite area mesh. Used for 2-D non-Euclidian finite area method.
bool smoothSensitivities_
bool includeMeshMovement_
Include mesh movement variation in sens computation.
void setSuffixName()
Set suffix name for sensitivity fields.
bool getIncludeObjective() const
Get access to the includeObjective bool.
virtual bool readDict(const dictionary &dict)
Read dict if changed.
Calculation of adjoint based sensitivities at wall faces.
Base class for solution control classes.
autoPtr< volVectorField > SfOnPatchPtr_