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

Improve Q12 calculation #656

Conversation

yixinmao
Copy link
Contributor

@yixinmao yixinmao commented Dec 6, 2016

Drainage from upper layer to adjacent lower layer is calculated by Brook & Corey curve (where drainage rate is a function of upper-layer soil moisture). Before this PR, a simple numerical solution is applied which uses the timestep-beginning upper-layer soil moisture to calculate drainage rate, and assume this constant rate over the entire timestep. This can cause unreasonably large drainage if the curve has a steep shape and when soil moisture is high.

This PR modify layer drainage (Q12) calculation - use exact integral (instead of numerical solution) in order to avoid unreasonably-strong soil moisture oscilation when the Brook & Corey curve is steep.

This PR should close issue #655

Copy link
Member

@jhamman jhamman left a comment

Choose a reason for hiding this comment

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

I have no comments on this change. Syntax and style look fine. I'll leave it up to @bartnijssen to assess the correctness of the implemented algorithm since he's been working with you on the issue.

@bartnijssen bartnijssen merged commit 739d20b into UW-Hydro:develop Jan 9, 2017
yixinmao pushed a commit to yixinmao/VIC that referenced this pull request May 31, 2018
…ulation_from_release5.0.0"

This reverts commit 739d20b, reversing
changes made to d1872e7.
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.

3 participants