Page 1 of 1

Limit on a level variable

Posted: Tue Dec 12, 2017 12:31 pm
by amitkaram
I have one level variable , which has a upper cap.It means once it reaches that upper cap, it will become constant at that upper cap.How do i incorporate this?


Thanks

Re: Limit on a level variable

Posted: Tue Dec 12, 2017 12:34 pm
by Administrator
You'll need to limit the inflow to the level. Something like

inflow = min ( (desired level - level) / time step , calculated inflow )

Re: Limit on a level variable

Posted: Tue Dec 12, 2017 12:47 pm
by amitkaram
Thanks @administrator