Loading...
Searching...
No Matches
displacementMethodlaplacianMotionSolver Class Reference

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

#include <displacementMethodlaplacianMotionSolver.H>

Inheritance diagram for displacementMethodlaplacianMotionSolver:
Collaboration diagram for displacementMethodlaplacianMotionSolver:

Public Member Functions

 TypeName ("laplacianMotionSolver")
 Runtime type information.
 displacementMethodlaplacianMotionSolver (fvMesh &mesh, const labelList &patchIDs)
 Construct from components.
virtual ~displacementMethodlaplacianMotionSolver ()=default
 Destructor.
virtual bool preferPointField () const
 Whether the motion solver prefers a point of a vol field as input.
void setMotionField (const pointVectorField &pointMovement)
 Set motion filed related to model based on given motion.
void setMotionField (const volVectorField &cellMovement)
 Set motion filed related to model based on given motion.
void setControlField (const vectorField &controlField)
 Set control field as a vectorField. For methods working with parameters (RBF etc).
void setControlField (const scalarField &controlField)
 Set control field as a vectorField. For methods working with parameters (RBF etc).
Public Member Functions inherited from displacementMethod
 TypeName ("displacementMethod")
 Runtime type information.
 declareRunTimeSelectionTable (autoPtr, displacementMethod, dictionary,(fvMesh &mesh, const labelList &patchIDs),(mesh, patchIDs))
 displacementMethod (fvMesh &mesh, const labelList &patchIDs)
 Construct from components.
virtual ~displacementMethod ()=default
 Destructor.
virtual void boundControlField (vectorField &controlField)
 Bound control field in certain directions etc. For methods working with parameters (RBF etc) does nothing by default.
autoPtr< motionSolver > & getMotionSolver ()
 Get access to motionSolver.
scalar getMaxDisplacement () const
 Get max displacement.
void setPatchIDs (const labelList &patchIDs)
 Set parametertised patch IDs.
void update ()
 Update mesh.

Protected Attributes

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

Additional Inherited Members

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

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 44 of file displacementMethodlaplacianMotionSolver.C.

References cellMotionU_, mesh, displacementMethod::motionPtr_, patchIDs, pointMotionU_, Foam::refCast(), and resetFields_.

Here is the call graph for this function:

◆ ~displacementMethodlaplacianMotionSolver()

virtual ~displacementMethodlaplacianMotionSolver ( )
virtualdefault

Destructor.

Member Function Documentation

◆ TypeName()

TypeName ( "laplacianMotionSolver" )

Runtime type information.

References mesh, and patchIDs.

◆ 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

◆ setMotionField() [2/2]

void setMotionField ( const volVectorField & cellMovement)
virtual

◆ 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 161 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 170 of file displacementMethodlaplacianMotionSolver.C.

References NotImplemented.

Member Data Documentation

◆ pointMotionU_

◆ cellMotionU_

◆ resetFields_

bool resetFields_
protected

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