Skip to content
Snippets Groups Projects
Commit d22c41b8 authored by Folkert Nobels's avatar Folkert Nobels
Browse files

Make the pressure floor consistent with the pressure floor

parent b6c7ea14
No related branches found
No related tags found
1 merge request!705Star formation following Schaye08
......@@ -418,10 +418,16 @@ INLINE static void starformation_init_backend(
starform->EOS_density_norm =
starform->EOS_density_norm_HpCM3 * conversion_numb_density;
/* Initial Hydrogen abundance (mass fraction) */
const double X_H = hydro_props->hydrogen_mass_fraction;
/* We assume neutral gas */
const float mean_molecular_weight = hydro_props->mu_neutral;
/* Calculate the EOS pressure normalization */
starform->EOS_pressure_norm = starform->EOS_density_norm *
starform->EOS_temperature_norm *
phys_const->const_boltzmann_k;
phys_const->const_boltzmann_k / mean_molecular_weight / X_H;
const double EOS_high_den_pressure =
starform->EOS_pressure_norm *
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment