Correction to point velocities that keeps cells round. More...
#include <round_cells.hpp>
Public Member Functions | |
RoundCells (const PointMotion &pm, const EquationOfState &eos, OuterBoundary const &outer, double chi=0.15, double eta=0.02, bool cold=false, double cold_speed=0.15) | |
Class constructor. More... | |
RoundCells (const PointMotion &pm, const EquationOfState &eos, double chi=0.15, double eta=0.02, bool cold=false, double cold_speed=0.15) | |
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... | |
![]() | |
virtual | ~PointMotion (void) |
Virtual destructor. | |
Correction to point velocities that keeps cells round.
Based on equation 63 in the Arepo paper
Definition at line 16 of file round_cells.hpp.
RoundCells::RoundCells | ( | const PointMotion & | pm, |
const EquationOfState & | eos, | ||
OuterBoundary const & | outer, | ||
double | chi = 0.15 , |
||
double | eta = 0.02 , |
||
bool | cold = false , |
||
double | cold_speed = 0.15 |
||
) |
Class constructor.
pm | Base point motion |
eos | Equation of state |
outer | The outer boudnary conditions, used for preventing points from getting outside the box. If periodic then no fix is applied |
chi | chi parameter in equation 63 |
eta | eta parameter in equation 63 |
cold | Switch for cold flows |
Definition at line 7 of file round_cells.cpp.
RoundCells::RoundCells | ( | const PointMotion & | pm, |
const EquationOfState & | eos, | ||
double | chi = 0.15 , |
||
double | eta = 0.02 , |
||
bool | cold = false , |
||
double | cold_speed = 0.15 |
||
) |
Class constructor.
pm | Base point motion |
eos | Equation of state |
chi | chi parameter in equation 63 |
eta | eta parameter in equation 63 |
cold | Switch for cold flows |
Definition at line 10 of file round_cells.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 117 of file round_cells.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 101 of file round_cells.cpp.