Public Member Functions | List of all members
CenterGravity Class Reference

Gravitational acceleration due to a pointlike mass. More...

#include <CenterGravity.hpp>

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

Public Member Functions

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

Detailed Description

Gravitational acceleration due to a pointlike mass.

Definition at line 12 of file CenterGravity.hpp.

Constructor & Destructor Documentation

◆ CenterGravity()

CenterGravity::CenterGravity ( double  M,
double  Rmin,
const Vector2D center 
)

Class constructor.

Parameters
MThe mass of the point source
RminThe softenning length
centerThe location of the point source

Definition at line 4 of file CenterGravity.cpp.

Member Function Documentation

◆ operator()()

Vector2D CenterGravity::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 CenterGravity.cpp.

Here is the call graph for this function:

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