MP-Gadget
5.0.1.dev1-76bc7d4726-dirty
|
Go to the source code of this file.
Classes | |
struct | Cosmology |
struct | FunctionOfK |
Functions | |
void | function_of_k_normalize_sigma (FunctionOfK *fk, double R, double sigma) |
double | function_of_k_eval (FunctionOfK *fk, double k) |
double | function_of_k_tophat_sigma (FunctionOfK *fk, double R) |
double | hubble_function (const Cosmology *CP, double a) |
double | GrowthFactor (Cosmology *CP, double astart, double aend) |
double | F_Omega (Cosmology *CP, double a) |
int | hybrid_nu_tracer (const Cosmology *CP, double atime) |
void | init_cosmology (Cosmology *CP, double TimeBegin, const struct UnitSystem units) |
void | check_units (const Cosmology *CP, const struct UnitSystem units) |
void check_units | ( | const Cosmology * | CP, |
const struct UnitSystem | units | ||
) |
Check and print properties of the cosmological unit system.
Definition at line 260 of file cosmology.c.
References CP, endrun(), get_omega_nu(), Cosmology::GravInternal, Cosmology::Hubble, Cosmology::HubbleParam, Cosmology::MassiveNuLinRespOn, message(), Cosmology::Omega0, Cosmology::Omega_fld, Cosmology::OmegaBaryon, Cosmology::OmegaCDM, Cosmology::OmegaG, Cosmology::OmegaK, Cosmology::OmegaLambda, Cosmology::ONu, Cosmology::RadiationOn, UnitSystem::UnitDensity_in_cgs, UnitSystem::UnitEnergy_in_cgs, UnitSystem::UnitLength_in_cm, UnitSystem::UnitMass_in_g, UnitSystem::UnitTime_in_s, and UnitSystem::UnitVelocity_in_cm_per_s.
Referenced by begrun().
double F_Omega | ( | Cosmology * | CP, |
double | a | ||
) |
Definition at line 148 of file cosmology.c.
Referenced by displacement_fields(), test_cosmology(), and test_growth_numerical().
double function_of_k_eval | ( | FunctionOfK * | fk, |
double | k | ||
) |
Definition at line 191 of file cosmology.c.
References sigma2_params::fk, FunctionOfK::k, FunctionOfK::Pk, FunctionOfK::size, and FunctionOfK::table.
Referenced by sigma2_int().
void function_of_k_normalize_sigma | ( | FunctionOfK * | fk, |
double | R, | ||
double | sigma | ||
) |
Definition at line 249 of file cosmology.c.
References sigma2_params::fk, function_of_k_tophat_sigma(), FunctionOfK::Pk, sigma2_params::R, sigma, FunctionOfK::size, and FunctionOfK::table.
double function_of_k_tophat_sigma | ( | FunctionOfK * | fk, |
double | R | ||
) |
Definition at line 233 of file cosmology.c.
References sigma2_params::fk, sigma2_params::R, and sigma2_int().
Referenced by function_of_k_normalize_sigma().
double GrowthFactor | ( | Cosmology * | CP, |
double | astart, | ||
double | aend | ||
) |
Definition at line 82 of file cosmology.c.
Referenced by gravpm_force(), init_powerspectrum(), print_spec(), and test_cosmology().
double hubble_function | ( | const Cosmology * | CP, |
double | a | ||
) |
Definition at line 58 of file cosmology.c.
References CP, get_omega_nu(), Cosmology::Hubble, Cosmology::Omega0, Cosmology::Omega_ur, Cosmology::OmegaBaryon, Cosmology::OmegaCDM, OmegaFLD(), Cosmology::OmegaG, Cosmology::OmegaK, Cosmology::OmegaLambda, Cosmology::ONu, and Cosmology::RadiationOn.
Referenced by atime_integ(), blackhole(), cooling_and_starformation(), displacement_fields(), drift_integ(), fac_integ(), find_timesteps(), fof_save_particles(), fof_write_header(), fslength_int(), get_delta_nu(), get_delta_nu_int(), get_long_range_timestep_dloga(), gravkick_integ(), growth(), growth_ode(), hydro_force(), hydrokick_integ(), init_transfer_table(), kernel(), petaio_read_snapshot(), petaio_save_snapshot(), petaio_write_header(), and test_cosmology().
int hybrid_nu_tracer | ( | const Cosmology * | CP, |
double | atime | ||
) |
Definition at line 53 of file cosmology.c.
References CP, Cosmology::HybridNeutrinosOn, and Cosmology::HybridNuPartTime.
Referenced by run(), runfof(), and runpower().
void init_cosmology | ( | Cosmology * | CP, |
double | TimeBegin, | ||
const struct UnitSystem | units | ||
) |
Definition at line 15 of file cosmology.c.
References Cosmology::CMBTemperature, CP, get_omega_nu(), Cosmology::GravInternal, GRAVITY, Cosmology::Hubble, HUBBLE, Cosmology::HubbleParam, _omega_nu::hybnu, Cosmology::HybridNeutrinosOn, Cosmology::HybridNuPartTime, Cosmology::HybridVcrit, init_hybrid_nu(), init_omega_nu(), _omega_nu::kBtnu, LIGHTCGS, Cosmology::MNu, Cosmology::Omega0, Cosmology::OmegaBaryon, Cosmology::OmegaCDM, Cosmology::OmegaG, Cosmology::OmegaK, Cosmology::OmegaLambda, Cosmology::ONu, STEFAN_BOLTZMANN, UnitSystem::UnitLength_in_cm, UnitSystem::UnitMass_in_g, Cosmology::UnitTime_in_s, and UnitSystem::UnitTime_in_s.
Referenced by begrun(), do_density_test(), do_force_test(), main(), setup(), and setup_cosmology().