Skip to content
Snippets Groups Projects
Commit 105cdd37 authored by simonevitaleit's avatar simonevitaleit
Browse files

Update of the files and correcting typos preparing for the merging

parent 66ab0278
No related branches found
No related tags found
No related merge requests found
......@@ -2,7 +2,7 @@ maxHeight:
Value: 0.35
Type: float
Unit: m
Description: maximum mean sward height before cuttig
Description: maximum mean sward height before cutting
Limit: [0.05, 2]
cutHeight:
Value: 0.05
......
......@@ -96,4 +96,10 @@ soil_depth:
Value: 1000
Type: float
Limit: [0,2000]
Definition: soil depth in mm
\ No newline at end of file
Definition: soil depth in mm
max_soil_depth:
Value: 1000
Type: float
Limit: [0,2000]
Definition: maximum relevant soil depth in mm. It should be set at 1 meter.
\ No newline at end of file
......@@ -177,7 +177,9 @@ class Grassland:
self.diffBMDV = self.BMDV
self.diffBMDR = self.BMDR
self.diffBM = self.BM
if self.inits['soil_depth'] >= 1000:
#Maximum relevant soil depth for grassland water dynamics is 1 meter.
if self.inits['soil_depth'] >= self.inits['max_soil_depth']:
self.WaterCapacity = (0.2576 - 0.002 * self.sand + 0.0036 * self.clay + 0.0299 * self.org) * 1000
self.Wiltingpoint = (0.026 + 0.005 * self.clay + 0.0158 * self.org) * 1000
else:
......@@ -376,13 +378,13 @@ class Grassland:
# Management variables setting
self.mean_sward_height = np.mean(self.sward_height)
## cut decision
## cut decision based on sward height
if self.mean_sward_height > self.maxHeight :
cut_height = self.cutHeight
self.days_since_cut = 0
else :
cut_height = 0
## fertilization decision
## fertilization decision base on number of days since last cut
if self.days_since_cut == self.cutToFertDays:
fert_org = self.fertOrg
fert_min = self.fertMin
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment