Gravitational acceleration due to a pointlike mass. More...
#include <CenterGravity.hpp>
Public Member Functions | |
CenterGravity (double M, double Rmin, const Vector2D ¢er) | |
Class constructor. More... | |
Vector2D | operator() (const Tessellation &tess, const vector< ComputationalCell > &cells, const vector< Extensive > &fluxes, const double time, const int point, TracerStickerNames const &tracerstickernames) const |
Calculates the acceleration that the cell feels. More... | |
Gravitational acceleration due to a pointlike mass.
Definition at line 12 of file CenterGravity.hpp.
CenterGravity::CenterGravity | ( | double | M, |
double | Rmin, | ||
const Vector2D & | center | ||
) |
Class constructor.
M | The mass of the point source |
Rmin | The softenning length |
center | The location of the point source |
Definition at line 4 of file CenterGravity.cpp.
|
virtual |
Calculates the acceleration that the cell feels.
tess | The tessellation |
cells | The primitive cells |
point | The index of the cell to calculate |
fluxes | The vector of the fluxes |
time | The simulation time |
tracerstickernames | The names of the tracers and stickers |
Implements Acceleration.
Definition at line 8 of file CenterGravity.cpp.