Converts NURBS volume control points update to actual mesh movement. Internal points are moved based on a motionSolver other than volumetricBSplinesExternalMotionSolver. More...
Public Member Functions | |
TypeName ("volumetricBSplinesExternalMotionSolver") | |
Runtime type information. More... | |
optMeshMovementVolumetricBSplinesExternalMotionSolver (fvMesh &mesh, const dictionary &dict, const labelList &patchIDs) | |
Construct from components. More... | |
virtual | ~optMeshMovementVolumetricBSplinesExternalMotionSolver ()=default |
Destructor. More... | |
void | moveMesh () |
Calculates surface mesh movement. More... | |
virtual scalar | computeEta (const scalarField &correction) |
Compute eta value based on max displacement. More... | |
virtual labelList | getActiveDesignVariables () const |
Return active design variables. More... | |
Public Member Functions inherited from optMeshMovement | |
TypeName ("optMeshMovement") | |
Runtime type information. More... | |
declareRunTimeSelectionTable (autoPtr, optMeshMovement, dictionary,(fvMesh &mesh, const dictionary &dict, const labelList &patchIDs),(mesh, dict, patchIDs)) | |
optMeshMovement (fvMesh &mesh, const dictionary &dict, const labelList &patchIDs) | |
Construct from components. More... | |
virtual | ~optMeshMovement ()=default |
Destructor. More... | |
void | setCorrection (const scalarField &correction) |
Set design variable correction. More... | |
autoPtr< displacementMethod > & | returnDisplacementMethod () |
Return displacementMethod. More... | |
const labelList & | getPatchIDs () |
Return patchIDs. More... | |
void | writeMeshQualityMetrics () |
Write mesh quality metrics. More... | |
virtual void | storeDesignVariables () |
Store design variables and mesh, to act as the starting point of line search. More... | |
virtual void | resetDesignVariables () |
Reset to starting point of line search. More... | |
bool | maxAllowedDisplacementSet () const |
Whether maxAllowedDisplacement has been set. More... | |
Protected Member Functions | |
void | computeBoundaryMovement (const scalarField &correction) |
Protected Member Functions inherited from optMeshMovement | |
scalar | getMaxAllowedDisplacement () const |
Get maxAllowedDisplacement, is set. More... | |
Protected Attributes | |
volBSplinesBase & | volBSplinesBase_ |
Reference to underlaying volumetric B-Splines morpher. More... | |
pointVectorField | dx_ |
Boundary movement due to change of NURBS control points. More... | |
vectorField | cpMovement_ |
Movement of control points. More... | |
Protected Attributes inherited from optMeshMovement | |
fvMesh & | mesh_ |
const dictionary & | dict_ |
scalarField | correction_ |
Correction of design variables. More... | |
labelList | patchIDs_ |
IDs of patches to be moved. More... | |
vectorField | pointsInit_ |
Fall back points in case line-search is used. More... | |
autoPtr< displacementMethod > | displMethodPtr_ |
Mesh movement engine and interface for applying mesh movement boundary conditions. More... | |
bool | writeMeshQualityMetrics_ |
Whether to write the mesh quality metrics to files each time the mesh is updated. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from optMeshMovement | |
static autoPtr< optMeshMovement > | New (fvMesh &mesh, const dictionary &dict, const labelList &patchIDs) |
Converts NURBS volume control points update to actual mesh movement. Internal points are moved based on a motionSolver other than volumetricBSplinesExternalMotionSolver.
Definition at line 51 of file optMeshMovementVolumetricBSplinesExternalMotionSolver.H.
optMeshMovementVolumetricBSplinesExternalMotionSolver | ( | fvMesh & | mesh, |
const dictionary & | dict, | ||
const labelList & | patchIDs | ||
) |
Construct from components.
Definition at line 102 of file optMeshMovementVolumetricBSplinesExternalMotionSolver.C.
|
virtualdefault |
Destructor.
|
protected |
Definition at line 49 of file optMeshMovementVolumetricBSplinesExternalMotionSolver.C.
References Foam::correction(), forAll, and UPtrList< T >::size().
Referenced by optMeshMovementVolumetricBSplinesExternalMotionSolver::moveMesh().
TypeName | ( | "volumetricBSplinesExternalMotionSolver" | ) |
Runtime type information.
|
virtual |
Calculates surface mesh movement.
Reimplemented from optMeshMovement.
Definition at line 133 of file optMeshMovementVolumetricBSplinesExternalMotionSolver.C.
References optMeshMovementVolumetricBSplinesExternalMotionSolver::computeBoundaryMovement(), optMeshMovement::correction_, optMeshMovementVolumetricBSplinesExternalMotionSolver::cpMovement_, optMeshMovement::displMethodPtr_, optMeshMovementVolumetricBSplinesExternalMotionSolver::dx_, volBSplinesBase::moveControlPoints(), optMeshMovement::moveMesh(), optMeshMovementVolumetricBSplinesExternalMotionSolver::volBSplinesBase_, and volBSplinesBase::writeControlPoints().
|
virtual |
Compute eta value based on max displacement.
Implements optMeshMovement.
Definition at line 156 of file optMeshMovementVolumetricBSplinesExternalMotionSolver.C.
References Foam::correction(), Foam::endl(), Foam::gMax(), Foam::Info, and Foam::mag().
|
virtual |
Return active design variables.
Reimplemented from optMeshMovement.
Definition at line 176 of file optMeshMovementVolumetricBSplinesExternalMotionSolver.C.
|
protected |
Reference to underlaying volumetric B-Splines morpher.
Definition at line 62 of file optMeshMovementVolumetricBSplinesExternalMotionSolver.H.
Referenced by optMeshMovementVolumetricBSplinesExternalMotionSolver::moveMesh().
|
protected |
Boundary movement due to change of NURBS control points.
Definition at line 67 of file optMeshMovementVolumetricBSplinesExternalMotionSolver.H.
Referenced by optMeshMovementVolumetricBSplinesExternalMotionSolver::moveMesh().
|
protected |
Movement of control points.
Definition at line 72 of file optMeshMovementVolumetricBSplinesExternalMotionSolver.H.
Referenced by optMeshMovementVolumetricBSplinesExternalMotionSolver::moveMesh().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.