Go to the documentation of this file.
39 #ifndef shapeSensitivitiesBase_H
40 #define shapeSensitivitiesBase_H
void writePointBasedSens() const
Write point-based sensitivities, if present.
virtual const boundaryVectorField & getWallFaceSensNormalVecBoundary() const
Get wall face normal sens as vectors field.
const labelHashSet & sensitivityPatchIDs() const
Get patch IDs on which sensitivities are computed.
tmp< volVectorField > getWallFaceSensVec()
Get wall face sensitivity vectors field.
autoPtr< boundaryVectorField > wallFaceSensVecPtr_
Wall face sens w.r.t. (x,y.z)
labelHashSet sensitivityPatchIDs_
void constructAndWriteSensitivityField(const autoPtr< typename GeometricField< Type, fvPatchField, volMesh >::Boundary > &sensFieldPtr, const word &name) const
Constructs volField based on boundaryField and writes it.
A class for handling words, derived from Foam::string.
autoPtr< pointBoundaryVectorField > wallPointSensVecPtr_
Wall point sens w.r.t. (x,y.z)
A class for managing temporary objects.
tmp< pointVectorField > getWallPointSensNormalVec()
Get wall point sens as vectors field.
autoPtr< boundaryScalarField > wallFaceSensNormalPtr_
Wall face sens projected to normal.
tmp< pointScalarField > getWallPointSensNormal()
Get wall point sensitivity projected to normal field.
tmp< volVectorField > getWallFaceSensNormalVec()
Get wall face normal sens as vectors field.
virtual const boundaryVectorField & getWallFaceSensVecBoundary() const
Get wall face sensitivity vectors field.
autoPtr< boundaryVectorField > wallFaceSensNormalVecPtr_
Normal sens as vectors.
TypeName("shapeSensitivitiesBase")
Runtime type information.
bool writeAllSurfaceFiles_
autoPtr< pointBoundaryScalarField > wallPointSensNormalPtr_
Wall point sens projected to normal.
tmp< volScalarField > getWallFaceSensNormal()
Get wall face sensitivity projected to normal field.
void write()
Write sensitivity fields.
Generic templated field type.
autoPtr< pointBoundaryVectorField > wallPointSensNormalVecPtr_
Normal sens as vectors.
void constructAndWriteSensitivtyPointField(const autoPtr< List< Field< Type >>> &sensFieldPtr, const word &name) const
Constructs pointField based on boundaryField and writes it.
tmp< GeometricField< Type, fvPatchField, volMesh > > constructVolSensitivtyField(const autoPtr< typename GeometricField< Type, fvPatchField, volMesh >::Boundary > &sensFieldPtr, const word &name) const
Constructs volField based on boundaryField and writes it.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
void setSensitivityPatchIDs(const labelHashSet &sensPatchIDs)
Overwrite sensitivityPatchIDs.
const fvMesh & meshShape_
Mesh data needed to do the Finite Volume discretisation.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
Useful typenames for fields defined only at the boundaries.
virtual ~shapeSensitivitiesBase()=default
Destructor.
virtual const boundaryScalarField & getWallFaceSensNormalBoundary() const
Get wall face sensitivity projected to normal field.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
void clearSensitivities()
Zero sensitivity fields and their constituents.
void writeFaceBasedSens() const
Write face-based sensitivities, if present.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
void setSuffix(const word &suffix)
Set suffix.
Generic GeometricField class.
tmp< pointVectorField > getWallPointSensVec()
Get wall point sensitivity vectors field.