point_motion.hpp
Go to the documentation of this file.
1 
6 #ifndef POINT_MOTION_HPP
7 #define POINT_MOTION_HPP 1
8 
9 #include "../common/hydrodynamic_variables.hpp"
10 #include "../../tessellation/tessellation.hpp"
11 #include "computational_cell_2d.hpp"
12 
16 {
17 public:
18 
26  virtual vector<Vector2D> operator()(const Tessellation& tess,const vector<ComputationalCell>& cells,
27  double time,TracerStickerNames const& tracerstickernames) const = 0;
28 
38  virtual vector<Vector2D> ApplyFix(Tessellation const& tess, vector<ComputationalCell> const& cells, double time,
39  double dt, vector<Vector2D> const& velocities,TracerStickerNames const& tracerstickernames)const;
40 
42  virtual ~PointMotion(void);
43 };
44 
45 #endif
Abstract class for tessellation.
Abstract class for motion of mesh generating points.
virtual ~PointMotion(void)
Virtual destructor.
Definition: point_motion.cpp:3
virtual vector< Vector2D > operator()(const Tessellation &tess, const vector< ComputationalCell > &cells, double time, TracerStickerNames const &tracerstickernames) const =0
Calculates the velocity of all mesh points.
Class for keeping the names of the tracers and stickers.
virtual vector< Vector2D > ApplyFix(Tessellation const &tess, vector< ComputationalCell > const &cells, double time, double dt, vector< Vector2D > const &velocities, TracerStickerNames const &tracerstickernames) const
Applies a small fix to the velocity of all mesh points once the time step is known.
Definition: point_motion.cpp:5