displacementMethodlaplacianMotionSolver Class Reference

Wrapper class for the velocityLaplacian motion solver. More...

Inheritance diagram for displacementMethodlaplacianMotionSolver:
Collaboration diagram for displacementMethodlaplacianMotionSolver:

Public Member Functions

 TypeName ("laplacianMotionSolver")
 Runtime type information. More...
 
 displacementMethodlaplacianMotionSolver (fvMesh &mesh, const labelList &patchIDs)
 Construct from components. More...
 
virtual ~displacementMethodlaplacianMotionSolver ()=default
 Destructor. More...
 
virtual bool preferPointField () const
 Whether the motion solver prefers a point of a vol field as input. More...
 
void setMotionField (const pointVectorField &pointMovement)
 Set motion filed related to model based on given motion. More...
 
void setMotionField (const volVectorField &cellMovement)
 Set motion filed related to model based on given motion. More...
 
void setControlField (const vectorField &controlField)
 Set control field as a vectorField. For methods working with parameters (RBF etc) More...
 
void setControlField (const scalarField &controlField)
 Set control field as a vectorField. For methods working with parameters (RBF etc) More...
 
- Public Member Functions inherited from displacementMethod
 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 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 setPatchIDs (const labelList &patchIDs)
 Set parametertised patch IDs. More...
 
void update ()
 Update mesh. More...
 

Protected Attributes

pointVectorFieldpointMotionU_
 
volVectorFieldcellMotionU_
 
bool resetFields_
 
- Protected Attributes inherited from displacementMethod
fvMeshmesh_
 
labelList patchIDs_
 IDs of the patches to be moved. More...
 
autoPtr< motionSolvermotionPtr_
 
scalar maxDisplacement_
 
bool preferPointField_
 Whether the motion solver prefers a point of a vol field as input. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from displacementMethod
static autoPtr< displacementMethodNew (fvMesh &mesh, const labelList &patchIDs)
 Return a reference to the selected turbulence model. More...
 

Detailed Description

Wrapper class for the velocityLaplacian motion solver.

Source files

Definition at line 49 of file displacementMethodlaplacianMotionSolver.H.

Constructor & Destructor Documentation

◆ displacementMethodlaplacianMotionSolver()

displacementMethodlaplacianMotionSolver ( fvMesh mesh,
const labelList patchIDs 
)

Construct from components.

Definition at line 45 of file displacementMethodlaplacianMotionSolver.C.

◆ ~displacementMethodlaplacianMotionSolver()

virtual ~displacementMethodlaplacianMotionSolver ( )
virtualdefault

Destructor.

Member Function Documentation

◆ TypeName()

TypeName ( "laplacianMotionSolver"  )

Runtime type information.

◆ preferPointField()

bool preferPointField ( ) const
virtual

Whether the motion solver prefers a point of a vol field as input.

Reimplemented from displacementMethod.

Definition at line 75 of file displacementMethodlaplacianMotionSolver.C.

◆ setMotionField() [1/2]

void setMotionField ( const pointVectorField pointMovement)
virtual

Set motion filed related to model based on given motion.

Implements displacementMethod.

Definition at line 82 of file displacementMethodlaplacianMotionSolver.C.

References GeometricField< Type, PatchField, GeoMesh >::boundaryField(), Foam::gMax(), Foam::mag(), Foam::max(), and Foam::Zero.

Here is the call graph for this function:

◆ setMotionField() [2/2]

void setMotionField ( const volVectorField cellMovement)
virtual

Set motion filed related to model based on given motion.

Implements displacementMethod.

Definition at line 132 of file displacementMethodlaplacianMotionSolver.C.

References GeometricField< Type, PatchField, GeoMesh >::boundaryField(), Foam::gMax(), Foam::mag(), Foam::max(), and Foam::Zero.

Here is the call graph for this function:

◆ setControlField() [1/2]

void setControlField ( const vectorField controlField)
virtual

Set control field as a vectorField. For methods working with parameters (RBF etc)

Implements displacementMethod.

Definition at line 162 of file displacementMethodlaplacianMotionSolver.C.

References NotImplemented.

◆ setControlField() [2/2]

void setControlField ( const scalarField controlField)
virtual

Set control field as a vectorField. For methods working with parameters (RBF etc)

Implements displacementMethod.

Definition at line 171 of file displacementMethodlaplacianMotionSolver.C.

References NotImplemented.

Member Data Documentation

◆ pointMotionU_

pointVectorField& pointMotionU_
protected

Definition at line 57 of file displacementMethodlaplacianMotionSolver.H.

◆ cellMotionU_

volVectorField& cellMotionU_
protected

Definition at line 59 of file displacementMethodlaplacianMotionSolver.H.

◆ resetFields_

bool resetFields_
protected

Definition at line 61 of file displacementMethodlaplacianMotionSolver.H.


The documentation for this class was generated from the following files: