Gyoto
Namespaces | Macros | Typedefs
GyotoDefs.h File Reference

#defines and typedefs for Gyoto More...

Go to the source code of this file.

Namespaces

namespace  Gyoto
 Namespace for the Gyoto library.

Macros

#define GYOTO_SPECTRO_KIND_NONE   0
#define GYOTO_SPECTRO_KIND_FREQ   1
 Spectrometer kind="freq".
#define GYOTO_SPECTRO_KIND_FREQLOG   2
 Spectrometer kind="freqlog".
#define GYOTO_SPECTRO_KIND_WAVE   3
 Spectrometer kind="wave".
#define GYOTO_SPECTRO_KIND_WAVELOG   4
 Spectrometer kind="wavelog".
#define GYOTO_QUANTITY_INTENSITY   1
#define GYOTO_QUANTITY_EMISSIONTIME   2
#define GYOTO_QUANTITY_MIN_DISTANCE   4
#define GYOTO_QUANTITY_FIRST_DMIN   8
#define GYOTO_QUANTITY_REDSHIFT   16
#define GYOTO_QUANTITY_IMPACTCOORDS   32
#define GYOTO_QUANTITY_SPECTRUM   512
#define GYOTO_QUANTITY_BINSPECTRUM   1024
#define GYOTO_QUANTITY_USER1   32768
#define GYOTO_QUANTITY_USER2   16384
#define GYOTO_QUANTITY_USER3   8192
#define GYOTO_QUANTITY_USER4   4096
#define GYOTO_QUANTITY_USER5   2048
#define GYOTO_DEFAULT_DEBUG_MODE   0
#define GYOTO_QUIET_VERBOSITY   1
#define GYOTO_SEVERE_VERBOSITY   3
#define GYOTO_DEFAULT_VERBOSITY   5
#define GYOTO_INFO_VERBOSITY   10
#define GYOTO_DEBUG_VERBOSITY   3000
#define GYOTO_QUIET   if (Gyoto::verbose() >= GYOTO_QUIET_VERBOSITY) cout
#define GYOTO_SEVERE   if(Gyoto::verbose()>=GYOTO_SEVERE_VERBOSITY)cerr<<"SEVERE: "
#define GYOTO_WARNING   if(Gyoto::verbose()>=GYOTO_SEVERE_VERBOSITY)cerr<<"WARNING: "
#define GYOTO_MSG   if (Gyoto::verbose() >= GYOTO_DEFAULT_VERBOSITY) cout
#define GYOTO_INFO   if (Gyoto::verbose() >= GYOTO_INFO_VERBOSITY) cerr<<"INFO: "
#define GYOTO_DEBUG
#define GYOTO_COORDKIND_UNSPECIFIED   0
 Unspecified coordinate kind.
#define GYOTO_COORDKIND_CARTESIAN   1
 Cartesian-like coordinate system.
#define GYOTO_COORDKIND_SPHERICAL   2
 Spherical-like coordinate system.
#define GYOTO_DEFAULT_X_SIZE   1024
 Default size for arrays in a Worldline.
#define GYOTO_DEFAULT_DELTA   0.01
#define GYOTO_T_TOL   1e-4
#define GYOTO_DEFAULT_PLUGINS   "stdplug,nofail:lorene"
#define GYOTO_PLUGIN_SFX   "so"
#define GYOTO_C   299792458.
 Celerity of light (m/s)
#define GYOTO_C_CGS   2.99792458e10
 Celerity of light (cm/s)
#define GYOTO_G   6.67428e-11
 Gravitational constant (SI = m^3 * kg^-1 * s-2)
#define GYOTO_G_CGS   6.67428e-8
 Gravitational constant (cgs: cm^3 * g^-1 * s-2)
#define GYOTO_G_OVER_C_SQUARE   7.426138e-28
 G/c^2=6.67428e-11/299792458.^2.
#define GYOTO_PLANCK   6.62606896e-34
 Planck's constant (h) in SI (J.s=kg.m^2/s)
