41 #ifndef optMeshMovement_H 42 #define optMeshMovement_H tmp< fvMatrix< Type > > correction(const fvMatrix< Type > &)
Return the correction form of the given matrix by subtracting the matrix multiplied by the current fi...
declareRunTimeSelectionTable(autoPtr, optMeshMovement, dictionary,(fvMesh &mesh, const dictionary &dict, const labelList &patchIDs),(mesh, dict, patchIDs))
const labelList patchIDs(pbm.patchSet(polyPatchNames, false, true).sortedToc())
A list of keyword definitions, which are a keyword followed by a number of values (eg...
bool maxAllowedDisplacementSet() const
Whether maxAllowedDisplacement has been set.
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.
virtual labelList getActiveDesignVariables() const
Return active design variables.
virtual ~optMeshMovement()=default
Destructor.
virtual void storeDesignVariables()
Store design variables and mesh, to act as the starting point of line search.
TypeName("optMeshMovement")
Runtime type information.
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.
autoPtr< displacementMethod > & returnDisplacementMethod()
Return displacementMethod.
bool writeMeshQualityMetrics_
Whether to write the mesh quality metrics to files each time the mesh is updated. ...
Mesh data needed to do the Finite Volume discretisation.
autoPtr< displacementMethod > displMethodPtr_
Mesh movement engine and interface for applying mesh movement boundary conditions.
virtual void moveMesh()
Calculates mesh movemnt based on the correction of the design variables.
const labelList & getPatchIDs()
Return patchIDs.
void setCorrection(const scalarField &correction)
Set design variable correction.
labelList patchIDs_
IDs of patches to be moved.
scalar getMaxAllowedDisplacement() const
Get maxAllowedDisplacement, is set.
scalarField correction_
Correction of design variables.
void writeMeshQualityMetrics()
Write mesh quality metrics.