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

Check lake balance #330

Merged
merged 10 commits into from
Jan 30, 2024
Merged

Check lake balance #330

merged 10 commits into from
Jan 30, 2024

Conversation

verseve
Copy link
Member

@verseve verseve commented Jan 19, 2024

Issue addressed

Fixes #329

Explanation

See the updated changelog.

Checklist

  • Updated tests or added new tests
  • Branch is up to date with master
  • Tests & pre-commit hooks pass
  • Updated documentation if needed
  • Updated changelog.md if needed

Based on total available volume (storage, inflow and precipitation).
Based on total available volume (storage, inflow and precipitation).
Limit lake outflow by lake storage, and check if solution term of quadratic equations is above zero.
Lake and reservoir module.
@verseve verseve self-assigned this Jan 19, 2024
Copy link
Contributor

@JoostBuitink JoostBuitink left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me! Just some small comments to clarify the parameter descriptions

@@ -147,7 +148,8 @@ between parentheses.
| `outflow` | outflow lake | m``^3`` s``^{-1}`` | - |
| `totaloutflow` | total outflow lake | m``^3`` | - |
| `precipitation` | average precipitation for lake area | mm Δt⁻¹ | - |
| `evaporation` | average precipitation for lake area | mm Δt⁻¹ | - |
| `evaporation` | average evaporation for lake area | mm Δt⁻¹ | - |
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
| `evaporation` | average evaporation for lake area | mm Δt⁻¹ | - |
| `evaporation` | average potential evaporation for lake area | mm Δt⁻¹ | - |

@@ -14,6 +14,7 @@
demandrelease::Vector{T} | "m3 s-1" # minimum (environmental) flow released from reservoir [m³ s⁻¹]
precipitation::Vector{T} # average precipitation for reservoir area [mm Δt⁻¹]
evaporation::Vector{T} # average evaporation for reservoir area [mm Δt⁻¹]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
evaporation::Vector{T} # average evaporation for reservoir area [mm Δt⁻¹]
evaporation::Vector{T} # average potential evaporation for reservoir area [mm Δt⁻¹]

@@ -222,6 +224,7 @@ end
totaloutflow::Vector{T} | "m3" # total outflow lake [m³]
precipitation::Vector{T} # average precipitation for lake area [mm Δt⁻¹]
evaporation::Vector{T} # average evaporation for lake area [mm Δt⁻¹]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
evaporation::Vector{T} # average evaporation for lake area [mm Δt⁻¹]
evaporation::Vector{T} # average potential evaporation for lake area [mm Δt⁻¹]

To clarify parameter descriptions.
@verseve verseve merged commit f9b0ca8 into master Jan 30, 2024
10 of 12 checks passed
@verseve verseve deleted the check_lake_balance branch January 30, 2024 20:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Lake module: with small lakes and/or dry conditions simulation fails
2 participants