From 19a9e9589f3a27f02c2ee2d29eac6b5d9b217d6d Mon Sep 17 00:00:00 2001
From: Folkert Nobels <nobels@strw.leidenuniv.nl>
Date: Tue, 27 Nov 2018 17:19:10 +0100
Subject: [PATCH] Start of the starformation gas to star function pair and add
 example syntax to the parameter_example file

---
 examples/parameter_example.yml             |  8 ++++++++
 src/starformation/schaye08/starformation.h | 21 ++++++++++++++++++++-
 2 files changed, 28 insertions(+), 1 deletion(-)

diff --git a/examples/parameter_example.yml b/examples/parameter_example.yml
index 6258782ab8..845cfb74fe 100644
--- a/examples/parameter_example.yml
+++ b/examples/parameter_example.yml
@@ -285,6 +285,14 @@ EAGLEChemistry:
   CalciumOverSilicon:      0.0941736    # Constant ratio of Calcium over Silicon abundance
   SulphurOverSilicon:      0.6054160    # Constant ratio of Sulphur over Silicon abundance
 
+# Schaye and Dalla Vecchia 2008 star formation
+SchayeSF:
+  Delta_crit:     60      # The critical density contrast to form stars
+  T_crit:         1e5     # The critical temperature to form stars
+  A:              2.5e-4  # (optional) The normalization of the Kennicutt-Schmidt law
+  nks:            1.4     # (optional) The power law of the Kennicutt-Schmidt law
+  gamma:          1.6667  # (optional) The heat capacity ratio (gamma)
+
 # Structure finding options (requires velociraptor)
 StructureFinding:
   config_file_name:     stf_input.cfg # Name of the STF config file.
diff --git a/src/starformation/schaye08/starformation.h b/src/starformation/schaye08/starformation.h
index 13f2b71cfa..e57fdae499 100644
--- a/src/starformation/schaye08/starformation.h
+++ b/src/starformation/schaye08/starformation.h
@@ -49,9 +49,28 @@ struct star_formation {
   
 };
 
+/*
+ * @brief Calculate if the gas has the potential of becoming
+ * a star.
+ *
+ *
+ * */
+static int starformation_potential_to_become_star(
+    ){
+  return 0;
+}
+
+/*
+ * @brief Calculate if the gas particle is converted 
+ *
+ * */
+static void starformation_convert_to_gas( 
+    ){
+
+}
 
 /* 
- * Brief initialization of the star formation law 
+ * @brief initialization of the star formation law 
  *
  * @param parameter_file The parsed parameter file
  * @param phys_const Physical constants in internal units
-- 
GitLab