OpenFOAM logo
The Open Source CFD Toolbox
  Source Guide OpenCFD Solutions Contact OpenFOAM

fvMotionSolver Class Reference

Virtual base class for finite volume mesh motion solvers. More...

Inheritance diagram for fvMotionSolver:
Collaboration diagram for fvMotionSolver:

List of all members.


Public Member Functions

 TypeName ("fvMotionSolver")
 Runtime type information.
 fvMotionSolver (const polyMesh &mesh)
 Construct from polyMesh.
virtual ~fvMotionSolver ()
const fvMeshmesh () const
 Return reference to the fvMesh to be moved.
virtual tmp< pointFieldcurPoints () const =0
 Return point location obtained from the current motion field.
virtual void solve ()=0
 Solve for motion.
void movePoints (const pointField &)
 Update the pointMesh corresponding to the new points.
virtual void updateMesh (const mapPolyMesh &)
 Update the mesh corresponding to given map.

Protected Member Functions

template<class Type >
wordList cellMotionBoundaryTypes (const typename GeometricField< Type, pointPatchField, pointMesh >::GeometricBoundaryField &pmUbf) const
 Create the corresponding patch types for cellMotion from those.

Protected Attributes

const fvMeshfvMesh_
 The fvMesh to be moved.

Detailed Description

Virtual base class for finite volume mesh motion solvers.

The boundary motion is set as a boundary condition on the motion velocity variable motionU.

Source files

Definition at line 51 of file fvMotionSolver.H.


Constructor & Destructor Documentation

fvMotionSolver ( const polyMesh mesh  ) 

Construct from polyMesh.

Definition at line 31 of file fvMotionSolver.C.

References Foam::defineTypeNameAndDebug().

Here is the call graph for this function:

~fvMotionSolver (  )  [virtual]

Definition at line 40 of file fvMotionSolver.C.


Member Function Documentation

Foam::wordList cellMotionBoundaryTypes ( const typename GeometricField< Type, pointPatchField, pointMesh >::GeometricBoundaryField &  pmUbf  )  const [inline, protected]

Create the corresponding patch types for cellMotion from those.

of the given pointMotion

Definition at line 26 of file fvMotionSolverTemplates.C.

References fvMesh::boundary(), Foam::endl(), forAll, fvMotionSolver::fvMesh_, Foam::isA(), patchi, and Foam::Pout.

Here is the call graph for this function:

TypeName ( "fvMotionSolver"   ) 

Runtime type information.

const fvMesh& mesh (  )  const [inline]

Return reference to the fvMesh to be moved.

Reimplemented from motionSolver.

Definition at line 98 of file fvMotionSolver.H.

References fvMotionSolver::fvMesh_.

void movePoints ( const pointField p  ) 

Update the pointMesh corresponding to the new points.

Definition at line 46 of file fvMotionSolver.C.

void updateMesh ( const mapPolyMesh mpm  )  [virtual]


Member Data Documentation

const fvMesh& fvMesh_ [protected]

The fvMesh to be moved.

Definition at line 61 of file fvMotionSolver.H.

Referenced by fvMotionSolver::cellMotionBoundaryTypes(), and fvMotionSolver::mesh().


The documentation for this class was generated from the following files:
Copyright © 2000-2009 OpenCFD Ltd