#define GYOTO_PLANCK_CGS   6.62606896e-27
#define GYOTO_PLANCK_OVER_C_SQUARE   7.372496e-51
 h/c^2 in SI (kg.s)
#define GYOTO_BOLTZMANN   1.3806504e-23
 Boltzmann's constant (k) in SI (J/K)
#define GYOTO_BOLTZMANN_CGS   1.3806504e-16
 Boltzmann's constant (k) in cgs (erg/K)
#define GYOTO_PLANCK_OVER_BOLTZMANN   4.7992373e-11
 h/k (K.s = K/Hz)
#define GYOTO_GAS_CST   8.3144621
 ideal gas constant R in SI
#define GYOTO_GAS_CST_CGS   8.3144621e7
 ideal gas constant R in erg/(K mol)
#define GYOTO_AVOGADRO   6.0221413e23
 Avogadro constant.
#define GYOTO_THOMSON_CGS   6.6524e-25
 Thomson cross-section in cgs.
#define GYOTO_ALPHA_F   0.00729927
 Fine structure constant (=1/137)
#define GYOTO_PROTON_MASS_CGS   1.67262158e-24
 proton mass in cgs
#define GYOTO_ELECTRON_MASS_CGS   9.10938188e-28
 electron mass in cgs
#define GYOTO_ELECTRON_CLASSICAL_RADIUS_CGS   2.8179e-13
 electron classical radius in cgs
#define GYOTO_ELEMENTARY_CHARGE_CGS   4.80320427e-10
 elementary charge in cgs (erg^{1/2} cm^{1/2})
#define GYOTO_EULER_MASCHERONI   0.577216
 Euler-Mascheroni constant.
#define GYOTO_ATOMIC_MASS_UNIT_CGS   1.660537781e-24
 atomic mass unit in cgs
#define GYOTO_SUN_MASS   1.98843e30
 Sun mass (kg)
#define GYOTO_SUN_MASS_CGS   1.98843e33
 Sun mass (g)
#define GYOTO_SUN_RADIUS   6.955e8
 Sun radius (m)
#define GYOTO_KPC   3.08568025e19
 Kiloparsec (m)
#define GYOTO_ASTRONOMICAL_UNIT   1.49597870700e11
 Astronomical Unit (m)
#define GYOTO_LIGHT_YEAR   9.4607304725808e15
 Light-year (m)
#define GYOTO_RADEG   57.2957795130823
 Convert from radians to degrees.
#define GYOTO_DEGRAD   0.0174532925199433
#define GYOTO_MINRAD   2.908882086657216e-04
#define GYOTO_SECRAD   4.848136811095360e-06
#define GYOTO_MASRAD   4.848136811095360e-09
#define GYOTO_MUASRAD   4.848136811095360e-12
#define GYOTO_SCREEN_DMAX   1e7
 Default value for Screen::dmax_.
#define GYOTO_PREC   15
#define GYOTO_WIDTH   25

Typedefs

typedef unsigned int Gyoto::SpectroKind_t
 Spectrometer kind.
typedef unsigned int Gyoto::Quantity_t
 Observable quantities.
typedef unsigned int Gyoto::Verbosity_t
 Verbosity levels.
typedef unsigned int Gyoto::CoordKind_t
 Coordinate system kinds GYOTO_COORDKIND_CARTESIAN or GYOTO_COORDKIND_SPHERICAL.

Detailed Description

#defines and typedefs for Gyoto


Macro Definition Documentation

#define GYOTO_DEBUG
Value:
if (Gyoto::debug()) cerr << "DEBUG: " \
<< __PRETTY_FUNCTION__ << ": "
#define GYOTO_DEFAULT_DELTA   0.01

Default value for the initial step in the integration loop. Since the step is (most of the time) adaptive, this default only has little influence, but sometimes, it matters. Also used in Scenery.

#define GYOTO_T_TOL   1e-4

Precision on the determination of a date (e.g. in Photon::findMin(), Photon::findValue()).