35 #ifndef motionSolver_H
36 #define motionSolver_H
49 class polyTopoChangeMap;
51 class polyDistributionMap;
167 virtual void solve() = 0;
182 virtual bool write()
const;
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
A list of keyword definitions, which are a keyword followed by any number of values (e....
Virtual base class for mesh motion solver.
virtual void mapMesh(const polyMeshMap &)=0
Update from another mesh using the given map.
declareRunTimeSelectionTable(autoPtr, motionSolver, dictionary,(const word &name, const polyMesh &mesh, const dictionary &dict),(name, mesh, dict))
virtual void distribute(const polyDistributionMap &)=0
Update corresponding to the given distribution map.
virtual ~motionSolver()
Destructor.
const word & keyword() const
Return keyword.
virtual void movePoints(const pointField &)=0
Update local data for geometry changes.
virtual tmp< pointField > newPoints()
Provide new points for motion. Solves for motion.
virtual bool solidBody() const
Is the motion solid body? I.e., are the volumes and area magnitudes.
virtual tmp< pointField > curPoints() const =0
Provide current points for motion. Uses current motion field.
virtual void solve()=0
Solve for motion.
virtual void twoDCorrectPoints(pointField &) const
Correct point field for reduced-dimensionality cases.
static autoPtr< motionSolver > New(const word &name, const polyMesh &, const dictionary &)
Select constructed from polyMesh and dictionary.
const word & name() const
Return name.
TypeName("motionSolver")
Runtime type information.
virtual bool write() const
Optionally write motion state information for restart.
const dictionary & coeffDict() const
Const access to the coefficients dictionary.
virtual autoPtr< motionSolver > clone() const
Clone function.
const polyMesh & mesh() const
Return reference to mesh.
motionSolver(const word &name, const polyMesh &mesh, const dictionary &, const word &type)
Construct from polyMesh and dictionary and type.
virtual void topoChange(const polyTopoChangeMap &)=0
Update local data for topology changes.
Class containing mesh-to-mesh mapping information after a mesh distribution where we send parts of me...
Class containing mesh-to-mesh mapping information.
Mesh consisting of general polyhedral cells.
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
A class for managing temporary objects.
A class for handling words, derived from string.
fileType type(const fileName &, const bool checkVariants=true, const bool followLink=true)
Return the file type: directory or file.