Point source gravity force. More...
#include <improved_center_gravity.hpp>
Public Member Functions | |
ImprovedCenterGravity (double M, double Rmin, const Vector2D ¢er, double Rsoft=0) | |
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... | |
Vector2D const & | get_center (void) const |
Returns the position of the center. More... | |
Point source gravity force.
Definition at line 11 of file improved_center_gravity.hpp.
ImprovedCenterGravity::ImprovedCenterGravity | ( | double | M, |
double | Rmin, | ||
const Vector2D & | center, | ||
double | Rsoft = 0 |
||
) |
Class constructor.
M | The mass of the point source |
Rmin | The softenning length |
center | The location of the point source |
Rsoft | The maximum radius where the sofetning length applies to |
Definition at line 4 of file improved_center_gravity.cpp.
Vector2D const & ImprovedCenterGravity::get_center | ( | void | ) | const |
Returns the position of the center.
Definition at line 23 of file improved_center_gravity.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 improved_center_gravity.cpp.