points0MotionSolver Class Reference

Virtual base class for displacement motion solvers. More...

Inheritance diagram for points0MotionSolver:
Collaboration diagram for points0MotionSolver:

Public Member Functions

 TypeName ("points0MotionSolver")
 Runtime type information. More...
 
 points0MotionSolver (const word &name, const polyMesh &, const dictionary &, const word &type)
 Construct from mesh and dictionary. More...
 
 points0MotionSolver (const points0MotionSolver &)=delete
 Disallow default bitwise copy construction. More...
 
virtual ~points0MotionSolver ()
 Destructor. More...
 
pointFieldpoints0 ()
 Return reference to the reference field. More...
 
const pointFieldpoints0 () const
 Return reference to the reference field. More...
 
virtual void movePoints (const pointField &)
 Update local data for geometry changes. More...
 
virtual void topoChange (const polyTopoChangeMap &)
 Update local data for topology changes. 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...
 
virtual bool write () const
 Write points0 if the mesh topology changed. More...
 
void operator= (const points0MotionSolver &)=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
 
virtual void solve ()=0
 Solve for motion. More...
 

Static Public Member Functions

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

Protected Attributes

pointVectorField points0_
 Starting points. More...
 

Detailed Description

Virtual base class for displacement motion solvers.

Source files

Definition at line 51 of file points0MotionSolver.H.

Constructor & Destructor Documentation

◆ points0MotionSolver() [1/2]

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

Construct from mesh and dictionary.

Definition at line 112 of file points0MotionSolver.C.

References TimePaths::constant(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, mesh, polyMesh::meshSubDir, IOobject::MUST_READ, IOobject::NO_WRITE, primitiveMesh::nPoints(), and objectRegistry::time().

Referenced by points0MotionSolver::readPoints0().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ points0MotionSolver() [2/2]

Disallow default bitwise copy construction.

◆ ~points0MotionSolver()

~points0MotionSolver ( )
virtual

Destructor.

Definition at line 145 of file points0MotionSolver.C.

Member Function Documentation

◆ TypeName()

TypeName ( "points0MotionSolver"  )

Runtime type information.

◆ readPoints0()

◆ points0() [1/2]

pointField& points0 ( )
inline

Return reference to the reference field.

Definition at line 94 of file points0MotionSolver.H.

References points0MotionSolver::points0_.

Referenced by rigidBodyMeshMotion::curPoints(), rigidBodyMeshMotion::rigidBodyMeshMotion(), rigidBodyMeshMotionSolver::solve(), rigidBodyMeshMotion::solve(), and rigidBodyMeshMotion::topoChange().

Here is the caller graph for this function:

◆ points0() [2/2]

const pointField& points0 ( ) const
inline

◆ movePoints()

void movePoints ( const pointField )
virtual

Update local data for geometry changes.

Implements motionSolver.

Reimplemented in displacementMeshMoverMotionSolver.

Definition at line 151 of file points0MotionSolver.C.

Referenced by displacementMeshMoverMotionSolver::movePoints(), and points0MotionSolver::points0().

Here is the caller graph for this function:

◆ topoChange()

◆ mapMesh()

void mapMesh ( const polyMeshMap map)
virtual

Update from another mesh using the given map.

Implements motionSolver.

Reimplemented in displacementLaplacianFvMotionSolver, displacementSBRStressFvMotionSolver, and displacementMotionSolver.

Definition at line 161 of file points0MotionSolver.C.

References points0MotionSolver::distribute(), mesh, and polyMesh::points().

Referenced by displacementMotionSolver::mapMesh(), and points0MotionSolver::points0().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ distribute()

void distribute ( const polyDistributionMap map)
virtual

Update corresponding to the given distribution map.

Implements motionSolver.

Definition at line 168 of file points0MotionSolver.C.

Referenced by points0MotionSolver::mapMesh(), and points0MotionSolver::points0().

Here is the caller graph for this function:

◆ write()

bool write ( ) const
virtual

Write points0 if the mesh topology changed.

Reimplemented from motionSolver.

Reimplemented in rigidBodyMeshMotion, and sixDoFRigidBodyMotionSolver.

Definition at line 174 of file points0MotionSolver.C.

References mesh, fvMesh::time(), Time::timeName(), and motionSolver::write().

Referenced by points0MotionSolver::points0(), sixDoFRigidBodyMotionSolver::write(), and rigidBodyMeshMotion::write().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ operator=()

void operator= ( const points0MotionSolver )
delete

Disallow default bitwise assignment.

Referenced by points0MotionSolver::points0().

Here is the caller graph for this function:

Member Data Documentation

◆ points0_

pointVectorField points0_
protected

Starting points.

Definition at line 61 of file points0MotionSolver.H.

Referenced by points0MotionSolver::points0(), and rigidBodyMeshMotion::topoChange().


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