/* ---------------------------------------- constant.h -------------- */ #ifndef __CONSTANT_H__ #define __CONSTANT_H__ /* Define physical constants. We will use MKS definitions throughout. */ #define SQ(x) ((x) * (x)) #define CUBE(x) ((x) * (x) * (x)) #ifndef PI #define PI 3.141592653589 #endif #define SQPI 1.772453851 #define cLight 2.99792458E+08 /* Speed of light [m/s] */ #define hPlanck 6.6260755E-34 /* Planck's constant [Js] */ #define kBoltz 1.380658E-23 /* Boltzman's constant [J/K] */ #define mElect 9.1093897E-31 /* Electron mass [kg] */ #define mHatom 1.673725E-27 /* H atom mass [kg] */ #define G 6.67259E-11 /* Gravitational Constant [N m^2/kg^2] */ #define aRad 7.565914E-16 /* Radiation constant W/m^4 K^4 */ #define sigmaT 6.65e-29 /* Thomson cross section in m^2 */ #endif /* !__CONSTANT_H__ */ /* ------- end ---------------------------- constant.h ------------- */