Problem in modelling

Use this forum to discuss any issues relating to Systems Dynamics and Systems Thinking.
Post Reply
daraeikh
Newbie
Posts: 1
Joined: Wed Feb 16, 2011 8:24 pm

Problem in modelling

Post by daraeikh »

Hi everyone,

I am trying to model a gas station which has a delivery once a year (e.g. 20ML/year) and
consumption within the year (e.g 15ML/year). Since my delivery is discrete ( it only
occurs once a year), how I can mode it properly?
If I use "Pulse function", with time step equal to 0.25, at the end of the year, the
model consider delivery equal to 0.25*20=5ML, while in fact 20Ml has been delivered.

Many thanks in advance for your help.
Administrator
Super Administrator
Posts: 4590
Joined: Wed Mar 05, 2003 3:10 am

Re: Problem in modelling

Post by Administrator »

If the time step for your model is in days, the following should work. Use the "ORDER NOW FLAG" to trigger the order.

Tony.


TIME BETWEEN ORDERS = 30
Units : Day

ORDER NOW FLAG = IF THEN ELSE ( Time Since Last Order
>= TIME BETWEEN ORDERS
, 1
, 0 )
Units : DMNL

RESET TIME SINCE LAST ORDER = order now flag
* Time Since Last Order
/ TIME STEP
Units : day/day

TIME SINCE LAST ORDER = INTEG ( TIME STEP / TIME STEP - reset time since last order , 0 )
Units : day
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
Post Reply