solidBodyMotionSolver Class Reference

Solid-body motion of the mesh specified by a run-time selectable motion function. More...

Inheritance diagram for solidBodyMotionSolver:
Collaboration diagram for solidBodyMotionSolver:

Public Member Functions

 TypeName ("solidBody")
 Runtime type information. More...
 
 solidBodyMotionSolver (const word &name, const polyMesh &, const dictionary &)
 Construct from mesh and dictionary. More...
 
 solidBodyMotionSolver (const solidBodyMotionSolver &)=delete
 Disallow default bitwise copy construction. More...
 
 ~solidBodyMotionSolver ()
 Destructor. More...
 
virtual tmp< pointFieldcurPoints () const
 Return point location obtained from the current motion field. More...
 
virtual bool solidBody () const
 This is a solid body motion. More...
 
virtual void solve ()
 Solve for motion. More...
 
virtual void topoChange (const polyTopoChangeMap &)
 Update local data for topology changes. More...
 
virtual void distribute (const polyDistributionMap &)
 Update corresponding to the given distribution map. More...
 
virtual void mapMesh (const polyMeshMap &)
 Update from another mesh using the given map. More...
 
void operator= (const solidBodyMotionSolver &)=delete
 Disallow default bitwise assignment. More...
 
- Public Member Functions inherited from points0MotionSolver
 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 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 void twoDCorrectPoints (pointField &) const
 Correct point field for reduced-dimensionality cases. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from points0MotionSolver
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 inherited from points0MotionSolver
pointVectorField points0_
 Starting points. More...
 

Detailed Description

Solid-body motion of the mesh specified by a run-time selectable motion function.

Source files

Definition at line 51 of file solidBodyMotionSolver.H.

Constructor & Destructor Documentation

◆ solidBodyMotionSolver() [1/2]

solidBodyMotionSolver ( const word name,
const polyMesh mesh,
const dictionary dict 
)

Construct from mesh and dictionary.

Definition at line 89 of file solidBodyMotionSolver.C.

References polyCellSet::all, Foam::endl(), Foam::Info, and polyCellSet::selectionType().

Here is the call graph for this function:

◆ solidBodyMotionSolver() [2/2]

Disallow default bitwise copy construction.

◆ ~solidBodyMotionSolver()

Destructor.

Definition at line 113 of file solidBodyMotionSolver.C.

Member Function Documentation

◆ TypeName()

TypeName ( "solidBody"  )

Runtime type information.

◆ curPoints()

Foam::tmp< Foam::pointField > curPoints ( ) const
virtual

Return point location obtained from the current motion field.

Implements motionSolver.

Definition at line 119 of file solidBodyMotionSolver.C.

References polyCellSet::all, points, tmp< T >::ref(), and Foam::transformPoints().

Here is the call graph for this function:

◆ solidBody()

virtual bool solidBody ( ) const
inlinevirtual

This is a solid body motion.

Reimplemented from motionSolver.

Definition at line 106 of file solidBodyMotionSolver.H.

◆ solve()

virtual void solve ( )
inlinevirtual

Solve for motion.

Implements motionSolver.

Definition at line 112 of file solidBodyMotionSolver.H.

◆ topoChange()

void topoChange ( const polyTopoChangeMap map)
virtual

Update local data for topology changes.

Reimplemented from points0MotionSolver.

Definition at line 143 of file solidBodyMotionSolver.C.

References polyCellSet::all, IOobject::AUTO_WRITE, Foam::exit(), Foam::FatalError, FatalErrorInFunction, forAll, nPoints, polyTopoChangeMap::pointMap(), points, polyTopoChangeMap::reversePointMap(), and List< T >::size().

Here is the call graph for this function:

◆ distribute()

void distribute ( const polyDistributionMap map)
virtual

Update corresponding to the given distribution map.

Reimplemented from points0MotionSolver.

Definition at line 196 of file solidBodyMotionSolver.C.

References points0MotionSolver::distribute().

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 points0MotionSolver.

Definition at line 205 of file solidBodyMotionSolver.C.

References points0MotionSolver::mapMesh().

Here is the call graph for this function:

◆ operator=()

void operator= ( const solidBodyMotionSolver )
delete

Disallow default bitwise assignment.


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