Page 1 of 1

a stock with zero slope

Posted: Tue Jan 01, 2019 7:21 pm
by Alisib
Hi
As we know, stock variable is the integral of flow, if there is a stock with zero slope diagram, what could be the flow anyway?
I meant the Quality diagram in the attached file
best wishes

Re: a stock with zero slope

Posted: Wed Jan 02, 2019 9:49 am
by Administrator
Sorry, I do not understand what you are asking.

Re: a stock with zero slope

Posted: Wed Jan 02, 2019 10:03 am
by Alisib
I meant as you can see in the picture, the behavior and structure of the actual quality is clear, suppose the formula of its inflow and outflow is not clear (for actual quality), can you suggest anything (inflow or outflow) that produce actual quality behavior?

Re: a stock with zero slope

Posted: Wed Jan 02, 2019 10:10 am
by Administrator
So you need some model structure that produces an immediate jump/fall in the stock?

Something like the following should get you started. This causes a jump at time = 10.

some stock = integ (inflow,0)

inflow = if then else ( time = 10, 20 , 0 )

Re: a stock with zero slope

Posted: Wed Jan 02, 2019 12:24 pm
by Alisib
thx
it was a good start, By the way is there any way in vensim that can help us distinguish variable? for example name the constant one? how many constant are there? how many stock and etc.
best wishes

Re: a stock with zero slope

Posted: Wed Jan 02, 2019 3:30 pm
by tomfid
If the stock of actual quality is essentially a step function, its net flow must be a discrete event, like a PULSE.

Re: a stock with zero slope

Posted: Wed Jan 02, 2019 6:12 pm
by Alisib
thanks
I am really delighted to get acquainted with this site and its administers specially Tomfid who always helps me.