53 #ifndef fieldRegularisation_H 54 #define fieldRegularisation_H 184 const bool isTopoField,
185 const regularisationRadius& radius
193 const bool isTopoField
autoPtr< topOInterpolationFunction > sharpenFunction_
Function used to sharpen the field after regularisation.
A list of keyword definitions, which are a keyword followed by a number of values (eg...
bool growFromWalls_
Whether to apply a fixedValue BC or zeroGradient one to alphaTilda, when regularisation is performed...
autoPtr< volScalarField > alphaTilda_
The regularised alpha field, if regulatisation is performed.
bool regularise_
Perform regulaisation on alpha before inputing it on beta?
bool project_
Perform the projection (sharpening) step?
autoPtr< regularisationRadius > radius_
Smoothing radius.
const scalarField & alpha_
Alpha field (design variables of topology optimisation)
bool shouldRegularise() const
Should regularisation be executed.
virtual void updateBeta()
Update the beta field.
virtual ~fieldRegularisation()=default
Destructor.
volScalarField beta_
Beta is the field used for all interpolations between fluid and solid in topology optimisation...
autoPtr< regularisationPDE > regularisationPDE_
PDE used for the regularisation.
const volScalarField & beta() const
Return beta field.
const scalarField & betaArg_
Argument of the beta field.
void regularise(const scalarField &source, scalarField &result, const bool isTopoField, const regularisationRadius &radius)
Regularise an externally provided radius.
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
TypeName("fieldRegularisation")
Runtime type information.
void postProcessSens(scalarField &sens)
Update part of fieldRegularisation to the sensitivitiy derivatives.
Mesh data needed to do the Finite Volume discretisation.
bool growFromWalls() const
Grow beta from walls.
Pointer management similar to std::unique_ptr, with some additional methods and type checking...
const dimensionedScalar alpha
Fine-structure constant: default SI units: [].
const topOZones & zones_
Cell zones related to topology optimisation.