Recycle+subflowsheet solving time

Discusses use of COCO, the process simulation and modelling software suite from AmsterCHEM, downloadable from http://www.cocosimulator.org

Moderator: jasper

Recycle+subflowsheet solving time

Postby Usseglio » 05 January 2015, 19:41

Dear All,

Is there a given set up in case of a model configuration having a recycle with multiple (5) sub-flowsheets ?
The matter is that I am facing quite low solving time, each time when I run the simulation model either if I change mass composition at inlet streams or a temperature in a heat exchanger.

Thanks and a prosperous 2015 for all members !!

Marcelo
Usseglio
 
Posts: 34
Joined: 23 November 2012, 14:16

Re: Recycle+subflowsheet solving time

Postby jasper » 05 January 2015, 21:47

Best wishes for 2015.

Solver speed improvements are in the making, but will only partially be applied to embedded flowsheets (due to the thermo in there coming from an external source it is hard to solve embedded flowsheets in other threads than the main thread).

If the embedded flowsheets themselves are coupled by a recycle in the outer flowsheet an extra speed penalty comes from the fact the embedded flowsheets are fully converged for each iteration in the outer flowsheets, that will surely slow things down. Is there a recycle in the outer flowsheet as well as in the inner flowsheets?
User avatar
jasper
 
Posts: 1128
Joined: 24 October 2012, 15:33
Location: Spain

Re: Recycle+subflowsheet solving time

Postby Usseglio » 05 January 2015, 21:59

The recycle is in the outer flowsheet. The subflowsheets are Unit Ops (simple operations inside without recycle) that are located inside the outer recycle.
I tried to manually set up the sort method aiming to have positive impact in solving speed, but I did not get an apparent improvement.
Usseglio
 
Posts: 34
Joined: 23 November 2012, 14:16

Re: Recycle+subflowsheet solving time

Postby jasper » 06 January 2015, 08:48

Sort method? You mean stream and unit operation sorting? That does not affect solving at all (well - actually may, in the existing solver, affect cut stream arbitration; perhaps if COFE finds two streams that are exactly equally suitable as cut stream it will pick the first one in the sort order).

If there are no recycles in the embedded flowsheets, the speed of solution should not be affected by the embedding per se. What aspect of the solution appears slow? Does the evaluation of the embedded units take a long time? Does it take a long time to converge? Does the perturbation for the Jacobian (the start of each Newton iteration) take a long time?
User avatar
jasper
 
Posts: 1128
Joined: 24 October 2012, 15:33
Location: Spain

Re: Recycle+subflowsheet solving time

Postby Usseglio » 06 January 2015, 13:09

Yes, sorry, I meant the unit operation sort method. I thought it might have an impact in the resolution along the recycle.

The evaluation of the embedded flowsheets does not take a long time, it is quite quick.
What it takes too long, is each iteration to be solved and to get convergence. Generally, when I change temperature and/or mass composition, the residual of first iteration is high, and it takes too long to begin a second iteration.
Normally, with each iteration, residual is 10 times lower, but it takes too long to converge.
Usseglio
 
Posts: 34
Joined: 23 November 2012, 14:16

Re: Recycle+subflowsheet solving time

Postby jasper » 06 January 2015, 13:47

I am working on a new solver that might help with this issue; would you be interested to test an alpha version of this in a few days? If so, please drop me a private mail.
User avatar
jasper
 
Posts: 1128
Joined: 24 October 2012, 15:33
Location: Spain


Return to COCO (AmsterCHEM)

Who is online

Users browsing this forum: No registered users and 7 guests