Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
displacementMethod Class Referenceabstract

Abstract base class for displacement methods, which are a set or wrapper classes allowing to change the driving force of mesh motion solvers. More...

Inheritance diagram for displacementMethod:
Inheritance graph
[legend]
Collaboration diagram for displacementMethod:
Collaboration graph
[legend]

Public Member Functions

 TypeName ("displacementMethod")
 
 declareRunTimeSelectionTable (autoPtr, displacementMethod, dictionary,(fvMesh &mesh, const labelList &patchIDs),(mesh, patchIDs))
 
 displacementMethod (fvMesh &mesh, const labelList &patchIDs)
 
virtual ~displacementMethod ()=default
 
virtual void setMotionField (const pointVectorField &pointMovement)=0
 
virtual void setMotionField (const volVectorField &cellMovement)=0
 
virtual void setControlField (const vectorField &controlField)=0
 
virtual void setControlField (const scalarField &controlField)=0
 
virtual void boundControlField (vectorField &controlField)
 
autoPtr< motionSolver > & getMotionSolver ()
 
scalar getMaxDisplacement () const
 
void update ()
 

Static Public Member Functions

static autoPtr< displacementMethodNew (fvMesh &mesh, const labelList &patchIDs)
 

Protected Attributes

fvMeshmesh_
 
const labelListpatchIDs_
 
autoPtr< motionSolvermotionPtr_
 
scalar maxDisplacement_
 

Detailed Description

Abstract base class for displacement methods, which are a set or wrapper classes allowing to change the driving force of mesh motion solvers.

Source files

Definition at line 55 of file displacementMethod.H.

Constructor & Destructor Documentation

◆ displacementMethod()

displacementMethod ( fvMesh mesh,
const labelList patchIDs 
)

Definition at line 37 of file displacementMethod.C.

◆ ~displacementMethod()

virtual ~displacementMethod ( )
virtualdefault

Member Function Documentation

◆ TypeName()

TypeName ( "displacementMethod"  )

◆ declareRunTimeSelectionTable()

declareRunTimeSelectionTable ( autoPtr  ,
displacementMethod  ,
dictionary  ,
(fvMesh &mesh, const labelList &patchIDs)  ,
(mesh, patchIDs)   
)

◆ New()

Foam::autoPtr< Foam::displacementMethod > New ( fvMesh mesh,
const labelList patchIDs 
)
static

Definition at line 52 of file displacementMethod.C.

References Foam::endl(), Foam::exit(), Foam::FatalIOError, FatalIOErrorInLookup, dictionary::get(), Foam::Info, and mesh.

Here is the call graph for this function:

◆ setMotionField() [1/2]

virtual void setMotionField ( const pointVectorField pointMovement)
pure virtual

◆ setMotionField() [2/2]

virtual void setMotionField ( const volVectorField cellMovement)
pure virtual

◆ setControlField() [1/2]

virtual void setControlField ( const vectorField controlField)
pure virtual

◆ setControlField() [2/2]

virtual void setControlField ( const scalarField controlField)
pure virtual

◆ boundControlField()

void boundControlField ( vectorField controlField)
virtual

Reimplemented in displacementMethodvolumetricBSplinesMotionSolver.

Definition at line 93 of file displacementMethod.C.

◆ getMotionSolver()

Foam::autoPtr< Foam::motionSolver > & getMotionSolver ( )

Definition at line 99 of file displacementMethod.C.

◆ getMaxDisplacement()

Foam::scalar getMaxDisplacement ( ) const

Definition at line 105 of file displacementMethod.C.

◆ update()

void update ( )

Definition at line 111 of file displacementMethod.C.

References Foam::endl(), Foam::gMax(), Foam::Info, and Foam::mag().

Here is the call graph for this function:

Member Data Documentation

◆ mesh_

fvMesh& mesh_
protected

Definition at line 61 of file displacementMethod.H.

◆ patchIDs_

const labelList& patchIDs_
protected

Definition at line 64 of file displacementMethod.H.

◆ motionPtr_

autoPtr<motionSolver> motionPtr_
protected

Definition at line 66 of file displacementMethod.H.

◆ maxDisplacement_

scalar maxDisplacement_
protected

Definition at line 68 of file displacementMethod.H.


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