Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
SWIFTsim
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SWIFT
SWIFTsim
Commits
de5de7c1
Commit
de5de7c1
authored
6 years ago
by
Folkert Nobels
Browse files
Options
Downloads
Patches
Plain Diff
Add the effective equation of state to the print backend
parent
24451b39
No related branches found
No related tags found
1 merge request
!705
Star formation following Schaye08
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/starformation/schaye08/starformation.h
+17
-8
17 additions, 8 deletions
src/starformation/schaye08/starformation.h
with
17 additions
and
8 deletions
src/starformation/schaye08/starformation.h
+
17
−
8
View file @
de5de7c1
...
...
@@ -115,6 +115,9 @@ struct star_formation {
/*! EOS density norm */
double
EOS_density_norm
;
/*! EOS density norm in user units */
float
EOS_density_norm_HpCM3
;
};
/*
...
...
@@ -379,9 +382,10 @@ INLINE static void starformation_init_backend(
parameter_file
,
"SchayeSF:EOS_Jeans_GammaEffective"
);
starform
->
EOS_temperature_norm
=
parser_get_param_double
(
parameter_file
,
"SchayeSF:EOS_Jeans_TemperatureNorm_K"
);
starform
->
EOS_density_norm
=
starform
->
EOS_density_norm
_HpCM3
=
parser_get_param_double
(
parameter_file
,
"SchayeSF:EOS_JEANS_DensityNorm_HpCM3"
)
*
"SchayeSF:EOS_JEANS_DensityNorm_HpCM3"
);
starform
->
EOS_density_norm
=
starform
->
EOS_density_norm_HpCM3
*
conversion_numb_density
;
/* Calculate the EOS pressure normalization */
...
...
@@ -445,17 +449,22 @@ INLINE static void starformation_print_backend(
message
(
"Star formation law is Schaye and Dalla Vecchia (2008)"
);
message
(
"With properties: normalization = %e Msun/kpc^2/yr, slope of the"
"Kennicutt-Schmidt law = %e, gas fraction = %e, threshold "
"density = %e #/cm^3 and threshold temperature = %e K"
,
starform
->
KS_normalization_MSUNpYRpKPC2
,
starform
->
KS_power_law
,
starform
->
fgas
,
starform
->
density_threshold_HpCM3
,
starform
->
Temperature_threshold
);
message
(
"Density threshold to form stars is given by Schaye (2004)"
);
"Kennicutt-Schmidt law = %e and gas fraction = %e "
,
starform
->
KS_normalization_MSUNpYRpKPC2
,
starform
->
KS_power_law
,
starform
->
fgas
);
message
(
"The effective equation of state is given by: polytropic "
"index = %e , normalization density = %e #/cm^3 and normalization temperature = "
"%e K"
,
starform
->
polytropic_index
,
starform
->
EOS_density_norm_HpCM3
,
starform
->
EOS_temperature_norm
);
message
(
"Density threshold is given by Schaye (2004)"
);
message
(
"the normalization of the
star formation law
is given by"
"the normalization of the
density threshold
is given by"
" %e #/cm^3, with metallicity slope of %e, and metallicity normalization"
"of %e, the maximum density threshold is given by %e #/cm^3"
,
starform
->
density_threshold_HpCM3
,
starform
->
n_Z0
,
starform
->
Z0
,
starform
->
density_threshold_max_HpCM3
);
message
(
"Temperature threshold is given by Dalla Vecchia and Schaye (2012)"
);
message
(
"The temperature threshold is given by: %e K"
,
starform
->
Temperature_threshold
);
}
#endif
/* SWIFT_SCHAYE_STARFORMATION_H */
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment