Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add interception to total actual evapotranspiration actevap #264

Merged
merged 3 commits into from
May 23, 2023
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions docs/src/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- `BMI.get_time_units` now gets called on the model rather than the type, like all other BMI
functions, except `BMI.initialize`. Also it returns "s" instead of "seconds since
1970-01-01T00:00:00", in line with the BMI specification.
- Added the `interception` component to total actual evapotranspiration `actevap` of `SBM`
(was defined as the sum of soil evaporation, transpiration and open water evaporation).

### Changed
- The time values returned in the BMI interface are no longer in seconds since 1970, but in
Expand Down
2 changes: 1 addition & 1 deletion docs/src/model_docs/params_vertical.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ specific_leaf = "Sl"
| `transpiration` | transpiration | mm Δt``^{-1}`` | - |
| `ae_ustore` | actual evaporation from unsaturated store | mm Δt``^{-1}`` | - |
| `interception` | interception | mm Δt``^{-1}`` | - |
| `soilevap` | soil evaporation from unsaturated store | mm Δt``^{-1}`` | - |
| `soilevap` | total soil evaporation from unsaturated and saturated store | mm Δt``^{-1}`` | - |
| `soilevapsat` | soil evaporation from saturated store | mm Δt``^{-1}`` | - |
| `actcapflux` | actual capillary rise | mm Δt``^{-1}`` | - |
| `actevapsat` | actual transpiration from saturated store | mm Δt``^{-1}`` | - |
Expand Down
2 changes: 1 addition & 1 deletion src/sbm.jl
Original file line number Diff line number Diff line change
Expand Up @@ -933,7 +933,7 @@ function update_until_recharge(sbm::SBM, config)
# recharge (mm) for saturated zone
recharge = (transfer - actcapflux - actleakage - actevapsat - soilevapsat)
transpiration = actevapsat + actevapustore
actevap = soilevap + transpiration + ae_openw_r + ae_openw_l
actevap = soilevap + transpiration + ae_openw_r + ae_openw_l + sbm.interception[i]

# update the outputs and states
sbm.n_unsatlayers[i] = n_usl
Expand Down