FreeFOAM The Cross-Platform CFD Toolkit
Hosted by SourceForge:
Get FreeFOAM at SourceForge.net.
            Fast, secure and Free Open Source software downloads

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

#include <fvMotionSolvers/fvMotionSolver.H>


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 56 of file fvMotionSolver.H.

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 fvMesh &  mesh () const
 Return reference to the fvMesh to be moved.
virtual tmp< pointField >  curPoints () 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 fvMesh &  fvMesh_
 The fvMesh to be moved.

Constructor & Destructor Documentation

fvMotionSolver ( const polyMesh &   mesh  )

Construct from polyMesh.

Definition at line 39 of file fvMotionSolver.C.

~fvMotionSolver (  ) [virtual]

Definition at line 48 of file fvMotionSolver.C.


Member Function Documentation

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

Create the corresponding patch types for cellMotion from those.

of the given pointMotion

Definition at line 34 of file fvMotionSolverTemplates.C.

References Foam::endl(), forAll, Foam::isA(), OSstream::name(), Foam::Pout, and List< T >::setSize().

TypeName ( "fvMotionSolver"    )

Runtime type information.

void movePoints ( const pointField &   p  )

Update the pointMesh corresponding to the new points.

Definition at line 54 of file fvMotionSolver.C.


Member Data Documentation

const fvMesh& fvMesh_ [protected]

The fvMesh to be moved.

Definition at line 66 of file fvMotionSolver.H.

Referenced by fvMotionSolver::mesh().


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