I cannot close a loop

Use this forum to post Vensim related questions.
Post Reply
miafatsas
Member
Posts: 20
Joined: Mon Oct 19, 2015 8:06 pm
Vensim version: PLE

I cannot close a loop

Post by miafatsas »

Hi all,

I am trying to close a loop in the attached model using subscripts but it gives me an error. Even if I don't use subscripts gives an error. It cannot accept the feed back loop on the A in. I really don't understand why is this happening and where I am wrong. This is a very important part for my model and I would really appreciate your help in this issue.

Thanks,
A
Attachments
Test.mdl
(2.59 KiB) Downloaded 204 times
Administrator
Super Administrator
Posts: 4590
Joined: Wed Mar 05, 2003 3:10 am

Re: I cannot close a loop

Post by Administrator »

You've got a simultaneous equation. "a in" depends on "a out2", which depends on "a in".

Can you describe what you are trying to do any maybe we can suggest the correct thing to do?
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
miafatsas
Member
Posts: 20
Joined: Mon Oct 19, 2015 8:06 pm
Vensim version: PLE

Re: I cannot close a loop

Post by miafatsas »

Thank you for your prompt reply!

The model that I have developed, it is based on mass balance. I have a reactor which in the model i attached is the A. Mass comes in and out the reactor. Now I want to recycle a part of the mass that is going out form the reactor, which in this case is the mass coming out from the A out 2. It is very important to close those loops, as I am looking for an overall cost reduction. A way to manage this is to get what ever comes out from the A out 2 and add a variable with this value. But then I need to change by hand this value and I am afraid that this will cause an error eventually.

Thanks,
A
Administrator
Super Administrator
Posts: 4590
Joined: Wed Mar 05, 2003 3:10 am

Re: I cannot close a loop

Post by Administrator »

So "A in" is actually "mass in"? Is that correct?

What are "B" and "C"?

I find it very difficult to look at a diagram with a/b/c and not know what they actually are. Wouldn't it be easier if you labelled them as "mass in", "Mass out" etc?
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
miafatsas
Member
Posts: 20
Joined: Mon Oct 19, 2015 8:06 pm
Vensim version: PLE

Re: I cannot close a loop

Post by miafatsas »

I am sorry if the model is not clear !

c is volumetric flow rate and B is concentration. I just wanted to make a model really quickly and send it to you.

The flow rates are Mass flow rates. I added the C and B as in the actual model the mass is related with the change in volumetric flow rate and concentration.

The problem as i said is that i want a part of the outflow mass to be recycled back to the inflow mass

Thanks,
A
Administrator
Super Administrator
Posts: 4590
Joined: Wed Mar 05, 2003 3:10 am

Re: I cannot close a loop

Post by Administrator »

The outflow needs to be delayed in some way. Is the mass in the reactor for a certain amount of time?
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
tomfid
Administrator
Posts: 3811
Joined: Wed May 24, 2006 4:54 am

Re: I cannot close a loop

Post by tomfid »

The real physics of the situation surely requires that there must be some state variable in the A in <-> A out loop. It could be a buffer stock, pressure in the vessel, or similar.

Occasionally a process is very fast with respect to other features of interest in the model, in which case it's appropriate to use SIMULTANEOUS or FIND ZERO functions.

However, so far, this structure seems incomplete. The red flag is the outflow of A does not depend on the stock of A. That fails an important physical reality check and essentially makes the stock superfluous; there's no concept of residence time of material in A.

I think you need to articulate the physics of what's happening here more clearly.
miafatsas
Member
Posts: 20
Joined: Mon Oct 19, 2015 8:06 pm
Vensim version: PLE

Re: I cannot close a loop

Post by miafatsas »

Thank you for your reply.

You are right, now I understood what I was doing wrong and now I fixed the problem!

Thanks,
A
Post Reply