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
18451be1
Commit
18451be1
authored
6 years ago
by
Folkert Nobels
Browse files
Options
Downloads
Patches
Plain Diff
Add more comments in the starformation.h files, explain which variables are internal
parent
ec72b881
No related branches found
No related tags found
1 merge request
!705
Star formation following Schaye08
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/starformation/none/starformation.h
+3
-1
3 additions, 1 deletion
src/starformation/none/starformation.h
src/starformation/schaye08/starformation.h
+9
-9
9 additions, 9 deletions
src/starformation/schaye08/starformation.h
with
12 additions
and
10 deletions
src/starformation/none/starformation.h
+
3
−
1
View file @
18451be1
...
...
@@ -39,6 +39,7 @@ struct star_formation {};
/**
* @brief Calculates if the gas particle gets converted
* The gas will never be converted in none, so always returns 0.
* So this code does not produce star formation.
*
* @param the #engine
* @param starform the star formation law properties to use.
...
...
@@ -62,7 +63,8 @@ INLINE static int star_formation_convert_to_star(
}
/**
* @brief Calculate if the gas particle is converted
* @brief Calculate if the gas particle is converted, which
* should never happen in this model
*
* @param starform the star formation struct
* @param p the gas particles with their properties
...
...
This diff is collapsed.
Click to expand it.
src/starformation/schaye08/starformation.h
+
9
−
9
View file @
18451be1
...
...
@@ -40,7 +40,7 @@
/* Starformation struct */
struct
star_formation
{
/*! Normalization of the KS star formation law */
/*! Normalization of the KS star formation law
(internal units)
*/
double
KS_normalization
;
/*! Normalization of the KS star formation law in user units */
...
...
@@ -52,10 +52,10 @@ struct star_formation {
/*! Slope of the high density KS law */
double
KS_high_den_power_law
;
/*! KS law High density threshold */
/*! KS law High density threshold
(internal units)
*/
double
KS_high_den_thresh
;
/*! KS high density normalization */
/*! KS high density normalization
(internal units)
*/
double
KS_high_den_normalization
;
/*! Critical overdensity */
...
...
@@ -70,25 +70,25 @@ struct star_formation {
/*! Star formation law slope */
double
SF_power_law
;
/*! star formation normalization of schaye+08 */
/*! star formation normalization of schaye+08
(internal units)
*/
double
SF_normalization
;
/*! star formation high density slope */
double
SF_high_den_power_law
;
/*! Star formation high density normalization */
/*! Star formation high density normalization
(internal units)
*/
double
SF_high_den_normalization
;
/*! Inverse of RAND_MAX */
double
inv_RAND_MAX
;
/*! Density threshold to form stars */
/*! Density threshold to form stars
(internal units)
*/
double
density_threshold
;
/*! Density threshold to form stars in user units */
float
density_threshold_HpCM3
;
/*! Maximum density threshold to form stars */
/*! Maximum density threshold to form stars
(internal units)
*/
double
density_threshold_max
;
/*! Maximum density threshold to form stars in user units */
...
...
@@ -100,7 +100,7 @@ struct star_formation {
/*! one over the scaling metallicity */
double
Z0_inv
;
/*! critical density Metallicity power law */
/*! critical density Metallicity power law
(internal units)
*/
double
n_Z0
;
/*! Polytropic index */
...
...
@@ -112,7 +112,7 @@ struct star_formation {
/*! EOS Temperature norm */
double
EOS_temperature_norm
;
/*! EOS density norm */
/*! EOS density norm
(internal units)
*/
double
EOS_density_norm
;
/*! EOS density norm in user units */
...
...
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