fvMotionSolver Class Referenceabstract

Base class for fvMesh motion solvers. More...

Inheritance diagram for fvMotionSolver:
Collaboration diagram for fvMotionSolver:

Public Member Functions

 ClassName ("fvMotionSolver")
 Runtime type information. More...
 
 fvMotionSolver (fvMesh &)
 Construct from fvMesh. More...
 
 fvMotionSolver (const polyMesh &)
 Construct from polyMesh. More...
 
virtual bool solidBodyMotion () const
 Is this motion solid body? Delegate to the motion solver. More...
 
virtual tmp< pointField > newPoints ()=0
 Return point location obtained from the current motion field. More...
 
virtual bool update ()
 Update the mesh for both mesh motion and topology change. More...
 
virtual void distribute (const polyDistributionMap &)
 Update corresponding to the given distribution map. More...
 
template<class Type >
Foam::wordList cellMotionBoundaryTypes (const typename PointField< Type >::Boundary &pmUbf) const
 
- Public Member Functions inherited from fvMeshMover
 TypeName ("fvMeshMover")
 Runtime type information. More...
 
 declareRunTimeSelectionTable (autoPtr, fvMeshMover, fvMesh,(fvMesh &mesh, const dictionary &dict),(mesh, dict))
 
 fvMeshMover (fvMesh &)
 Construct from fvMesh. More...
 
 fvMeshMover (const fvMeshMover &)=delete
 Disallow default bitwise copy construction. More...
 
virtual ~fvMeshMover ()
 Destructor. More...
 
fvMesh & mesh ()
 Return the fvMesh. More...
 
const fvMesh & mesh () const
 Return the fvMesh. More...
 
virtual bool dynamic () const
 Is mesh dynamic, i.e. might it change? More...
 
virtual void topoChange (const polyTopoChangeMap &)=0
 Update local data for topology changes. More...
 
virtual void mapMesh (const polyMeshMap &)=0
 Update from another mesh using the given map. More...
 
virtual bool write (const bool write=true) const
 Write the mover state. More...
 
void operator= (const fvMeshMover &)=delete
 Disallow default bitwise assignment. More...
 

Protected Member Functions

template<class Type >
wordList cellMotionBoundaryTypes (const typename PointField< Type >::Boundary &pmUbf) const
 Create the corresponding patch types for cellMotion from those. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from fvMeshMover
static autoPtr< fvMeshMover > New (fvMesh &)
 Select, construct and return the fvMeshMover. More...
 

Detailed Description

Base class for fvMesh motion solvers.

Source files

Definition at line 48 of file fvMotionSolver.H.

Constructor & Destructor Documentation

◆ fvMotionSolver() [1/2]

fvMotionSolver ( fvMesh &  mesh)

Construct from fvMesh.

Definition at line 38 of file fvMotionSolver.C.

◆ fvMotionSolver() [2/2]

fvMotionSolver ( const polyMesh &  mesh)

Construct from polyMesh.

Definition at line 44 of file fvMotionSolver.C.

Member Function Documentation

◆ cellMotionBoundaryTypes() [1/2]

wordList cellMotionBoundaryTypes ( const typename PointField< Type >::Boundary &  pmUbf) const
protected

Create the corresponding patch types for cellMotion from those.

of the given pointMotion

◆ ClassName()

ClassName ( "fvMotionSolver"  )

Runtime type information.

◆ solidBodyMotion()

virtual bool solidBodyMotion ( ) const
inlinevirtual

Is this motion solid body? Delegate to the motion solver.

Reimplemented from fvMeshMover.

Definition at line 84 of file fvMotionSolver.H.

◆ newPoints()

virtual tmp<pointField> newPoints ( )
pure virtual

Return point location obtained from the current motion field.

Implemented in velocityComponentLaplacian, velocityLaplacian, displacementComponentLaplacian, displacementSBRStress, and displacementLaplacian.

◆ update()

bool update ( )
virtual

Update the mesh for both mesh motion and topology change.

Implements fvMeshMover.

Definition at line 52 of file fvMotionSolver.C.

References mesh, fvMesh::movePoints(), and fvMesh::preChange().

Here is the call graph for this function:

◆ distribute()

virtual void distribute ( const polyDistributionMap &  )
inlinevirtual

Update corresponding to the given distribution map.

Implements fvMeshMover.

Definition at line 102 of file fvMotionSolver.H.

◆ cellMotionBoundaryTypes() [2/2]

Foam::wordList cellMotionBoundaryTypes ( const typename PointField< Type >::Boundary &  pmUbf) const

Definition at line 33 of file fvMotionSolverTemplates.C.

References fvMesh::boundary(), boundary(), Foam::endl(), forAll, Foam::isA(), fvMeshMover::mesh(), patchi, Foam::Pout, and List< T >::setSize().

Here is the call graph for this function:

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