[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 2016-03-03T01:23:18+00:00 http://www.cape-open-forum.org/feed.php?f=30&t=489 2016-03-03T01:23:18+00:00 2016-03-03T01:23:18+00:00 http://www.cape-open-forum.org/viewtopic.php?t=489&p=1550#p1550 <![CDATA[Re: Adopt broadcast mechanism into CAPE-OPEN]]>
The following picture shows how the broadcast mechanism works. The Property Package holds the IBroadcastSender of Simulator, and simulator holds the IBraodcastReceiver of Property Package; UO is similiar. IBroadcastSender has a method named ReSendMessage(int msgCode), and IBroadcastReceiver has a method named ReceiveMessage(int msgCode). When a compound's name in Property Package changed, Property Package could send out a message by ReSendMessage() of IBroadcastSender of Simulator, then Simulator re-send out this message by ReceiveMessage() of IBroadcastReceiver of other modules.

At the current CAPE-OPEN specifications this mechanism is not possible, but I hope the next version will take this mechanism into consideration.

[img]broadcast.jpg[/img]

Statistics: Posted by bcbooo — 03 March 2016, 01:23


]]>
2016-03-02T08:16:56+00:00 2016-03-02T08:16:56+00:00 http://www.cape-open-forum.org/viewtopic.php?t=489&p=1549#p1549 <![CDATA[Re: Adopt broadcast mechanism into CAPE-OPEN]]>
If there is no guarantee the PME will support this, the PMC cannot depend on such a mechanism.

And, as mentioned, I do not see the added value over re-obtaining the compound list each time Validate is called - which is the current mechanism.

Statistics: Posted by jasper — 02 March 2016, 08:16


]]>
2016-03-02T03:14:02+00:00 2016-03-02T03:14:02+00:00 http://www.cape-open-forum.org/viewtopic.php?t=489&p=1548#p1548 <![CDATA[Re: Adopt broadcast mechanism into CAPE-OPEN]]>
It's not difficult to define events, I prefer to divide events into different classes, like the following:

(1) Compound Messages.

Code Id: CAPE_EventMsg_Compound.

Subclass message Id list:
1- One of the compounds changes it's name, please care here just one compound changes it's name. Then UO receives this event, and compares old compound list with new compound list, to check which one compound's name changed, it's very easy. If multi compounds changed their name, should send out this event once when each compound name changed.

2- Remove one of the compounds. Similiar with compound rename.

3- Add one new compound.


(2) Run Control Messages.

Code Id: CAPE_EventMsg_RunCtrol.

Subclass message Id list:
1. Return to initial status, clear all cache datas.

2. Return to initial status, but still use all cache datas.

2. Input value changed after a successful calculation.

(3) Reaction Messages.

Code Id: CAPE_EventMsg_Reaction.

Subclass message Id list;
1. One of the reactions changed it's name.

2. Remove one of the reactions.

3. Add a new reaction.

4. One of the reactions adds/removes a kinetic equation.

And so on.

Statistics: Posted by bcbooo — 02 March 2016, 03:14


]]>
2016-03-01T09:07:23+00:00 2016-03-01T09:07:23+00:00 http://www.cape-open-forum.org/viewtopic.php?t=489&p=1546#p1546 <![CDATA[Re: Adopt broadcast mechanism into CAPE-OPEN]]>
It is advised (but alas not required) to have (material-) objects connected to ports to be functional during a call to Edit, so that also at that point a unit operation can re-obtain information like compound names, etc.

A generic event handling system is not currently present in CAPE-OPEN, nor would it likely be implemented by a number of simulators, as they lack the internal structure to fire such events. In addition, the event would have to come with additional information (this particular compounds got renamed to that particular name), otherwise such a system would not carry additional value over the unit operation re-checking things like compounds lists on Validate.

Statistics: Posted by jasper — 01 March 2016, 09:07


]]>
2016-03-01T08:46:16+00:00 2016-03-01T08:46:16+00:00 http://www.cape-open-forum.org/viewtopic.php?t=489&p=1545#p1545 <![CDATA[Adopt broadcast mechanism into CAPE-OPEN]]>
----------------------------------

The simulators who adhere to CAPE-OPEN have some shortages, for example, user has selected some compounds(for example SC) in a unit operation module as the reactant compounds , then user changes the SC name in compound selection window. For Aspen Plus and other simulators, UO could change the SC name automaticly in this UO; But for CAPE-OPEN, the simulator just could call the Invalidate() method of this UO, then UO check the compound list, then he doesn't know whether compound name changed or compound list changed, then this UO what only could do is remove SC from reactant compounds. This is not rational.

So here I advise CAPE-OPEN adds two new interfaces named ICapeBroadcastSender and ICapeBroadcastReceiver, for example Simulator fufills ICapeBroadcastSender and UO fulfills ICapeBroadcastReceiver, when compound name changed, Simulator could tell UO compound name changed; when compound removed, Simulator could tell UO compound removed, then UO could do something refer to specified broadcast message.

Statistics: Posted by bcbooo — 01 March 2016, 08:46


]]>