Public Member Functions | List of all members
RoundCells Class Reference

Correction to point velocities that keeps cells round. More...

#include <round_cells.hpp>

Inheritance diagram for RoundCells:
Inheritance graph
[legend]
Collaboration diagram for RoundCells:
Collaboration graph
[legend]

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< Vector2Doperator() (const Tessellation &tess, const vector< ComputationalCell > &cells, double time, TracerStickerNames const &tracerstickernames) const
 Calculates the velocity of all mesh points. More...
 
vector< Vector2DApplyFix (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.
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ RoundCells() [1/2]

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.

Parameters
pmBase point motion
eosEquation of state
outerThe outer boudnary conditions, used for preventing points from getting outside the box. If periodic then no fix is applied
chichi parameter in equation 63
etaeta parameter in equation 63
coldSwitch for cold flows

Definition at line 7 of file round_cells.cpp.

◆ RoundCells() [2/2]

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.

Parameters
pmBase point motion
eosEquation of state
chichi parameter in equation 63
etaeta parameter in equation 63
coldSwitch for cold flows

Definition at line 10 of file round_cells.cpp.

Here is the call graph for this function:

Member Function Documentation

◆ ApplyFix()

vector< Vector2D > RoundCells::ApplyFix ( Tessellation const &  tess,
vector< ComputationalCell > const &  cells,
double  time,
double  dt,
vector< Vector2D > const &  velocities,
TracerStickerNames const &  tracerstickernames 
) const
virtual

Applies a small fix to the velocity of all mesh points once the time step is known.

Parameters
tessThe tessellation
cellsHydrodynamics cells
timeThe simulation time
velocitiesVelocities of the points
dtThe time step
tracerstickernamesThe names of the tracers and stickers
Returns
The new velocities

Reimplemented from PointMotion.

Definition at line 117 of file round_cells.cpp.

Here is the call graph for this function:

◆ operator()()

vector< Vector2D > RoundCells::operator() ( const Tessellation tess,
const vector< ComputationalCell > &  cells,
double  time,
TracerStickerNames const &  tracerstickernames 
) const
virtual

Calculates the velocity of all mesh points.

Parameters
tessThe tessellation
cellsHydrodynamics cells
timeThe simulation time
tracerstickernamesThe names of the tracers and stickers
Returns
Velocities of the points

Implements PointMotion.

Definition at line 101 of file round_cells.cpp.

Here is the call graph for this function:

The documentation for this class was generated from the following files: