-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
28 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
""" | ||
aerodynamic_conductance(U2, hc) | ||
# Arguments | ||
- `U2`: wind speed at 2m | ||
- `hc`: canopy height | ||
# Return | ||
- `Ga`: aerodynamic conductance in m/s | ||
""" | ||
function aerodynamic_conductance(U2::T, hc::T; Zob=15.0) where {T<:Real} | ||
kmar = 0.40 # von Karman's constant 0.40 | ||
d = 0.64 * hc | ||
zom = 0.13 * hc | ||
zoh = 0.10 * zom | ||
uz = cal_Uz(U2, Zob) # convert from u2 to uz | ||
@fastmath Ga = uz * kmar^2 / (log((Zob - d) / zom) * log((Zob - d) / zoh)) # m s-1 | ||
Ga | ||
end | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters