Skip to content

Conversation

mariuslam
Copy link

No description provided.

!domsur (kg/m2*s) ,domH (kg/m2), ehout (m/s), domHout (kg/m2*s), qsur (m/s), wh (m)
Tdom%domHout(iunit,ntdom) = -TRunoff%ehout(iunit,nt) * (Tdom%domH(iunit,ntdom) + Tdom%domsur(iunit,ntdom) * theDeltaT)/(TRunoff%wh(iunit,nt)-TRunoff%dwh(iunit,nt)*theDeltaT+TRunoff%qsur(iunit,nt)*theDeltaT)
!we dont want a too high out
Tdom%domHout(iunit,ntdom) = min(-TRunoff%ehout(iunit,nt) * 0.3_r8, Tdom%domHout(iunit,ntdom))

Choose a reason for hiding this comment

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

ehout is overland flow [m/s] into tributaries. and domHout is concentration [kg/m2/s] going to trigutary. how does different units work out for this comparison?

!we dont want a too high out
Tdom%domHout(iunit,ntdom) = min(-TRunoff%ehout(iunit,nt) * 0.3_r8, Tdom%domHout(iunit,ntdom))
!cannot be more be less than 0, lower boundary
Tdom%domHout(iunit,ntdom) = max(0._r8,Tdom%domHout(iunit,ntdom))

Choose a reason for hiding this comment

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

does this happen (negative domHout) because of negative flow?

Comment on lines 35 to 37
Tdom%domHout(iunit,ntdom) = min((Tdom%domH(iunit,ntdom)+Tdom%domsur(iunit,ntdom)*theDeltaT)/theDeltaT,Tdom%domHout(iunit,ntdom))

Tdom%domH(iunit,ntdom) = max(0._r8,Tdom%domH(iunit,ntdom) + (Tdom%domsur(iunit,ntdom) - Tdom%domHout(iunit,ntdom))* theDeltaT)

Choose a reason for hiding this comment

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

I know why you did this (you cannot output more that you get from surface flow and storage), but this also causes balance off (but maybe ok?)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants