I am also facing similar issue. The value of my stock i.e., Soil Moisture is increasing rapidly and it has reached unimaginable values. And the model is showing a Floating point error after Timestep 64 for the flow Deep Percolation. I am unable to figure out why is this happening. I am attaching my model. Please help me.
Thanks and Regards,
Sankeerthana
Please, help
Please, help
- Attachments
-
- 02042019_new.mdl
- (11.37 KiB) Downloaded 406 times
-
- Super Administrator
- Posts: 4832
- Joined: Wed Mar 05, 2003 3:10 am
Re: Please, help
You've got some levels going negative which is what is causing the problems.
For example, change
irrigation application rate = 1045/180
to
irrigation application rate = MIN ( Water Available For Irrigation / TIME STEP , 1045/180 )
This is the same as
irrigation application rate = IF THEN ELSE ( Water Available For Irrigation > 1045/180 , 1045/180 , Water Available For Irrigation / time step)
This makes sure that you do not remove more from the stock than is in the stock.
You need to do this for all stocks in your model. "Surface water storage", "water available for irrigation" and "groundwater storage" are easy, but "soil moisture will take a little more thinking about as you have four flows out of the stock.
For example, change
irrigation application rate = 1045/180
to
irrigation application rate = MIN ( Water Available For Irrigation / TIME STEP , 1045/180 )
This is the same as
irrigation application rate = IF THEN ELSE ( Water Available For Irrigation > 1045/180 , 1045/180 , Water Available For Irrigation / time step)
This makes sure that you do not remove more from the stock than is in the stock.
You need to do this for all stocks in your model. "Surface water storage", "water available for irrigation" and "groundwater storage" are easy, but "soil moisture will take a little more thinking about as you have four flows out of the stock.
Advice to posters seeking help (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391
Units are important!
http://www.bbc.co.uk/news/magazine-27509559
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391
Units are important!
http://www.bbc.co.uk/news/magazine-27509559
Re: Please, help
Also, as a general practice, you should not bury numbers that have dimensions in your equations. Each item (1045, 180) should be made a separate named variable with units.
/*
Advice to posters (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391
Blog: http://blog.metasd.com
Model library: http://models.metasd.com
Bookmarks: http://delicious.com/tomfid/SystemDynamics
*/
Advice to posters (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391
Blog: http://blog.metasd.com
Model library: http://models.metasd.com
Bookmarks: http://delicious.com/tomfid/SystemDynamics
*/