Loading...
Searching...
No Matches
displacementMethodpLaplacianMotionSolver Class Reference

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

#include <displacementMethodpLaplacianMotionSolver.H>

Inheritance diagram for displacementMethodpLaplacianMotionSolver:
Collaboration diagram for displacementMethodpLaplacianMotionSolver:

Public Member Functions

 TypeName ("pLaplacianMotionSolver")
 Runtime type information.
 displacementMethodpLaplacianMotionSolver (fvMesh &mesh, const labelList &patchIDs)
 Construct from components.
virtual ~displacementMethodpLaplacianMotionSolver ()=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 pLaplacian motion solver.

Source files

Definition at line 48 of file displacementMethodpLaplacianMotionSolver.H.

Constructor & Destructor Documentation

◆ displacementMethodpLaplacianMotionSolver()

displacementMethodpLaplacianMotionSolver ( fvMesh & mesh,
const labelList & patchIDs )

Construct from components.

Definition at line 42 of file displacementMethodpLaplacianMotionSolver.C.

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

Here is the call graph for this function:

◆ ~displacementMethodpLaplacianMotionSolver()

virtual ~displacementMethodpLaplacianMotionSolver ( )
virtualdefault

Destructor.

Member Function Documentation

◆ TypeName()

TypeName ( "pLaplacianMotionSolver" )

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 76 of file displacementMethodpLaplacianMotionSolver.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 162 of file displacementMethodpLaplacianMotionSolver.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 displacementMethodpLaplacianMotionSolver.C.

References NotImplemented.

Member Data Documentation

◆ pointMotionU_

◆ cellMotionU_

◆ resetFields_

bool resetFields_
protected

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