componentDisplacementMotionSolver Class Reference

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

Inheritance diagram for componentDisplacementMotionSolver:
Collaboration diagram for componentDisplacementMotionSolver:

Public Member Functions

 TypeName ("componentDisplacementMotionSolver")
 Runtime type information. More...
 
 componentDisplacementMotionSolver (const word &name, const polyMesh &, const dictionary &, const word &type)
 Construct from polyMesh and dictionary and type. More...
 
 componentDisplacementMotionSolver (const componentDisplacementMotionSolver &)
 Disallow default bitwise copy construction. More...
 
virtual ~componentDisplacementMotionSolver ()
 Destructor. More...
 
scalarFieldpoints0 ()
 Return reference to the reference field. More...
 
const scalarFieldpoints0 () 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...
 
void operator= (const componentDisplacementMotionSolver &)=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...
 
virtual bool write () const
 Optionally write motion state information for restart. More...
 

Protected Attributes

word cmptName_
 The component name to solve for. More...
 
direction cmpt_
 The component to solve for. More...
 
scalarField points0_
 Reference point field for this component. More...
 
pointScalarField pointDisplacement_
 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 displacement motion solver.

The boundary displacement is set as a boundary condition on the pointDisplacementX pointScalarField.

Source files

Definition at line 54 of file componentDisplacementMotionSolver.H.

Constructor & Destructor Documentation

◆ componentDisplacementMotionSolver() [1/2]

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

Construct from polyMesh and dictionary and type.

Definition at line 70 of file componentDisplacementMotionSolver.C.

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

Here is the call graph for this function:

◆ componentDisplacementMotionSolver() [2/2]

Disallow default bitwise copy construction.

◆ ~componentDisplacementMotionSolver()

Destructor.

Definition at line 132 of file componentDisplacementMotionSolver.C.

Member Function Documentation

◆ TypeName()

TypeName ( "componentDisplacementMotionSolver"  )

Runtime type information.

◆ points0() [1/2]

scalarField& points0 ( )
inline

Return reference to the reference field.

Definition at line 114 of file componentDisplacementMotionSolver.H.

References componentDisplacementMotionSolver::points0_.

◆ points0() [2/2]

◆ movePoints()

void movePoints ( const pointField p)
virtual

Update local data for geometry changes.

Implements motionSolver.

Definition at line 138 of file componentDisplacementMotionSolver.C.

References componentDisplacementMotionSolver::topoChange().

Referenced by componentDisplacementMotionSolver::points0().

Here is the call graph for this function:
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 displacementComponentLaplacianFvMotionSolver.

Definition at line 202 of file componentDisplacementMotionSolver.C.

References Field< Type >::component(), componentDisplacementMotionSolver::distribute(), mesh, polyMesh::points(), and Foam::Zero.

Referenced by displacementComponentLaplacianFvMotionSolver::mapMesh(), and componentDisplacementMotionSolver::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 210 of file componentDisplacementMotionSolver.C.

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

Here is the caller graph for this function:

◆ operator=()

void operator= ( const componentDisplacementMotionSolver )
delete

Disallow default bitwise assignment.

Referenced by componentDisplacementMotionSolver::points0().

Here is the caller graph for this function:

Member Data Documentation

◆ cmptName_

word cmptName_
protected

The component name to solve for.

Definition at line 63 of file componentDisplacementMotionSolver.H.

◆ cmpt_

direction cmpt_
protected

The component to solve for.

Definition at line 66 of file componentDisplacementMotionSolver.H.

◆ points0_

scalarField points0_
protected

Reference point field for this component.

Definition at line 69 of file componentDisplacementMotionSolver.H.

Referenced by componentDisplacementMotionSolver::points0().

◆ pointDisplacement_

pointScalarField pointDisplacement_
mutableprotected

Point motion field.

Definition at line 72 of file componentDisplacementMotionSolver.H.


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