Correction to point velocities that keeps cells round. More...
#include <CentroidMotion.hpp>


Public Member Functions | |
| CentroidMotion (PointMotion const &bpm, double reduction_factor, EquationOfState const &eos, size_t niter=2, vector< string > toignore=vector< string >()) | |
| Class constructor. More... | |
| vector< Vector2D > | operator() (const Tessellation &tess, const vector< ComputationalCell > &cells, double time, TracerStickerNames const &tracerstickernames) const |
| Calculates the velocity of all mesh points. More... | |
| 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. More... | |
Public Member Functions inherited from PointMotion | |
| virtual | ~PointMotion (void) |
| Virtual destructor. | |
Correction to point velocities that keeps cells round.
Based on Philip Mocz method
Definition at line 18 of file CentroidMotion.hpp.
| CentroidMotion::CentroidMotion | ( | PointMotion const & | bpm, |
| double | reduction_factor, | ||
| EquationOfState const & | eos, | ||
| size_t | niter = 2, |
||
| vector< string > | toignore = vector<string>() |
||
| ) |
Class constructor.
| bpm | class of point motion on which to apply the fix |
| reduction_factor | The factor to reduce the correction velocity (1/reduction_factor is the number of iterations to fix) |
| niter | The number of correction iterations to apply |
| eos | The equation of state |
| toignore | List of sticker names not to apply correction for |
Definition at line 255 of file CentroidMotion.cpp.
|
virtual |
Applies a small fix to the velocity of all mesh points once the time step is known.
| tess | The tessellation |
| cells | Hydrodynamics cells |
| time | The simulation time |
| velocities | Velocities of the points |
| dt | The time step |
| tracerstickernames | The names of the tracers and stickers |
Reimplemented from PointMotion.
Definition at line 266 of file CentroidMotion.cpp.
|
virtual |
Calculates the velocity of all mesh points.
| tess | The tessellation |
| cells | Hydrodynamics cells |
| time | The simulation time |
| tracerstickernames | The names of the tracers and stickers |
Implements PointMotion.
Definition at line 259 of file CentroidMotion.cpp.
1.8.13