Skip to content

Commit

Permalink
Merge pull request #21 from junhyukjeon/master
Browse files Browse the repository at this point in the history
Update 11/14/2024
  • Loading branch information
junhyukjeon authored Nov 13, 2024
2 parents 99d89be + f4b1fe2 commit 222645e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
1 change: 1 addition & 0 deletions src/morphology/root.jl
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@
"Specific root length"
SRL => 20 ~ preserve(parameter, u"cm/g")

# From CROPGRO
"Root length density"
RLD(WR, soil_depth, SRL) => WR / soil_depth * SRL ~ track(u"cm/cm^3")
end
6 changes: 3 additions & 3 deletions src/physiology/nitrogen.jl
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,11 @@
"Relative drought factor"
drought_factor(ASW, minASW, field_capacity, maxASW) => begin
if ASW > field_capacity
2.0 - (ASW - field_capacity) / (maxASW - field_capacity)
1 - (ASW - field_capacity) / (maxASW - field_capacity)
else
2 * ((ASW - minASW) / (field_capacity - minASW))
((ASW - minASW) / (field_capacity - minASW))
end
end ~ track(min=0, max=1)
end ~ track(min=0.1, max=1)

# Nitrogen uptake conversion factor.
# How much kg/ha of nitrogen for mg/cm of nitrogen (root)?
Expand Down
3 changes: 2 additions & 1 deletion src/rhizosphere/waterbalance.jl
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ Transpiration
# ((Int(soil_class) > 0) ? (11 - 2 * Int(soil_class)) : (SWpower0))
# end ~ preserve

field_capacity(maxASW) => 0.5 * maxASW ~ preserve(u"mm")
fc => 0.5 ~ preserve(parameter)
field_capacity(fc, maxASW) => fc * (maxASW + minASW) ~ preserve(u"mm")

"Proportion of rain intercepted"
interception(LAI, maxInterception, LAImaxInterception) => begin
Expand Down

0 comments on commit 222645e

Please sign in to comment.