Virtual base class for mesh motion solver. More...
Public Member Functions | |
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 void | movePoints (const pointField &)=0 |
Update local data for geometry changes. More... | |
virtual void | topoChange (const polyTopoChangeMap &)=0 |
Update local data for topology changes. More... | |
virtual void | distribute (const polyDistributionMap &)=0 |
Update corresponding to the given distribution map. More... | |
virtual void | mapMesh (const polyMeshMap &)=0 |
Update from another mesh using the given map. More... | |
virtual bool | write () const |
Optionally write motion state information for restart. More... | |
Static Public Member Functions | |
static autoPtr< motionSolver > | New (const word &name, const polyMesh &, const dictionary &) |
Select constructed from polyMesh and dictionary. More... | |
Virtual base class for mesh motion solver.
Definition at line 56 of file motionSolver.H.
motionSolver | ( | const word & | name, |
const polyMesh & | mesh, | ||
const dictionary & | dict, | ||
const word & | type | ||
) |
Construct from polyMesh and dictionary and type.
Definition at line 42 of file motionSolver.C.
|
virtual |
Destructor.
Definition at line 109 of file motionSolver.C.
TypeName | ( | "motionSolver" | ) |
Runtime type information.
declareRunTimeSelectionTable | ( | autoPtr | , |
motionSolver | , | ||
dictionary | , | ||
(const word &name, const polyMesh &mesh, const dictionary &dict) | , | ||
(name, mesh, dict) | |||
) |
|
static |
Select constructed from polyMesh and dictionary.
Definition at line 65 of file motionSolver.C.
References Foam::endl(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, Foam::Info, Foam::libs, dictionary::lookup(), Foam::name(), Foam::nl, and dlLibraryTable::open().
Referenced by motionSolverList::motionSolverList().
|
virtual |
|
inline |
Return name.
Definition at line 125 of file motionSolver.H.
Referenced by motionSolver::keyword(), and motionSolverList::motionSolverList().
|
inline |
Return keyword.
Definition at line 131 of file motionSolver.H.
References motionSolver::name().
Referenced by multiSolidBodyMotionSolver::multiSolidBodyMotionSolver(), rigidBodyMeshMotion::rigidBodyMeshMotion(), and rigidBodyMeshMotionSolver::rigidBodyMeshMotionSolver().
|
inline |
Return reference to mesh.
Definition at line 137 of file motionSolver.H.
Referenced by componentDisplacementMotionSolver::componentDisplacementMotionSolver(), motionSolverList::motionSolverList(), multiSolidBodyMotionSolver::multiSolidBodyMotionSolver(), points0MotionSolver::points0MotionSolver(), points0MotionSolver::readPoints0(), rigidBodyMeshMotion::rigidBodyMeshMotion(), rigidBodyMeshMotionSolver::rigidBodyMeshMotionSolver(), and sixDoFRigidBodyMotionSolver::sixDoFRigidBodyMotionSolver().
|
inline |
Const access to the coefficients dictionary.
Definition at line 143 of file motionSolver.H.
Referenced by multiSolidBodyMotionSolver::multiSolidBodyMotionSolver(), rigidBodyMeshMotion::rigidBodyMeshMotion(), rigidBodyMeshMotionSolver::rigidBodyMeshMotionSolver(), and sixDoFRigidBodyMotionSolver::sixDoFRigidBodyMotionSolver().
|
virtual |
Provide new points for motion. Solves for motion.
Definition at line 115 of file motionSolver.C.
References Foam::solve().
|
pure virtual |
Provide current points for motion. Uses current motion field.
Implemented in sixDoFRigidBodyMotionSolver, rigidBodyMeshMotionSolver, rigidBodyMeshMotion, motionSolverList, solidBodyMotionSolver, multiSolidBodyMotionSolver, interpolatingSolidBodyMotionSolver, displacementLinearMotionMotionSolver, displacementLayeredMotionMotionSolver, displacementMeshMoverMotionSolver, velocityLaplacianFvMotionSolver, displacementSBRStressFvMotionSolver, displacementLaplacianFvMotionSolver, velocityComponentLaplacianFvMotionSolver, and displacementComponentLaplacianFvMotionSolver.
|
virtual |
Correct point field for reduced-dimensionality cases.
Definition at line 122 of file motionSolver.C.
References twoDPointCorrector::correctPoints(), DemandDrivenMeshObject< polyMesh, TopoChangeableMeshObject, twoDPointCorrector >::New(), and p.
|
inlinevirtual |
Is the motion solid body? I.e., are the volumes and area magnitudes.
unchanged? Defaults to false. Set to true by motionSolvers::solidBody.
Reimplemented in solidBodyMotionSolver, and multiSolidBodyMotionSolver.
Definition at line 160 of file motionSolver.H.
|
pure virtual |
Solve for motion.
Implemented in sixDoFRigidBodyMotionSolver, rigidBodyMeshMotionSolver, rigidBodyMeshMotion, motionSolverList, solidBodyMotionSolver, multiSolidBodyMotionSolver, interpolatingSolidBodyMotionSolver, displacementLinearMotionMotionSolver, displacementLayeredMotionMotionSolver, displacementMeshMoverMotionSolver, velocityLaplacianFvMotionSolver, displacementSBRStressFvMotionSolver, displacementLaplacianFvMotionSolver, velocityComponentLaplacianFvMotionSolver, and displacementComponentLaplacianFvMotionSolver.
|
pure virtual |
Update local data for geometry changes.
Implemented in rigidBodyMeshMotionSolver, velocityMotionSolver, motionSolverList, points0MotionSolver, componentVelocityMotionSolver, componentDisplacementMotionSolver, and displacementMeshMoverMotionSolver.
|
pure virtual |
Update local data for topology changes.
Implemented in rigidBodyMeshMotionSolver, rigidBodyMeshMotion, velocityMotionSolver, motionSolverList, solidBodyMotionSolver, interpolatingSolidBodyMotionSolver, points0MotionSolver, displacementLayeredMotionMotionSolver, componentVelocityMotionSolver, componentDisplacementMotionSolver, displacementMeshMoverMotionSolver, velocityLaplacianFvMotionSolver, displacementSBRStressFvMotionSolver, displacementLaplacianFvMotionSolver, velocityComponentLaplacianFvMotionSolver, and displacementComponentLaplacianFvMotionSolver.
|
pure virtual |
Update corresponding to the given distribution map.
Implemented in rigidBodyMeshMotionSolver, velocityMotionSolver, motionSolverList, solidBodyMotionSolver, points0MotionSolver, componentVelocityMotionSolver, and componentDisplacementMotionSolver.
|
pure virtual |
Update from another mesh using the given map.
Implemented in rigidBodyMeshMotionSolver, velocityMotionSolver, motionSolverList, solidBodyMotionSolver, interpolatingSolidBodyMotionSolver, points0MotionSolver, displacementMotionSolver, componentVelocityMotionSolver, componentDisplacementMotionSolver, velocityLaplacianFvMotionSolver, displacementSBRStressFvMotionSolver, displacementLaplacianFvMotionSolver, velocityComponentLaplacianFvMotionSolver, and displacementComponentLaplacianFvMotionSolver.
|
virtual |
Optionally write motion state information for restart.
Reimplemented in sixDoFRigidBodyMotionSolver, rigidBodyMeshMotionSolver, rigidBodyMeshMotion, and points0MotionSolver.
Definition at line 128 of file motionSolver.C.
Referenced by points0MotionSolver::write(), and rigidBodyMeshMotionSolver::write().