I am developing a simple tank model.
I am calculating the tank volume based on inflows and outflows. In my case I need to use the tank volume at Time-1 in an equation.
How do I do that?
Accessing value of a variable at a previous time
-
- Junior Member
- Posts: 11
- Joined: Sat Apr 21, 2018 5:14 am
- Vensim version: PLE+
-
- Junior Member
- Posts: 11
- Joined: Sat Apr 21, 2018 5:14 am
- Vensim version: PLE+
Re: Accessing value of a variable at a previous time
Solved it thanks
Re: Accessing value of a variable at a previous time
DELAY FIXED is one option. SMOOTH or a simple stock works if your TIME STEP is 1 (which I wouldn't always recommend - http://metasd.com/2017/11/discrete-time-stinks/).
/*
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
*/