Go to the documentation of this file.
41 #ifndef optMeshMovement_H
42 #define optMeshMovement_H
autoPtr< displacementMethod > displMethodPtr_
labelList patchIDs_
IDs of patches to be moved.
virtual labelList getActiveDesignVariables() const
Return active design variables.
const labelList & getPatchIDs()
Return patchIDs.
static autoPtr< optMeshMovement > New(fvMesh &mesh, const dictionary &dict, const labelList &patchIDs)
virtual scalar computeEta(const scalarField &correction)=0
Compute eta value based on max displacement.
declareRunTimeSelectionTable(autoPtr, optMeshMovement, dictionary,(fvMesh &mesh, const dictionary &dict, const labelList &patchIDs),(mesh, dict, patchIDs))
virtual void storeDesignVariables()
TypeName("optMeshMovement")
Runtime type information.
tmp< fvMatrix< Type > > correction(const fvMatrix< Type > &)
bool maxAllowedDisplacementSet() const
Whether maxAllowedDisplacement has been set.
autoPtr< displacementMethod > & returnDisplacementMethod()
Return displacementMethod.
virtual ~optMeshMovement()=default
Destructor.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Mesh data needed to do the Finite Volume discretisation.
bool writeMeshQualityMetrics_
void setCorrection(const scalarField &correction)
Set design variable correction.
scalar getMaxAllowedDisplacement() const
Get maxAllowedDisplacement, is set.
scalarField correction_
Correction of design variables.
void writeMeshQualityMetrics()
Write mesh quality metrics.
Abstract base class for translating an update of the design variables into mesh movement.
virtual void resetDesignVariables()
Reset to starting point of line search.
vectorField pointsInit_
Fall back points in case line-search is used.