Parametric studies COFE

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

Moderator: jasper

Parametric studies COFE

Postby Usseglio » 18 May 2017, 22:57

Hi Jasper,

May be you already have this in your todo list, but is it feasible to run parametric studies with COFE embedded in the excel ?

Thanks in advance !!

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

Re: Parametric studies COFE

Postby jasper » 20 May 2017, 06:50

When running in Excel I do not have the option to present multiple windows. All items that open a new window (calculator, plots, parametric study) are therefore disabled. Without the ability to switch back and forth to the result window, it is not straight forward to represent the results.

You can in principle set stream values and unit operation parameters from VBA and call the Calculate method of the flowsheet, and pull the results out. In other words, it is not so difficult to do the parametric study directly from VBA in Excel.

Setting stream values can be done via the CAPE-OPEN material object interface. Setting unit operation parameters can be done via the CAPE-OPEN unit operation and parameter interfaces. Solving the flowsheet:

http://cocosimulator.org/index_help.php?page=COFE/Automation/icofedocument.htm

Please see the existing VBA code to see how to get to these interfaces.
User avatar
jasper
 
Posts: 1128
Joined: 24 October 2012, 15:33
Location: Spain

Re: Parametric studies COFE

Postby Usseglio » 20 May 2017, 21:48

OK, I understand.
Yes, thanks Jasper, that is what I had I mind to implement it.

Kind regards
Usseglio
 
Posts: 34
Joined: 23 November 2012, 14:16


Return to COCO (AmsterCHEM)

Who is online

Users browsing this forum: No registered users and 3 guests

cron