Unit
-
class Unit
SBody uses the Geometrized units, in which \(c=G=1\). In addition, the central black hole mass is set to 1.
Public Static Functions
-
static int Initialize(double mass)
Initialize the unit system.
- Parameters:
mass – mass of the central black hole, in unit of \(M_\odot\)
- Returns:
status
Public Static Attributes
-
static constexpr double deg = 1.7453292519943295e-2
Degree, in unit of rad.
-
static constexpr double min = 2.908882086657216e-4
Minute of arc, in unit of rad.
-
static constexpr double sec = 4.84813681109536e-6
Second of arc, in unit of rad.
-
static constexpr double mas = 4.84813681109536e-9
Millisecond of arc, in unit of rad.
-
static constexpr double uas = 4.84813681109536e-12
Microsecond of arc, in unit of rad.
-
static double s
Second.
-
static double hr
Hour.
-
static double day
Day.
-
static double yr
Year.
-
static double cm
Centimeter.
-
static double m
Meter.
-
static double km
Kilometer.
-
static double R_sun
Radius of the Sun, \(R_\odot\).
-
static double AU
The astronomical unit.
-
static double mpc
Milliparsec.
-
static double pc
Parsec.
-
static double kpc
Kiloparsec.
-
static double Mpc
Megaparsec.
-
static double Gpc
Gigaparsec.
-
static double M_sun
Mass of the Sun, \(M_\odot\).
-
static double M_earth
Mass of Earth, \(M_\oplus\).
-
static double M_jup
Mass of Jupiter, \(M_\mathrm{jup}\).
-
static double erg
Erg.
-
static double J
Joules.
-
static int Initialize(double mass)