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

Add the metallicity in threshold

parent 25c40d2b
No related branches found
No related tags found
1 merge request!705Star formation following Schaye08
...@@ -164,8 +164,9 @@ INLINE static int star_formation_potential_to_become_star( ...@@ -164,8 +164,9 @@ INLINE static int star_formation_potential_to_become_star(
/* If the maximum density is not exceeded check if the redshift dependent /* If the maximum density is not exceeded check if the redshift dependent
* one is exceeded */ * one is exceeded */
} else { } else {
/* NEED TO USE A PROPER WAY OF FINDING Z */ /* Get the metallicity from the chemistry struct
double Z = 0.002; * Do we use SMOOTHED OR NON SMOOTHED IN EAGLE???*/
double Z = p->chemistry_data.smoothed_metal_mass_fraction_total;
double den_crit_current = double den_crit_current =
starform->den_crit * pow(Z * starform->Z0_inv, starform->n_Z0); starform->den_crit * pow(Z * starform->Z0_inv, starform->n_Z0);
if (p->rho > den_crit_current) { if (p->rho > den_crit_current) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment