Skip to content

Commit

Permalink
Merge pull request #325 from Deltares/kvfrac_leakage
Browse files Browse the repository at this point in the history
Kvfrac leakage
  • Loading branch information
vers-w authored Jan 12, 2024
2 parents 1856c32 + 2d47fac commit f793a2e
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions docs/src/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
outflow variables are defined for period `Δt`, and not at `t1` and `t2` (instantaneous) as
in the original mass balance equation of the Modified Puls Approach. Because of this, the
terms of the quadratic equation (and solution) were fixed.
- Use `kvfrac` for the computation of vertical saturated hydraulic conductivity at the
bottom of the soil layer, since `kvfrac` is also used for the computation of vertical
unsaturated flow.

### Changed
- For cyclic parameters different cyclic time inputs are supported (only one common cyclic
Expand Down
2 changes: 1 addition & 1 deletion docs/src/model_docs/params_lateral.md
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ scales (hillslope) in reality, not represented by the model resolution.
| `dw` | drain width | m | - |
| `zi` | pseudo-water table depth (top of the saturated zone) | m | - |
| `exfiltwater` | exfiltration (groundwater above surface level, saturated excess conditions) | m Δt⁻¹ | - |
| `recharge` | net recharge to saturated store | m Δt⁻¹ | - |
| `recharge` | net recharge to saturated store | m``^2`` Δt⁻¹ | - |
| `ssf` | subsurface flow | m``^3`` d``{-1}`` | - |
| `ssfin` | inflow from upstream cells | m``^3`` d``{-1}`` | - |
| `ssfmax` | maximum subsurface flow | m``^2`` d``{-1}`` | - |
Expand Down
2 changes: 1 addition & 1 deletion src/flow.jl
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ end
dw::Vector{T} | "m" # Flow width [m]
zi::Vector{T} | "m" # Pseudo-water table depth [m] (top of the saturated zone)
exfiltwater::Vector{T} | "m Δt-1" # Exfiltration [m Δt⁻¹] (groundwater above surface level, saturated excess conditions)
recharge::Vector{T} | "m Δt-1" # Net recharge to saturated store [m Δt⁻¹]
recharge::Vector{T} | "m2 Δt-1" # Net recharge to saturated store [m² Δt⁻¹]
ssf::Vector{T} | "m3 d-1" # Subsurface flow [m³ d⁻¹]
ssfin::Vector{T} | "m3 d-1" # Inflow from upstream cells [m³ d⁻¹]
ssfmax::Vector{T} | "m2 d-1" # Maximum subsurface flow [m² d⁻¹]
Expand Down
2 changes: 1 addition & 1 deletion src/sbm.jl
Original file line number Diff line number Diff line change
Expand Up @@ -925,7 +925,7 @@ function update_until_recharge(sbm::SBM, config)
actcapflux = actcapflux + toadd
end
end
deepksat = sbm.kv₀[i] * exp(-sbm.f[i] * sbm.soilthickness[i])
deepksat = sbm.kvfrac[i][end] * sbm.kv₀[i] * exp(-sbm.f[i] * sbm.soilthickness[i])
deeptransfer = min(satwaterdepth, deepksat)
actleakage = max(0.0, min(sbm.maxleakage[i], deeptransfer))

Expand Down

0 comments on commit f793a2e

Please sign in to comment.