Class Gravity
Defined in File gravity.hpp
Class Documentation
-
class Gravity
Public Functions
-
void ComputeGravity()
compute gravitational field at current time t
-
void EnrollPotential(GravPotentialFunc)
-
void EnrollBodyForce(BodyForceFunc)
-
void ResetPotential()
fill the potential with zeros.
-
void AddCentralMassPotential()
Àdd the potential due to a centrall mass.
-
void ShowConfig()
Show the gravity configuration.
Public Members
-
bool havePotential = {false}
in which case, (at least) one of the following is true
Whether a gravitational potential is present
-
bool haveUserDefPotential = {false}
Whether a potential is defined by user.
-
bool haveCentralMassPotential = {false}
Whether a potential is due to the central mass.
-
bool havePlanetsPotential = {false}
Whether a potential is due to planet(s)
-
bool haveSelfGravityPotential = {false}
Whether a potential is defined through self-gravity.
-
bool haveBodyForce = {false}
Whether a body force (=acceleration) is present.
-
IdefixArray3D<real> phiP
-
IdefixArray4D<real> bodyForceVector
-
void ComputeGravity()