Public Member Functions | List of all members
ImprovedCenterGravity Class Reference

Point source gravity force. More...

#include <improved_center_gravity.hpp>

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

Public Member Functions

 ImprovedCenterGravity (double M, double Rmin, const Vector2D &center, 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...
 

Detailed Description

Point source gravity force.

Definition at line 11 of file improved_center_gravity.hpp.

Constructor & Destructor Documentation

◆ ImprovedCenterGravity()

ImprovedCenterGravity::ImprovedCenterGravity ( double  M,
double  Rmin,
const Vector2D center,
double  Rsoft = 0 
)

Class constructor.

Parameters
MThe mass of the point source
RminThe softenning length
centerThe location of the point source
RsoftThe maximum radius where the sofetning length applies to

Definition at line 4 of file improved_center_gravity.cpp.

Member Function Documentation

◆ get_center()

Vector2D const & ImprovedCenterGravity::get_center ( void  ) const

Returns the position of the center.

Returns
Position of the center

Definition at line 23 of file improved_center_gravity.cpp.

◆ operator()()

Vector2D ImprovedCenterGravity::operator() ( const Tessellation tess,
const vector< ComputationalCell > &  cells,
const vector< Extensive > &  fluxes,
const double  time,
const int  point,
TracerStickerNames const &  tracerstickernames 
) const
virtual

Calculates the acceleration that the cell feels.

Parameters
tessThe tessellation
cellsThe primitive cells
pointThe index of the cell to calculate
fluxesThe vector of the fluxes
timeThe simulation time
tracerstickernamesThe names of the tracers and stickers
Returns
The calculated acceleration

Implements Acceleration.

Definition at line 8 of file improved_center_gravity.cpp.

Here is the call graph for this function:

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