Virtual base class for displacement motion solver. More...
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 &)=delete | |
Disallow default bitwise copy construction. More... | |
virtual | ~componentDisplacementMotionSolver () |
Destructor. More... | |
scalarField & | points0 () |
Return reference to the reference field. More... | |
const scalarField & | points0 () 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< motionSolver > | clone () const |
Clone function. More... | |
virtual | ~motionSolver () |
Destructor. More... | |
const word & | name () const |
Return name. More... | |
const word & | keyword () const |
Return keyword. More... | |
const polyMesh & | mesh () const |
Return reference to mesh. More... | |
const dictionary & | coeffDict () const |
Const access to the coefficients dictionary. More... | |
virtual tmp< pointField > | newPoints () |
Provide new points for motion. Solves for motion. More... | |
virtual tmp< pointField > | curPoints () 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 | |
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< motionSolver > | New (const word &name, const polyMesh &, const dictionary &) |
Select constructed from polyMesh and dictionary. More... | |
Virtual base class for displacement motion solver.
The boundary displacement is set as a boundary condition on the pointDisplacementX pointScalarField.
Definition at line 54 of file componentDisplacementMotionSolver.H.
componentDisplacementMotionSolver | ( | const word & | name, |
const polyMesh & | mesh, | ||
const dictionary & | dict, | ||
const word & | type | ||
) |
Construct from polyMesh and dictionary and type.
Definition at line 69 of file componentDisplacementMotionSolver.C.
References TimePaths::constant(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, typeIOobject< Type >::filePath(), motionSolver::mesh(), polyMesh::meshSubDir, IOobject::MUST_READ, IOobject::NO_WRITE, primitiveMesh::nPoints(), componentDisplacementMotionSolver::points0_, List< T >::size(), and objectRegistry::time().
|
delete |
Disallow default bitwise copy construction.
|
virtual |
Destructor.
Definition at line 132 of file componentDisplacementMotionSolver.C.
TypeName | ( | "componentDisplacementMotionSolver" | ) |
Runtime type information.
|
inline |
Return reference to the reference field.
Definition at line 114 of file componentDisplacementMotionSolver.H.
References componentDisplacementMotionSolver::points0_.
|
inline |
Return reference to the reference field.
Definition at line 120 of file componentDisplacementMotionSolver.H.
References componentDisplacementMotionSolver::points0_.
|
virtual |
Update local data for geometry changes.
Implements motionSolver.
Definition at line 138 of file componentDisplacementMotionSolver.C.
|
virtual |
Update local data for topology changes.
Implements motionSolver.
Reimplemented in displacementComponentLaplacianFvMotionSolver.
Definition at line 144 of file componentDisplacementMotionSolver.C.
References Foam::component(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, forAll, Foam::gMax(), Foam::gMin(), polyTopoChangeMap::pointMap(), points, polyTopoChangeMap::reversePointMap(), and List< T >::size().
Referenced by displacementComponentLaplacianFvMotionSolver::topoChange().
|
virtual |
Update from another mesh using the given map.
Implements motionSolver.
Reimplemented in displacementComponentLaplacianFvMotionSolver.
Definition at line 197 of file componentDisplacementMotionSolver.C.
References Foam::Zero.
Referenced by displacementComponentLaplacianFvMotionSolver::mapMesh().
|
virtual |
Update corresponding to the given distribution map.
Implements motionSolver.
Definition at line 204 of file componentDisplacementMotionSolver.C.
|
delete |
Disallow default bitwise assignment.
|
protected |
The component name to solve for.
Definition at line 63 of file componentDisplacementMotionSolver.H.
|
protected |
The component to solve for.
Definition at line 66 of file componentDisplacementMotionSolver.H.
|
protected |
Reference point field for this component.
Definition at line 69 of file componentDisplacementMotionSolver.H.
Referenced by componentDisplacementMotionSolver::componentDisplacementMotionSolver(), and componentDisplacementMotionSolver::points0().
|
mutableprotected |
Point motion field.
Definition at line 72 of file componentDisplacementMotionSolver.H.