41 #ifndef sensitivityTopO_H 42 #define sensitivityTopO_H 133 const word& fieldName,
134 const word& designVariablesName
142 const word& fieldName
147 template<
class Type,
template<
class>
class PatchField,
class GeoMesh>
153 const word& fieldName,
TypeName("topO")
Runtime type information.
A list of keyword definitions, which are a keyword followed by a number of values (eg...
Abstract base class for adjoint-based sensitivities.
Base class for adjoint solvers.
Generic GeometricField class.
const fvMesh & mesh() const
Return reference to mesh.
word designVariablesName_
Name used as the argument for the post-processing of the sensitivities through fvOptions.
virtual bool readDict(const dictionary &dict)
Read dictionary if changed.
static void postProcessAuxSens(const GeometricField< Type, PatchField, GeoMesh > &primal, const GeometricField< Type, PatchField, GeoMesh > &adjoint, fv::options &fvOptions, const word &fieldName, scalarField &auxSens)
Potentially manipulate auxSens within the fvOption before adding the part related to the design varia...
virtual void accumulateIntegrand(const scalar dt)
Accumulate sensitivity integrands.
topOZones zones_
Zones related to topology optimisation.
A class for handling words, derived from Foam::string.
static void postProcessSens(scalarField &sens, scalarField &auxSens, fv::options &fvOptions, const word &fieldName, const word &designVariablesName)
Add part of the sensitivities coming from fvOptions.
const dictionary & dict() const
Return the construction dictionary.
virtual ~sensitivityTopO()=default
Destructor.
Mesh data needed to do the Finite Volume discretisation.
void zeroSensInFixedPorousZones(scalarField &sens)
Zero sensitivities in fixed porous zones.
Pointer management similar to std::unique_ptr, with some additional methods and type checking...
Generic mesh wrapper used by volMesh, surfaceMesh, pointMesh etc.
virtual void assembleSensitivities(autoPtr< designVariables > &designVars)
Assemble sensitivities.