[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/feed.php on line 173: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/feed.php on line 174: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
CAPE-OPEN Discussions about use and implementation of the CAPE-OPEN standard 2024-03-13T09:11:23+00:00 http://www.cape-open-forum.org/feed.php?f=5 2024-03-13T09:11:23+00:00 2024-03-13T09:11:23+00:00 http://www.cape-open-forum.org/viewtopic.php?t=770&p=2795#p2795 <![CDATA[COCO (AmsterCHEM) • Re: COFE Flowsheet protection]]>
There is no external stop function. This would also not be possible as Solve does not return control until it is done - it would have to be done from another thread, and the COFE object is apartment threaded (can only be accessed from one thread).

Statistics: Posted by jasper — 13 March 2024, 09:11


]]>
2024-03-13T08:16:55+00:00 2024-03-13T08:16:55+00:00 http://www.cape-open-forum.org/viewtopic.php?t=770&p=2794#p2794 <![CDATA[COCO (AmsterCHEM) • Re: COFE Flowsheet protection]]> Is it possible to cancel a COFE calculation directly from EXCEL, for instance when the calculation struggles to converge ?

To run the calculation, I use the macro :

Public Sub COFE_CalculateFlowsheet()
Dim COFEDocument As COFE_Document
Set COFEDocument = COFE_GetCOFEDoc
COFEDocument.Solve
End Sub

So I would like to know if there is a similar function as COFEDocument.Solve to stop a calculation ?

Thanks a lot

Statistics: Posted by spertant — 13 March 2024, 08:16


]]>
2024-03-13T08:10:42+00:00 2024-03-13T08:10:42+00:00 http://www.cape-open-forum.org/viewtopic.php?t=770&p=2793#p2793 <![CDATA[COCO (AmsterCHEM) • Re: COFE Flowsheet protection]]> I will have a look at the COM object. With this method, can I use all the macro that I wrote, to get and set values from/to COFE ?

Statistics: Posted by spertant — 13 March 2024, 08:10


]]>
2024-03-11T19:54:50+00:00 2024-03-11T19:54:50+00:00 http://www.cape-open-forum.org/viewtopic.php?t=770&p=2792#p2792 <![CDATA[COCO (AmsterCHEM) • Re: COFE Flowsheet protection]]> Statistics: Posted by jasper — 11 March 2024, 19:54


]]>
2024-03-11T19:52:20+00:00 2024-03-11T19:52:20+00:00 http://www.cape-open-forum.org/viewtopic.php?t=770&p=2791#p2791 <![CDATA[COCO (AmsterCHEM) • Re: COFE Flowsheet protection]]>
Alternatively you could not use an embedded flowsheet, but create it as a COM object. Then Excel will not save it for you - you are on your own for that. You could save to string and load from string, and store the string value in an Excel cell. See LoadFromString, SaveFromString here:

Statistics: Posted by jasper — 11 March 2024, 19:52


]]>
2024-03-11T15:15:00+00:00 2024-03-11T15:15:00+00:00 http://www.cape-open-forum.org/viewtopic.php?t=770&p=2790#p2790 <![CDATA[COCO (AmsterCHEM) • Re: COFE Flowsheet protection]]> I have another question related to the above topic.
Using the embedded flowsheet in excel, I noticed that when I modify the input values in the excel file, run the simulation, save the excel file and close it, if I re-open the excel file, the last results obtained by the COFE simulation have not been saved (but of course the modifications of the input values directly done in the excel file have been saved).
Is there a way to save the results obtained, avoiding to run again the simulation when we open the excel file ?

Thanks

Statistics: Posted by spertant — 11 March 2024, 15:15


]]>
2024-03-05T14:06:42+00:00 2024-03-05T14:06:42+00:00 http://www.cape-open-forum.org/viewtopic.php?t=771&p=2789#p2789 <![CDATA[COCO (AmsterCHEM) • Re: Normal volume flow computation]]> https://www.cocosimulator.org/index_hel ... reunit.htm

I do not think there is one single definition that fits all purposes. If you need the ideal gas volume, I suggest you use the approach you sketched with the information calculator.

Statistics: Posted by jasper — 05 March 2024, 14:06


]]>
2024-03-05T12:20:51+00:00 2024-03-05T12:20:51+00:00 http://www.cape-open-forum.org/viewtopic.php?t=771&p=2788#p2788 <![CDATA[COCO (AmsterCHEM) • Re: Normal volume flow computation]]> Thanks

