Search found 17 matches

by tc20852
Thu Jul 20, 2023 8:46 pm
Forum: Vensim
Topic: Delay Function cannot shut off flow using a test for negative stock level.
Replies: 18
Views: 4087

Re: Delay Function cannot shut off flow using a test for negative stock level.

Fig4.png Summing up a 10% every Hour, starting at 20g/h initially places us at 11.81 g/Hour at this 5h mark. The flow A->B or “Loss” looks right. There is a first order filling with the rate highest at T zero, slowing down as contents of A filling slows and AA is depleted, this then changes directi...
by tc20852
Thu Jul 20, 2023 8:43 pm
Forum: Vensim
Topic: Delay Function cannot shut off flow using a test for negative stock level.
Replies: 18
Views: 4087

Re: Delay Function cannot shut off flow using a test for negative stock level.

Using Conveyor Delay: Simplest setup a linear flow into A with a delayed outflow setup on k1 using DELAY CONVEYOR (k0, residenceT, leak, initprofile, A, residenceT). From the manual: DELAY CONVEYOR(input,ctime,leak,initprofile,inittot,initctime) Units: DELAY CONVEYOR(units,time,1/time,dmnl,units*tim...
by tc20852
Thu Jul 20, 2023 3:01 pm
Forum: Vensim
Topic: Delay Function cannot shut off flow using a test for negative stock level.
Replies: 18
Views: 4087

Re: Delay Function cannot shut off flow using a test for negative stock level.

Gosh I am so Dumb. Its because the "fractional loss rate" is a step function.
thomas
by tc20852
Thu Jul 20, 2023 2:00 pm
Forum: Vensim
Topic: Delay Function cannot shut off flow using a test for negative stock level.
Replies: 18
Views: 4087

Re: Delay Function cannot shut off flow using a test for negative stock level.

Hello Tom, I looked at the Conveyer Delay with a Loss in the example: DELAY CONVEYOR.mdl The rate of loss looks odd. Why is there no loss flow during the delay? Presumably Boxes will be being lost as they accumulate in "shipments in transit". See screenshot. Capture_delayConveyor.PNG Thomas
by tc20852
Tue Jul 18, 2023 4:05 am
Forum: Vensim
Topic: Delay Function cannot shut off flow using a test for negative stock level.
Replies: 18
Views: 4087

Re: Delay Function cannot shut off flow using a test for negative stock level.

Thanks Tom, there is a lot of interesting stuff there that I am still going through. You are, of course way ahead of me. There are a lot more things going on in a more realistic model and its this is interesting stuff, but for the sake of trying to understand fundamentals, lets make this problem sim...
by tc20852
Tue Jul 18, 2023 4:05 am
Forum: Vensim
Topic: Delay Function cannot shut off flow using a test for negative stock level.
Replies: 18
Views: 4087

Re: Delay Function cannot shut off flow using a test for negative stock level.

Thanks Tom, there is a lot of interesting stuff there that I am still going through. You are, of course way ahead of me. There are a lot more things going on in a more realistic model and its this is interesting stuff, but for the sake of trying to understand fundamentals, lets make this problem sim...
by tc20852
Thu Jul 06, 2023 12:43 pm
Forum: Vensim
Topic: How to export image/adjust print margins -- .png and .pdf not working?
Replies: 5
Views: 8837

Re: How to export image/adjust print margins -- .png and .pdf not working?

An alternative is to select what you want and then paste into Inkscape (a free vector graphics program). This also allow you to do minor changes to arrows, text (generally pretty it up) and then you can save it to just about any format from there.
by tc20852
Thu Jun 29, 2023 12:46 pm
Forum: Vensim
Topic: Delay Function cannot shut off flow using a test for negative stock level.
Replies: 18
Views: 4087

Re: Delay Function cannot shut off flow using a test for negative stock level.

Here is another sketch of what I was trying to do.
by tc20852
Thu Jun 29, 2023 2:18 am
Forum: Vensim
Topic: Delay Function cannot shut off flow using a test for negative stock level.
Replies: 18
Views: 4087

Re: Delay Function cannot shut off flow using a test for negative stock level.

Hello Tom, hope you are still there! Or any one else out there! Gosh it seems a long time since looking at this problem again. I've made a simpler model of a much bigger model for testing this intestinal flow. I am still trying to model something like filling of a tube and using a FIXED DELAY to get...
by tc20852
Fri Jun 25, 2021 8:16 pm
Forum: Vensim
Topic: Can I use LOOKUP SLOPE to access point to point slopes as rate data?
Replies: 3
Views: 1301

Re: Can I use LOOKUP SLOPE to access point to point slopes as rate data?

Oh, I had to restart vensim. When I went back to look at my original problem, the lookup slope worked great.
see attached.
by tc20852
Fri Jun 25, 2021 7:34 pm
Forum: Vensim
Topic: Can I use LOOKUP SLOPE to access point to point slopes as rate data?
Replies: 3
Views: 1301

Can I use LOOKUP SLOPE to access point to point slopes as rate data?

Hello Everyone, Here are some Kinetics based data input as a lookup "RawDataLookupTable". the problem is that point to point slopes must be available as input for a rate between two stocks in a larger model. See png of the graph of the output to "gradients" that I am trying to ac...
by tc20852
Wed Jun 23, 2021 4:32 am
Forum: Vensim
Topic: Optimization: data import format
Replies: 5
Views: 1930

Re: Optimization: data import format

Here are my notes in a doc file in case there is someone else out there has difficulty getting started with Optimization.
by tc20852
Wed Jun 23, 2021 1:36 am
Forum: Vensim
Topic: Optimization: data import format
Replies: 5
Views: 1930

Re: Optimization: data import format

Great, thanks tomfid. This has got me back on track.
by tc20852
Tue Jun 22, 2021 9:05 pm
Forum: Vensim
Topic: Optimization: data import format
Replies: 5
Views: 1930

Optimization: data import format

Hello Vensim folks, just started looking at the optimization functionality in Vensim and seem to have fallen at the first hurdle. I set up a very simple test model A->B with first order rate (first attachment), then made a synthetic data set in excel for B (B(t)= Ao(1 - e^(-kt)) The data was copied ...
by tc20852
Tue Feb 23, 2021 3:38 am
Forum: Vensim
Topic: Delay Function cannot shut off flow using a test for negative stock level.
Replies: 18
Views: 4087

Re: Delay Function cannot shut off flow using a test for negative stock level.

Hello Folks, Thanks for your help. Attached is the solution I have so far. I have attached the model with more descriptive labels, rather than A, B C etc, as administrator said, it makes it a bit more understandable. As tomfid said, using DELAY FIXED to control flow does not work as it cannot do a l...
by tc20852
Thu Jan 14, 2021 9:16 pm
Forum: Vensim
Topic: Delay Function cannot shut off flow using a test for negative stock level.
Replies: 18
Views: 4087

Re: Delay Function cannot shut off flow using a test for negative stock level.

Replying to Tomfid: Oh I didnt know it was called FONFOO, but isnt that what I did by testing for zero at A? Delayed flow = DELAY FIXED( AB flowThrougPipe , Delay , 0 ) where AB flowThrougPipe = IF THEN ELSE( A<0 , 0 , AB flow rate*A ) then on the other flow, "AC Flow Rate" = IF THEN ELSE(...
by tc20852
Tue Jan 12, 2021 3:02 pm
Forum: Vensim
Topic: Delay Function cannot shut off flow using a test for negative stock level.
Replies: 18
Views: 4087

Delay Function cannot shut off flow using a test for negative stock level.

This is what I am trying to model: pipe_flow_sketch.pdf basically we have a level (A) feeding into a pipe (actually this is a length of intestines in my larger model that is modeling uptake of a nutrient) that ends up at level (B) according to "delayed_Flow" rate. While it is in the pipe a...