17 double M_self, M_external, g_dark, g_self, g_external;
20 M_self = M_external = g_dark = g_self = g_external = 0.;
27 double delta_c = (200./3.) *
POW3( c_200 ) / ( log(1.+c_200) - c_200/(1.+c_200) );
28 double M_dark = 4*PI*rho_crit*delta_c*
POW3(
dark.
r_s);
31 g_dark = -GRAV_CONST * M_dark / (R*R);
57 g_self = - GRAV_CONST * M_self / (R*R);
58 g_external = - GRAV_CONST * M_external * SOLAR_MASS / (R*R);
69 g_self = - 2*PI* GRAV_CONST * M_self;
70 g_external = - 2*PI* GRAV_CONST * M_external * SOLAR_MASS/PARSEC/PARSEC;
73 fprintf(
ioQQQ,
" WARNING: Setting both mid-plane baryonic gravity symmetry and an NFW dark matter halo is almost certainly unphysical!\n" );
NORETURN void TotalInsanity(void)
void GravitationalPressure(void)
#define DEBUG_ENTRY(funcname)
int fprintf(const Output &stream, const char *format,...)
double RhoGravity_external
vector< double > external_mass[3]