Simple model in Vensim

Use this forum to post Vensim related questions.
Post Reply
Alisib
Member
Posts: 22
Joined: Mon Oct 29, 2018 4:37 pm
Vensim version: PLE

Simple model in Vensim

Post by Alisib »

Hi,
When a simple model is created in Vensim, with just one stock and inflow and outflow.
When we want to insert the formula of the given stock, in the part of variables you find the inflow name, the outflow and stock name. why is there the stock variable name? it does not make sense.
thx
Administrator
Super Administrator
Posts: 4573
Joined: Wed Mar 05, 2003 3:10 am

Re: Simple model in Vensim

Post by Administrator »

Do you mean where "Causes" is listed? The stock directly influences the value of itself at the next time step (so it is a cause).
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
LAUJJL
Senior Member
Posts: 1421
Joined: Fri May 23, 2003 10:09 am
Vensim version: DSS

Re: Simple model in Vensim

Post by LAUJJL »

Hi

It is not only an implicit causes that does not appear in the equation.
There are many cases where you need to put the stock in the equation.
For instance if you go to the Vensim help and index and ask for the smooth function.
You will see a stock and flow formulation of the smsooth function where the level is explicitly included.
expected demand =INTEG((demand-expected demand)/ time to form expectations,demand)

Regards.

JJ
tomfid
Administrator
Posts: 3806
Joined: Wed May 24, 2006 4:54 am

Re: Simple model in Vensim

Post by tomfid »

The stock name is there because it is a valid input. For example, an alternative implementation of a SMOOTH is:

smoothed input = INTEG( (input-smoothed input)/smoothing time, initial input )

However ... it is true that if you do this, your diagram is likely to break standard stock-flow diagramming conventions. Sometimes that's useful.
Alisib
Member
Posts: 22
Joined: Mon Oct 29, 2018 4:37 pm
Vensim version: PLE

Re: Simple model in Vensim

Post by Alisib »

thanks for all answers I got it
Best wishes
Post Reply