velocityLaplacian Class Reference

Mesh motion solver for an fvMesh. Based on solving the cell-centre Laplacian for the motion velocity. More...

Inheritance diagram for velocityLaplacian:
Collaboration diagram for velocityLaplacian:

Public Member Functions

 TypeName ("velocityLaplacian")
 Runtime type information. More...
 
 velocityLaplacian (fvMesh &, const dictionary &)
 Construct from fvMesh and dictionary. More...
 
 velocityLaplacian (const polyMesh &, const dictionary &)
 Construct from polyMesh and dictionary. More...
 
 velocityLaplacian (const velocityLaplacian &)=delete
 Disallow default bitwise copy construction. More...
 
 ~velocityLaplacian ()
 Destructor. More...
 
volVectorFieldcellMotionU ()
 Return reference to the cell motion velocity field. More...
 
const volVectorFieldcellMotionU () const
 Return const reference to the cell motion velocity field. More...
 
virtual tmp< pointFieldnewPoints ()
 Return point location obtained from the current motion field. 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...
 
void operator= (const velocityLaplacian &)=delete
 Disallow default bitwise assignment. More...
 
- Public Member Functions inherited from fvMotionSolver
 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 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...
 
fvMeshmesh ()
 Return the fvMesh. More...
 
const fvMeshmesh () const
 Return the fvMesh. More...
 
virtual bool dynamic () const
 Is mesh dynamic, i.e. might it change? More...
 
virtual bool write (const bool write=true) const
 Write the mover state. More...
 
void operator= (const fvMeshMover &)=delete
 Disallow default bitwise assignment. More...
 
- Public Member Functions inherited from velocity
 TypeName ("velocity")
 Runtime type information. More...
 
 velocity (const polyMesh &, const dictionary &, const word &type)
 Construct from mesh and dictionary. More...
 
 velocity (const velocity &)=delete
 Disallow default bitwise copy construction. More...
 
virtual ~velocity ()
 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 distribute (const polyDistributionMap &)
 Update corresponding to the given distribution map. More...
 
void operator= (const velocity &)=delete
 Disallow default bitwise assignment. More...
 
- Public Member Functions inherited from pointMeshMover
 TypeName ("pointMeshMover")
 Runtime type information. More...
 
 declareRunTimeSelectionTable (autoPtr, pointMeshMover, dictionary,(const polyMesh &mesh, const dictionary &dict),(mesh, dict))
 
 pointMeshMover (const polyMesh &mesh, const word &type)
 Construct from polyMesh and dictionary and type. More...
 
virtual autoPtr< pointMeshMoverclone () const
 Clone function. More...
 
virtual ~pointMeshMover ()
 Destructor. More...
 
const polyMeshpoly () const
 Return reference to mesh. More...
 
virtual void twoDCorrectPoints (pointField &) const
 Correct point field for reduced-dimensionality cases. More...
 
virtual bool solidBodyMotion () const
 Is the motion solid body? I.e., are the volumes and area magnitudes. More...
 
virtual bool write () const
 Optionally write motion state information for restart. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from fvMeshMover
static autoPtr< fvMeshMoverNew (fvMesh &)
 Select, construct and return the fvMeshMover. More...
 
- Static Public Member Functions inherited from pointMeshMover
static autoPtr< pointMeshMoverNew (const polyMesh &, const dictionary &)
 Select constructed from polyMesh and dictionary. More...
 
- Protected Member Functions inherited from fvMotionSolver
template<class Type >
wordList cellMotionBoundaryTypes (const typename PointField< Type >::Boundary &pmUbf) const
 Create the corresponding patch types for cellMotion from those. More...
 
- Protected Attributes inherited from velocity
pointVectorField pointMotionU_
 Point motion field. More...
 

Detailed Description

Mesh motion solver for an fvMesh. Based on solving the cell-centre Laplacian for the motion velocity.

Source files

Definition at line 56 of file velocityLaplacian_fvMotionSolver.H.

Constructor & Destructor Documentation

◆ velocityLaplacian() [1/3]

velocityLaplacian ( fvMesh mesh,
const dictionary dict 
)

Construct from fvMesh and dictionary.

Definition at line 94 of file velocityLaplacian_fvMotionSolver.C.

◆ velocityLaplacian() [2/3]

velocityLaplacian ( const polyMesh mesh,
const dictionary dict 
)

Construct from polyMesh and dictionary.

Definition at line 59 of file velocityLaplacian_fvMotionSolver.C.

◆ velocityLaplacian() [3/3]

velocityLaplacian ( const velocityLaplacian )
delete

Disallow default bitwise copy construction.

◆ ~velocityLaplacian()

Destructor.

Definition at line 106 of file velocityLaplacian_fvMotionSolver.C.

Member Function Documentation

◆ TypeName()

TypeName ( "velocityLaplacian"  )

Runtime type information.

◆ cellMotionU() [1/2]

volVectorField& cellMotionU ( )
inline

Return reference to the cell motion velocity field.

Definition at line 101 of file velocityLaplacian_fvMotionSolver.H.

◆ cellMotionU() [2/2]

const volVectorField& cellMotionU ( ) const
inline

Return const reference to the cell motion velocity field.

Definition at line 107 of file velocityLaplacian_fvMotionSolver.H.

◆ newPoints()

Foam::tmp< Foam::pointField > newPoints ( )
virtual

Return point location obtained from the current motion field.

Implements fvMotionSolver.

Definition at line 113 of file velocityLaplacian_fvMotionSolver.C.

References volPointInterpolation::interpolate(), Foam::fvm::laplacian(), mesh, DemandDrivenMeshObject< fvMesh, DeletableMeshObject, volPointInterpolation >::New(), points, tmp< T >::ref(), Foam::solve(), and Foam::dimensions::time.

Here is the call graph for this function:

◆ topoChange()

void topoChange ( const polyTopoChangeMap map)
virtual

Update corresponding to the given map.

Reimplemented from velocity.

Definition at line 157 of file velocityLaplacian_fvMotionSolver.C.

References mesh, motionDiffusivity::New(), and velocity::topoChange().

Here is the call graph for this function:

◆ mapMesh()

void mapMesh ( const polyMeshMap map)
virtual

Update from another mesh using the given map.

Reimplemented from velocity.

Definition at line 176 of file velocityLaplacian_fvMotionSolver.C.

References velocity::mapMesh(), mesh, and motionDiffusivity::New().

Here is the call graph for this function:

◆ operator=()

void operator= ( const velocityLaplacian )
delete

Disallow default bitwise assignment.


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