Abstract base class for displacement methods, which are a set or wrapper classes allowing to change the driving force of mesh motion solvers. More...
Public Member Functions | |
TypeName ("displacementMethod") | |
Runtime type information. More... | |
declareRunTimeSelectionTable (autoPtr, displacementMethod, dictionary,(fvMesh &mesh, const labelList &patchIDs),(mesh, patchIDs)) | |
displacementMethod (fvMesh &mesh, const labelList &patchIDs) | |
Construct from components. More... | |
virtual | ~displacementMethod ()=default |
Destructor. More... | |
virtual void | setMotionField (const pointVectorField &pointMovement)=0 |
Set motion filed related to model based on given motion. More... | |
virtual void | setMotionField (const volVectorField &cellMovement)=0 |
Set motion filed related to model based on given motion. More... | |
virtual void | setControlField (const vectorField &controlField)=0 |
Set control field as a vectorField. For methods working with parameters (RBF etc) More... | |
virtual void | setControlField (const scalarField &controlField)=0 |
Set control field as a vectorField. For methods working with parameters (RBF etc) More... | |
virtual void | boundControlField (vectorField &controlField) |
Bound control field in certain directions etc. For methods working with parameters (RBF etc) does nothing by default. More... | |
autoPtr< motionSolver > & | getMotionSolver () |
Get access to motionSolver. More... | |
scalar | getMaxDisplacement () const |
Get max displacement. More... | |
void | update () |
Update mesh. More... | |
Static Public Member Functions | |
static autoPtr< displacementMethod > | New (fvMesh &mesh, const labelList &patchIDs) |
Return a reference to the selected turbulence model. More... | |
Protected Attributes | |
fvMesh & | mesh_ |
const labelList & | patchIDs_ |
IDs of the patches to be moved. More... | |
autoPtr< motionSolver > | motionPtr_ |
scalar | maxDisplacement_ |
Abstract base class for displacement methods, which are a set or wrapper classes allowing to change the driving force of mesh motion solvers.
Definition at line 55 of file displacementMethod.H.
displacementMethod | ( | fvMesh & | mesh, |
const labelList & | patchIDs | ||
) |
Construct from components.
Definition at line 37 of file displacementMethod.C.
|
virtualdefault |
Destructor.
TypeName | ( | "displacementMethod" | ) |
Runtime type information.
declareRunTimeSelectionTable | ( | autoPtr | , |
displacementMethod | , | ||
dictionary | , | ||
(fvMesh &mesh, const labelList &patchIDs) | , | ||
(mesh, patchIDs) | |||
) |
|
static |
Return a reference to the selected turbulence model.
Definition at line 52 of file displacementMethod.C.
References Foam::endl(), Foam::exit(), Foam::FatalIOError, FatalIOErrorInLookup, dictionary::get(), Foam::Info, mesh, and patchIDs().
|
pure virtual |
Set motion filed related to model based on given motion.
Implemented in displacementMethodelasticityMotionSolver, displacementMethodvelocityLaplacian, displacementMethodlaplacianMotionSolver, displacementMethoddisplacementLaplacian, and displacementMethodvolumetricBSplinesMotionSolver.
|
pure virtual |
Set motion filed related to model based on given motion.
Implemented in displacementMethodelasticityMotionSolver, displacementMethodvelocityLaplacian, displacementMethodlaplacianMotionSolver, displacementMethoddisplacementLaplacian, and displacementMethodvolumetricBSplinesMotionSolver.
|
pure virtual |
Set control field as a vectorField. For methods working with parameters (RBF etc)
Implemented in displacementMethodelasticityMotionSolver, displacementMethodvelocityLaplacian, displacementMethodlaplacianMotionSolver, displacementMethoddisplacementLaplacian, and displacementMethodvolumetricBSplinesMotionSolver.
|
pure virtual |
Set control field as a vectorField. For methods working with parameters (RBF etc)
Implemented in displacementMethodelasticityMotionSolver, displacementMethodvelocityLaplacian, displacementMethodlaplacianMotionSolver, displacementMethoddisplacementLaplacian, and displacementMethodvolumetricBSplinesMotionSolver.
|
virtual |
Bound control field in certain directions etc. For methods working with parameters (RBF etc) does nothing by default.
Reimplemented in displacementMethodvolumetricBSplinesMotionSolver.
Definition at line 93 of file displacementMethod.C.
Foam::autoPtr< Foam::motionSolver > & getMotionSolver | ( | ) |
Get access to motionSolver.
Definition at line 99 of file displacementMethod.C.
Foam::scalar getMaxDisplacement | ( | ) | const |
Get max displacement.
Definition at line 105 of file displacementMethod.C.
void update | ( | ) |
Update mesh.
Definition at line 111 of file displacementMethod.C.
References Foam::endl(), Foam::gMax(), Foam::Info, and Foam::mag().
|
protected |
Definition at line 61 of file displacementMethod.H.
|
protected |
IDs of the patches to be moved.
Definition at line 66 of file displacementMethod.H.
|
protected |
Definition at line 68 of file displacementMethod.H.
|
protected |
Definition at line 70 of file displacementMethod.H.
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.