Statistics: Posted by spertant — 05 March 2024, 12:20


]]>
2024-03-01T14:37:43+00:00 2024-03-01T14:37:43+00:00 http://www.cape-open-forum.org/viewtopic.php?t=771&p=2787#p2787 <![CDATA[COCO (AmsterCHEM) • Re: Normal volume flow computation]]>
After the mixer: If you bring stream 4 to 101325 Pa and 273.15 (the normal conditions selected in the measure unit), you will see that there is 4.5% liquid under these conditions, which causes the much larger mismatch with the ideal vapor calculation.

Statistics: Posted by jasper — 01 March 2024, 14:37


]]>
2024-03-01T13:43:47+00:00 2024-03-01T13:43:47+00:00 http://www.cape-open-forum.org/viewtopic.php?t=771&p=2786#p2786 <![CDATA[COCO (AmsterCHEM) • Normal volume flow computation]]>
I'm facing issues with the computation of the normal volume flow in my simulation. Indeed, the measured normal volume flow does not give the same value as the normal volume flow that I compute, using the total molar flow and the ideal gas law.
It is especially obvious after a mixer, as you can see in the attached file.
How can this be explained ?

Thanks for your help.

Best Regards,
Savinien

Statistics: Posted by spertant — 01 March 2024, 13:43


]]>
2024-02-20T14:44:29+00:00 2024-02-20T14:44:29+00:00 http://www.cape-open-forum.org/viewtopic.php?t=770&p=2785#p2785 <![CDATA[COCO (AmsterCHEM) • Re: COFE Flowsheet protection]]>
Thank you for your help.
With the embedded flowsheet in Excel I'm on a good way to achieve my goal.
This topic : http://cape-open-forum.org/viewtopic.php?f=5&t=443
was particularly helpful to me to understand how to modify the flowsheet using excel.

Statistics: Posted by spertant — 20 February 2024, 14:44


]]>
2024-02-15T14:56:15+00:00 2024-02-15T14:56:15+00:00 http://www.cape-open-forum.org/viewtopic.php?t=770&p=2784#p2784 <![CDATA[COCO (AmsterCHEM) • Re: COFE Flowsheet protection]]>
Note that the template uses VBA macros, this may be a disadvantage. It is meant to demo automation.

You can access automation also using COM interfaces directly (there is more info here: and here ). Let me know in case you have more specific questions about this approach.

Statistics: Posted by jasper — 15 February 2024, 14:56


]]>
2024-02-15T12:42:47+00:00 2024-02-15T12:42:47+00:00 http://www.cape-open-forum.org/viewtopic.php?t=770&p=2782#p2782 <![CDATA[COCO (AmsterCHEM) • Re: COFE Flowsheet protection]]>
In fact I want to build a tool for non-technical people in my company. The aim is to have a user friendly tool and to prevent mistakes by preventing people from modifying the flowsheet.
The best solution would be an excel file, where the user puts some input parameters (feed conditions, some unit operations parameters) and the results of the COFE simulation would be written back in the excel file.
This would work as a black box and the user wouldn't see the COFE flowsheet.
I have started testing the COFE-in-EXCEL document which seems adapted for this, but I also would like to hide (or at least "protect") the flowsheet.

Statistics: Posted by spertant — 15 February 2024, 12:42


]]>
2024-02-15T12:18:18+00:00 2024-02-15T12:18:18+00:00 http://www.cape-open-forum.org/viewtopic.php?t=770&p=2781#p2781 <![CDATA[COCO (AmsterCHEM) • Re: COFE Flowsheet protection]]>
Or would you be looking for an option that says "read only" that can simply be turned off by the user, so no actual protection, but rather the ability to open a document in read-only mode to prevent making modifications by accident?

Statistics: Posted by jasper — 15 February 2024, 12:18


]]>
2024-02-15T11:46:02+00:00 2024-02-15T11:46:02+00:00 http://www.cape-open-forum.org/viewtopic.php?t=770&p=2780#p2780 <![CDATA[COCO (AmsterCHEM) • COFE Flowsheet protection]]>
I would like to protect a COFE Flowsheet, so that the users cannot modify the Flowsheet (modify feed values and unit operations parameters, plug-unplug streams...). Is there a way to do so ?

Alternatively (it would be even better) I was thinking to put my Flowsheet in a COFE Flowsheet Unit Operation, so the users could only modify some inputs to this Unit Operation. But I would like to protect this Unit Operation, so the users cannot open it to see the details and of course cannot modify it. Is it possible to do it in COFE ?

Thanks in advance,

Savinien Pertant

Statistics: Posted by spertant — 15 February 2024, 11:46


]]>