Problems with COFE.xlt

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

Moderator: jasper

Re: Problems with COFE.xlt

Postby jasper » 12 September 2013, 09:01

You are creating unit operations that calculate heat loss?

The short answer in this case is: yes, create an input parameter, connect to a virtual information stream.

The somewhat longer answer: I get the impression that the type of calculation you want to do is some sort of post-processing step that relates to the entire flowsheet solution. To accomplish this, you are inserting unit operations that do parts of your overall calculations. Correct?

A way of dealing with such kind of systems has been proposed (that is, the proposal is undergoing further discussion and approval as official part of the CAPE-OPEN interface standard set in the Method & Tools Special Interest Group, the M&T SIG). This is called flowsheet monitoring. This concept is explained here:


A prototype of monitoring is available in COFE, and can be used. However, to use it, some programming is required. Let me know if you would like further information on this.
User avatar
jasper
 
Posts: 1128
Joined: 24 October 2012, 15:33
Location: Spain

Re: Problems with COFE.xlt

Postby lauriew » 14 September 2013, 05:29

Jasper
Thanks for providing the links. I can see possibilities for flowsheet monitoring, I will certainly start to try the WAR add in.

My current goal is to model the steam usage in a cane sugar factory, there will be at least 50 items of plant where heat loss is significant.
Would be good if each individual item was modelled and there was some Excel VBA code that changed the ambient temperature for each item.
What would the VBA code be to change the value for an information stream called AmbientT?
All my trials using Call and .SetProp have been unsuccessful.
lauriew
 
Posts: 6
Joined: 09 September 2013, 14:27

Re: Problems with COFE.xlt

Postby jasper » 14 September 2013, 07:06

You can look at the VBA code that obtains parameter values (note that the VBA code that comes with COFE.xlt is unprotected, you can just open the VBA editor and see it, and edit it). You can use the same code for setting parameter values.
User avatar
jasper
 
Posts: 1128
Joined: 24 October 2012, 15:33
Location: Spain

Re: Problems with COFE.xlt

Postby OrsonPouchard » 13 July 2021, 11:52

I tried restarting, uninstalling and then reinstalling but it doesn't work, would anyone have a tutorial please?
OrsonPouchard
 
Posts: 1
Joined: 29 June 2021, 08:43

Re: Problems with COFE.xlt

Postby jasper » 13 July 2021, 13:28

Can you elaborate on what does not work? Are you not able to start a new Excel document based on COFE.xlt? Or when you do there is a problem with it?
User avatar
jasper
 
Posts: 1128
Joined: 24 October 2012, 15:33
Location: Spain

Re: Problems with COFE.xlt

Postby colancto » 15 July 2021, 19:03

To be clear the Flowsheet Monitoring interface specification has been published by CO-LaN. What is missing is an implementation in COFE. The WAR algorithm by US EPA is a Flowsheet Monitoring Component and is a tool openly available for use to evaluate chemical processes in eight environmental impact categories. You are looking at something slightly different, but that goes along also the Flowsheet Monitoring approach. How to access many different objects in a Flowsheet to extract from them some pieces of information and to combine all these pieces of information to get a result. What you are considering is an approach that was developed at University of Trieste using a CAPE-OPEN Unit Operation and presented at the CAPE-OPEN 2007 Annual Meeting. Cumbersome as a solution.
You may want to look at the scenarios of use described in the Flowsheet Monitoring interface specification (see section 3.7). CO-LaN would be happy to have your feedback on how Flowsheet Monitoring as per the CAPE-OPEN standard could fit your needs.
User avatar
colancto
Administrateur
 
Posts: 92
Joined: 23 October 2012, 11:46

Re: Problems with COFE.xlt

Postby jasper » 16 July 2021, 08:30

The monitoring implementation in COFE is there - but using a prototype set of the interfaces - the published set of interfaces is pending its actual publication, which should be any day now.
User avatar
jasper
 
Posts: 1128
Joined: 24 October 2012, 15:33
Location: Spain

Previous

Return to COCO (AmsterCHEM)

Who is online

Users browsing this forum: No registered users and 5 guests