velocityMotionSolver Class Reference

Virtual base class for velocity motion solver. More...

Inheritance diagram for velocityMotionSolver:
Collaboration diagram for velocityMotionSolver:

Public Member Functions

 TypeName ("velocityMotionSolver")
 Runtime type information. More...
 
 velocityMotionSolver (const word &name, const polyMesh &, const dictionary &, const word &type)
 Construct from mesh and dictionary. More...
 
 velocityMotionSolver (const velocityMotionSolver &)=delete
 Disallow default bitwise copy construction. More...
 
virtual ~velocityMotionSolver ()
 Destructor. More...
 
pointVectorFieldpointMotionU ()
 Return reference to the point motion velocity field. More...
 
const pointVectorFieldpointMotionU () const
 Return const reference to the point motion velocity field. More...
 
virtual void movePoints (const pointField &)
 Update local data for geometry changes. More...
 
virtual void topoChange (const polyTopoChangeMap &)
 Update corresponding to the given map. More...
 
virtual void mapMesh (const polyMeshMap &)
 Update from another mesh using the given map. More...
 
virtual void distribute (const polyDistributionMap &)
 Update corresponding to the given distribution map. More...
 
void operator= (const velocityMotionSolver &)=delete
 Disallow default bitwise assignment. More...
 
- Public Member Functions inherited from motionSolver
 TypeName ("motionSolver")
 Runtime type information. More...
 
 declareRunTimeSelectionTable (autoPtr, motionSolver, dictionary,(const word &name, const polyMesh &mesh, const dictionary &dict),(name, mesh, dict))
 
 motionSolver (const word &name, const polyMesh &mesh, const dictionary &, const word &type)
 Construct from polyMesh and dictionary and type. More...
 
virtual autoPtr< motionSolverclone () const
 Clone function. More...
 
virtual ~motionSolver ()
 Destructor. More...
 
const wordname () const
 Return name. More...
 
const wordkeyword () const
 Return keyword. More...
 
const polyMeshmesh () const
 Return reference to mesh. More...
 
const dictionarycoeffDict () const
 Const access to the coefficients dictionary. More...
 
virtual tmp< pointFieldnewPoints ()
 Provide new points for motion. Solves for motion. More...
 
virtual tmp< pointFieldcurPoints () const =0
 Provide current points for motion. Uses current motion field. More...
 
virtual void twoDCorrectPoints (pointField &) const
 Correct point field for reduced-dimensionality cases. More...
 
virtual bool solidBody () const
 Is the motion solid body? I.e., are the volumes and area magnitudes. More...
 
virtual void solve ()=0
 Solve for motion. More...
 
virtual bool write () const
 Optionally write motion state information for restart. More...
 

Protected Attributes

pointVectorField pointMotionU_
 Point motion field. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from motionSolver
static autoPtr< motionSolverNew (const word &name, const polyMesh &, const dictionary &)
 Select constructed from polyMesh and dictionary. More...
 

Detailed Description

Virtual base class for velocity motion solver.

The boundary displacement is set as a boundary condition on the pointMotionU pointVectorField.

Source files

Definition at line 54 of file velocityMotionSolver.H.

Constructor & Destructor Documentation

◆ velocityMotionSolver() [1/2]

velocityMotionSolver ( const word name,
const polyMesh mesh,
const dictionary dict,
const word type 
)

Construct from mesh and dictionary.

Definition at line 39 of file velocityMotionSolver.C.

◆ velocityMotionSolver() [2/2]

Disallow default bitwise copy construction.

◆ ~velocityMotionSolver()

~velocityMotionSolver ( )
virtual

Destructor.

Definition at line 65 of file velocityMotionSolver.C.

Member Function Documentation

◆ TypeName()

TypeName ( "velocityMotionSolver"  )

Runtime type information.

◆ pointMotionU() [1/2]

pointVectorField& pointMotionU ( )
inline

Return reference to the point motion velocity field.

Definition at line 94 of file velocityMotionSolver.H.

References velocityMotionSolver::pointMotionU_.

◆ pointMotionU() [2/2]

const pointVectorField& pointMotionU ( ) const
inline

Return const reference to the point motion velocity field.

Definition at line 100 of file velocityMotionSolver.H.

References velocityMotionSolver::pointMotionU_.

◆ movePoints()

void movePoints ( const pointField p)
virtual

Update local data for geometry changes.

Implements motionSolver.

Definition at line 71 of file velocityMotionSolver.C.

◆ topoChange()

void topoChange ( const polyTopoChangeMap map)
virtual

Update corresponding to the given map.

Implements motionSolver.

Reimplemented in velocityLaplacianFvMotionSolver.

Definition at line 77 of file velocityMotionSolver.C.

Referenced by velocityLaplacianFvMotionSolver::topoChange().

Here is the caller graph for this function:

◆ mapMesh()

void mapMesh ( const polyMeshMap map)
virtual

Update from another mesh using the given map.

Implements motionSolver.

Reimplemented in velocityLaplacianFvMotionSolver.

Definition at line 83 of file velocityMotionSolver.C.

References Foam::Zero.

Referenced by velocityLaplacianFvMotionSolver::mapMesh().

Here is the caller graph for this function:

◆ distribute()

void distribute ( const polyDistributionMap )
virtual

Update corresponding to the given distribution map.

Implements motionSolver.

Definition at line 90 of file velocityMotionSolver.C.

◆ operator=()

void operator= ( const velocityMotionSolver )
delete

Disallow default bitwise assignment.

Member Data Documentation

◆ pointMotionU_

pointVectorField pointMotionU_
mutableprotected

Point motion field.

Definition at line 63 of file velocityMotionSolver.H.

Referenced by velocityMotionSolver::pointMotionU().


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