Abstract base class for translating an update of the design variables into mesh movement. More...
Public Member Functions | |
TypeName ("optMeshMovement") | |
declareRunTimeSelectionTable (autoPtr, optMeshMovement, dictionary,(fvMesh &mesh, const dictionary &dict, const labelList &patchIDs),(mesh, dict, patchIDs)) | |
optMeshMovement (fvMesh &mesh, const dictionary &dict, const labelList &patchIDs) | |
virtual | ~optMeshMovement ()=default |
void | setCorrection (const scalarField &correction) |
virtual void | moveMesh () |
autoPtr< displacementMethod > & | returnDisplacementMethod () |
const labelList & | getPatchIDs () |
void | writeMeshQualityMetrics () |
virtual void | storeDesignVariables () |
virtual void | resetDesignVariables () |
virtual scalar | computeEta (const scalarField &correction)=0 |
bool | maxAllowedDisplacementSet () const |
virtual labelList | getActiveDesignVariables () const |
Static Public Member Functions | |
static autoPtr< optMeshMovement > | New (fvMesh &mesh, const dictionary &dict, const labelList &patchIDs) |
Protected Member Functions | |
scalar | getMaxAllowedDisplacement () const |
Protected Attributes | |
fvMesh & | mesh_ |
const dictionary & | dict_ |
scalarField | correction_ |
labelList | patchIDs_ |
vectorField | pointsInit_ |
autoPtr< displacementMethod > | displMethodPtr_ |
bool | writeMeshQualityMetrics_ |
Abstract base class for translating an update of the design variables into mesh movement.
Definition at line 50 of file optMeshMovement.H.
optMeshMovement | ( | fvMesh & | mesh, |
const dictionary & | dict, | ||
const labelList & | patchIDs | ||
) |
Definition at line 54 of file optMeshMovement.C.
References dict, dictionary::found(), and dictionary::get().
|
virtualdefault |
|
protected |
Definition at line 38 of file optMeshMovement.C.
References Foam::exit(), Foam::FatalError, FatalErrorInFunction, and Foam::nl.
TypeName | ( | "optMeshMovement" | ) |
declareRunTimeSelectionTable | ( | autoPtr | , |
optMeshMovement | , | ||
dictionary | , | ||
(fvMesh &mesh, const dictionary &dict, const labelList &patchIDs) | , | ||
(mesh, dict, patchIDs) | |||
) |
|
static |
Definition at line 86 of file optMeshMovement.C.
References dict, Foam::endl(), Foam::exit(), Foam::FatalIOError, FatalIOErrorInLookup, dictionary::get(), Foam::Info, and mesh.
Referenced by shapeOptimisation::shapeOptimisation().
void setCorrection | ( | const scalarField & | correction | ) |
Definition at line 115 of file optMeshMovement.C.
References Foam::correction().
|
virtual |
Reimplemented in optMeshMovementVolumetricBSplinesExternalMotionSolver, optMeshMovementBezier, optMeshMovementVolumetricBSplines, and optMeshMovementNULL.
Definition at line 121 of file optMeshMovement.C.
Referenced by optMeshMovementBezier::moveMesh(), optMeshMovementVolumetricBSplines::moveMesh(), and optMeshMovementVolumetricBSplinesExternalMotionSolver::moveMesh().
Foam::autoPtr< Foam::displacementMethod > & returnDisplacementMethod | ( | ) |
Definition at line 135 of file optMeshMovement.C.
const Foam::labelList & getPatchIDs | ( | ) |
Definition at line 141 of file optMeshMovement.C.
void writeMeshQualityMetrics | ( | ) |
Definition at line 147 of file optMeshMovement.C.
References Foam::dimless, Foam::endl(), Foam::gAverage(), Foam::gMax(), Foam::Info, cellQuality::nonOrthogonality(), and cellQuality::skewness().
|
virtual |
Reimplemented in optMeshMovementVolumetricBSplines.
Definition at line 175 of file optMeshMovement.C.
Referenced by optMeshMovementVolumetricBSplines::storeDesignVariables().
|
virtual |
Reimplemented in optMeshMovementVolumetricBSplines.
Definition at line 181 of file optMeshMovement.C.
References Foam::endl(), and Foam::Info.
Referenced by optMeshMovementVolumetricBSplines::resetDesignVariables().
|
pure virtual |
bool maxAllowedDisplacementSet | ( | ) | const |
Definition at line 188 of file optMeshMovement.C.
|
virtual |
Reimplemented in optMeshMovementVolumetricBSplines, optMeshMovementVolumetricBSplinesExternalMotionSolver, and optMeshMovementBezier.
Definition at line 194 of file optMeshMovement.C.
References NotImplemented.
|
protected |
Definition at line 73 of file optMeshMovement.H.
|
protected |
Definition at line 74 of file optMeshMovement.H.
|
protected |
Definition at line 77 of file optMeshMovement.H.
Referenced by optMeshMovementBezier::moveMesh(), optMeshMovementVolumetricBSplines::moveMesh(), and optMeshMovementVolumetricBSplinesExternalMotionSolver::moveMesh().
|
protected |
Definition at line 80 of file optMeshMovement.H.
|
protected |
Definition at line 83 of file optMeshMovement.H.
|
protected |
Definition at line 87 of file optMeshMovement.H.
Referenced by optMeshMovementBezier::moveMesh(), optMeshMovementVolumetricBSplines::moveMesh(), and optMeshMovementVolumetricBSplinesExternalMotionSolver::moveMesh().
|
protected |
Definition at line 91 of file optMeshMovement.H.
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.