improved_center_gravity.hpp
Go to the documentation of this file.
1 
5 #ifndef CENTERGRAVITY_HPP
6 #define CENTERGRAVITY_HPP 1
7 
8 #include "ConservativeForce.hpp"
9 
12 {
13 public:
21  ImprovedCenterGravity(double M,double Rmin,const Vector2D& center,double Rsoft=0);
22 
23  Vector2D operator()
24  (const Tessellation& tess,
25  const vector<ComputationalCell>& cells,
26  const vector<Extensive>& fluxes,
27  const double time,
28  const int point,
29  TracerStickerNames const& tracerstickernames) const;
30 
34  Vector2D const& get_center(void) const;
35 
36 private:
37  const double M_;
38  const double Rmin_;
39  const Vector2D center_;
40  const double Rsoft_;
41 };
42 
43 #endif // CENTERGRAVITY_HPP
Abstract class for tessellation.
Physical acceleration.
Point source gravity force.
Class for keeping the names of the tracers and stickers.
Abstract class for conservative force&#39;s acceleration.
2D Mathematical vector
Definition: geometry.hpp:15
Vector2D const & get_center(void) const
Returns the position of the center.
ImprovedCenterGravity(double M, double Rmin, const Vector2D &center, double Rsoft=0)
Class constructor.