Skip to content

added 4-bucket model to documentation#938

Merged
vgro merged 6 commits intodevelopfrom
937-add-vertical-structure-graphic-to-hydrology-model
Jul 11, 2025
Merged

added 4-bucket model to documentation#938
vgro merged 6 commits intodevelopfrom
937-add-vertical-structure-graphic-to-hydrology-model

Conversation

@vgro
Copy link
Copy Markdown
Collaborator

@vgro vgro commented Jul 9, 2025

This PR adds the schematic diagram of the 4-bucket model to the hydrology documentation see here .

@lelavathy I noticed that there is no inflow in the grid cell from the left side, I added a not but we might want to update the figure.

Fixes #937

@vgro vgro linked an issue Jul 9, 2025 that may be closed by this pull request
@vgro vgro requested a review from lelavathy July 9, 2025 13:30
@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Jul 9, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 94.22%. Comparing base (92145eb) to head (7034bce).
⚠️ Report is 1625 commits behind head on develop.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop     #938   +/-   ##
========================================
  Coverage    94.22%   94.22%           
========================================
  Files           79       79           
  Lines         6320     6320           
========================================
  Hits          5955     5955           
  Misses         365      365           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@lelavathy
Copy link
Copy Markdown
Collaborator

@vgro Just to confirm—how is lateral inflow from the left side of the grid cell handled in the current implementation? I thought all lateral/horizontal flow arrows (Q1–Q5) point only to the right, toward river discharge. If inflow from the left is part of the model logic, it might be worth reflecting that with incoming blue arrows on the left side of each relevant storage layer.
Let me know what you think, and I’m happy to help update the figure!

@vgro
Copy link
Copy Markdown
Collaborator Author

vgro commented Jul 10, 2025

@vgro Just to confirm—how is lateral inflow from the left side of the grid cell handled in the current implementation? I thought all lateral/horizontal flow arrows (Q1–Q5) point only to the right, toward river discharge. If inflow from the left is part of the model logic, it might be worth reflecting that with incoming blue arrows on the left side of each relevant storage layer. Let me know what you think, and I’m happy to help update the figure!

The way it is implemented at the moment is that the total outflow from one grid cell is the outflow from the current time step(Q1-Q5) + the accumulated outflow from the previous timestep from all the grid cells that are upsteam. Thus means the is not exactly an inflow that changes the soil moisture but rather a throughflow that adds directly to the stream.

@lelavathy
Copy link
Copy Markdown
Collaborator

@vgro Just to confirm—how is lateral inflow from the left side of the grid cell handled in the current implementation? I thought all lateral/horizontal flow arrows (Q1–Q5) point only to the right, toward river discharge. If inflow from the left is part of the model logic, it might be worth reflecting that with incoming blue arrows on the left side of each relevant storage layer. Let me know what you think, and I’m happy to help update the figure!

The way it is implemented at the moment is that the total outflow from one grid cell is the outflow from the current time step(Q1-Q5) + the accumulated outflow from the previous timestep from all the grid cells that are upsteam. Thus means the is not exactly an inflow that changes the soil moisture but rather a throughflow that adds directly to the stream.

@lelavathy lelavathy closed this Jul 10, 2025
@lelavathy
Copy link
Copy Markdown
Collaborator

@vgro Just to confirm—how is lateral inflow from the left side of the grid cell handled in the current implementation? I thought all lateral/horizontal flow arrows (Q1–Q5) point only to the right, toward river discharge. If inflow from the left is part of the model logic, it might be worth reflecting that with incoming blue arrows on the left side of each relevant storage layer. Let me know what you think, and I’m happy to help update the figure!

The way it is implemented at the moment is that the total outflow from one grid cell is the outflow from the current time step(Q1-Q5) + the accumulated outflow from the previous timestep from all the grid cells that are upsteam. Thus means the is not exactly an inflow that changes the soil moisture but rather a throughflow that adds directly to the stream.

@lelavathy lelavathy reopened this Jul 10, 2025
@lelavathy
Copy link
Copy Markdown
Collaborator

lelavathy commented Jul 10, 2025

@vgro Just to confirm—how is lateral inflow from the left side of the grid cell handled in the current implementation? I thought all lateral/horizontal flow arrows (Q1–Q5) point only to the right, toward river discharge. If inflow from the left is part of the model logic, it might be worth reflecting that with incoming blue arrows on the left side of each relevant storage layer. Let me know what you think, and I’m happy to help update the figure!

The way it is implemented at the moment is that the total outflow from one grid cell is the outflow from the current time step(Q1-Q5) + the accumulated outflow from the previous timestep from all the grid cells that are upsteam. Thus means the is not exactly an inflow that changes the soil moisture but rather a throughflow that adds directly to the stream.

Does that mean the throughflow from upstream (i.e. accumulated outflow from the previous timestep) doesn’t enter any of the storage buckets (like surface storage or soil moisture), but instead bypasses them and contributes directly to streamflow?

If so, would it be helpful to explicitly show that in the diagram—maybe with a separate arrow labeled as “throughflow from upstream cells” going directly into the river discharge box? Also, is there any scenario where this throughflow would need to be added to the surface or subsurface storage (e.g. if there's a ponding or backflow condition)?

@vgro
Copy link
Copy Markdown
Collaborator Author

vgro commented Jul 10, 2025

Does that mean the throughflow from upstream (i.e. accumulated outflow from the previous timestep) doesn’t enter any of the storage buckets (like surface storage or soil moisture), but instead bypasses them and contributes directly to streamflow?

If so, would it be helpful to explicitly show that in the diagram—maybe with a separate arrow labeled as “throughflow from upstream cells” going directly into the river discharge box? Also, is there any scenario where this throughflow would need to be added to the surface or subsurface storage (e.g. if there's a ponding or backflow condition)?

yes, such an arrow that indicates the through-flow would be great. Would you be able to update this and send it to me, or replace the file on GitHub directly?
The might be a scenario in the future where this changes, but I don't see this happening in the next 12 months; I can add some more explanation to the figure description.

@vgro vgro merged commit d71b8e3 into develop Jul 11, 2025
16 checks passed
@vgro vgro deleted the 937-add-vertical-structure-graphic-to-hydrology-model branch July 11, 2025 08:52
The 4-Bucket Model represented within grid cell hydrology processes in the Virtual
Ecosystem. Red solid arrows indicate downward vertical flow, red dashed arrows show
vertical upward flow. The blue arrows indicate horizontal flow out of the
grid cell with solid lines representing water that flows out of each layer in the
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

@vgro it supposed to be red solid arrows indicate upward vertical flow, red dashed arrows show
downward vertical flow.

Copy link
Copy Markdown
Collaborator Author

@vgro vgro Jul 14, 2025

Choose a reason for hiding this comment

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

you're right, well spotted. I fixed it in #949

@vgro vgro restored the 937-add-vertical-structure-graphic-to-hydrology-model branch July 14, 2025 08: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.

add vertical structure graphic to hydrology model

3 participants