Virtual base class for displacement motion solvers. More...
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... | |
pointField & | points0 () |
Return reference to the reference field. More... | |
const pointField & | 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... | |
virtual bool | write () const |
Write points0 if the mesh topology changed. More... | |
void | operator= (const points0MotionSolver &)=delete |
Disallow default bitwise assignment. More... | |
![]() | |
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... | |
Static Public Member Functions | |
static pointVectorField | readPoints0 (const polyMesh &mesh) |
![]() | |
static autoPtr< motionSolver > | New (const word &name, const polyMesh &, const dictionary &) |
Select constructed from polyMesh and dictionary. More... | |
Protected Attributes | |
pointVectorField | points0_ |
Starting points. More... | |
Virtual base class for displacement motion solvers.
Definition at line 51 of file points0MotionSolver.H.
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, typeIOobject< Type >::filePath(), motionSolver::mesh(), polyMesh::meshSubDir, IOobject::MUST_READ, IOobject::NO_WRITE, primitiveMesh::nPoints(), points0MotionSolver::points0_, List< T >::size(), and objectRegistry::time().
|
delete |
Disallow default bitwise copy construction.
|
virtual |
Destructor.
Definition at line 146 of file points0MotionSolver.C.
TypeName | ( | "points0MotionSolver" | ) |
Runtime type information.
|
static |
Definition at line 37 of file points0MotionSolver.C.
References TimePaths::constant(), Foam::dimLength, Time::findInstance(), motionSolver::mesh(), polyMesh::meshSubDir, IOobject::MUST_READ, DemandDrivenMeshObject< polyMesh, RepatchableMeshObject, pointMesh >::New(), IOobject::NO_READ, IOobject::NO_WRITE, points, points0MotionSolver::points0(), IOobject::READ_IF_PRESENT, objectRegistry::time(), and Foam::Zero.
|
inline |
Return reference to the reference field.
Definition at line 94 of file points0MotionSolver.H.
References points0MotionSolver::points0_.
Referenced by points0MotionSolver::readPoints0(), rigidBodyMeshMotion::rigidBodyMeshMotion(), and sixDoFRigidBodyMotionSolver::sixDoFRigidBodyMotionSolver().
|
inline |
Return reference to the reference field.
Definition at line 100 of file points0MotionSolver.H.
References points0MotionSolver::points0_.
|
virtual |
Update local data for geometry changes.
Implements motionSolver.
Reimplemented in displacementMeshMoverMotionSolver.
Definition at line 152 of file points0MotionSolver.C.
Referenced by displacementMeshMoverMotionSolver::movePoints().
|
virtual |
Update local data for topology changes.
Implements motionSolver.
Reimplemented in rigidBodyMeshMotion, solidBodyMotionSolver, interpolatingSolidBodyMotionSolver, displacementLayeredMotionMotionSolver, displacementMeshMoverMotionSolver, displacementSBRStressFvMotionSolver, and displacementLaplacianFvMotionSolver.
Definition at line 156 of file points0MotionSolver.C.
References NotImplemented.
Referenced by displacementLaplacianFvMotionSolver::topoChange(), displacementSBRStressFvMotionSolver::topoChange(), displacementMeshMoverMotionSolver::topoChange(), and displacementLayeredMotionMotionSolver::topoChange().
|
virtual |
Update from another mesh using the given map.
Resets points0 to the points of the new mesh
Implements motionSolver.
Reimplemented in solidBodyMotionSolver, interpolatingSolidBodyMotionSolver, displacementMotionSolver, displacementSBRStressFvMotionSolver, and displacementLaplacianFvMotionSolver.
Definition at line 162 of file points0MotionSolver.C.
Referenced by displacementMotionSolver::mapMesh(), interpolatingSolidBodyMotionSolver::mapMesh(), and solidBodyMotionSolver::mapMesh().
|
virtual |
Update corresponding to the given distribution map.
Implements motionSolver.
Reimplemented in solidBodyMotionSolver.
Definition at line 181 of file points0MotionSolver.C.
References polyDistributionMap::distributePointData().
Referenced by solidBodyMotionSolver::distribute().
|
virtual |
Write points0 if the mesh topology changed.
Reimplemented from motionSolver.
Reimplemented in sixDoFRigidBodyMotionSolver, and rigidBodyMeshMotion.
Definition at line 201 of file points0MotionSolver.C.
References IOobject::AUTO_WRITE, and motionSolver::write().
Referenced by rigidBodyMeshMotion::write(), and sixDoFRigidBodyMotionSolver::write().
|
delete |
Disallow default bitwise assignment.
|
protected |
Starting points.
Definition at line 61 of file points0MotionSolver.H.
Referenced by points0MotionSolver::points0(), and points0MotionSolver::points0MotionSolver().