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
377e9bcb
Commit
377e9bcb
authored
6 years ago
by
Folkert Nobels
Browse files
Options
Downloads
Patches
Plain Diff
Add temperature constant exp10(Tdex) to be used in the criteria
parent
95a69be1
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!705
Star formation following Schaye08
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/star_formation/EAGLE/star_formation.h
+7
-1
7 additions, 1 deletion
src/star_formation/EAGLE/star_formation.h
with
7 additions
and
1 deletion
src/star_formation/EAGLE/star_formation.h
+
7
−
1
View file @
377e9bcb
...
@@ -70,6 +70,9 @@ struct star_formation {
...
@@ -70,6 +70,9 @@ struct star_formation {
/*! Dalla Vecchia & Schaye temperature criteria */
/*! Dalla Vecchia & Schaye temperature criteria */
double
temperature_margin_threshold_dex
;
double
temperature_margin_threshold_dex
;
/*! 10^Tdex of Dalla Vecchia & SChaye temperature criteria */
double
ten_to_temperature_margin_threshold_dex
;
/*! gas fraction */
/*! gas fraction */
double
fgas
;
double
fgas
;
...
@@ -259,7 +262,7 @@ INLINE static int star_formation_is_star_forming(
...
@@ -259,7 +262,7 @@ INLINE static int star_formation_is_star_forming(
/* Check the Scahye & Dalla Vecchia 2012 EOS-based temperature critrion */
/* Check the Scahye & Dalla Vecchia 2012 EOS-based temperature critrion */
return
(
temperature
<
return
(
temperature
<
temperature_eos
*
exp10
(
starform
->
temperature_margin_threshold_dex
)
)
;
temperature_eos
*
starform
->
ten_to_
temperature_margin_threshold_dex
);
}
}
/**
/**
...
@@ -554,6 +557,9 @@ INLINE static void starformation_init_backend(
...
@@ -554,6 +557,9 @@ INLINE static void starformation_init_backend(
starform
->
temperature_margin_threshold_dex
=
parser_get_opt_param_double
(
starform
->
temperature_margin_threshold_dex
=
parser_get_opt_param_double
(
parameter_file
,
"EAGLEStarFormation:KS_temperature_margin_dex"
,
FLT_MAX
);
parameter_file
,
"EAGLEStarFormation:KS_temperature_margin_dex"
,
FLT_MAX
);
starform
->
ten_to_temperature_margin_threshold_dex
=
exp10
(
starform
->
temperature_margin_threshold_dex
);
/* Read the normalization of the metallicity dependent critical
/* Read the normalization of the metallicity dependent critical
* density*/
* density*/
starform
->
density_threshold_HpCM3
=
parser_get_param_double
(
starform
->
density_threshold_HpCM3
=
parser_get_param_double
(
...
...
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