[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
CAPE-OPEN • View topic - Question on GetPhaseCompounds of ICapeReactionChemistry

Question on GetPhaseCompounds of ICapeReactionChemistry

Questions related to the Thermodynamic and Physical Properties interface specification for version 1.0

Question on GetPhaseCompounds of ICapeReactionChemistry

Postby bcbooo » 18 February 2016, 07:59

I am trying to develop a simple reaction module, but when do it I encountered a little question. CAPE-OPEN manual defines a method of ICapeReactionChemistry as the following:

***************************************
Interface Name: ICapeReactionChemistry
Method Name: GetPhaseCompounds
Returns: CapeString

Arguments
Name Type Description
[in] phase CapeString Label of the required phase
[out] compNo CapeLong
[out] compIds CapeArrayString The ids of the compounds present in the specified phase
***************************

But when I import the interfaces from CAPE-OPENv1-1-0.tlb, the interface method looks like the following:

STDMETHOD(GetPhaseCompounds)(BSTR reacID, long * compNo, VARIANT * compIds);

The first argument is paradox.

And even though the first arguments are same, it's not rational by my opinion. Is the right method should looks like as the following:

STDMETHOD(GetPhaseCompounds)(BSTR reacID,BSTR phase, long * compNo, VARIANT * compIds);

Any response will be appreciated.
bcbooo
 
Posts: 66
Joined: 22 November 2012, 06:41
Location: China

Re: Question on GetPhaseCompounds of ICapeReactionChemistry

Postby jasper » 18 February 2016, 08:08

There are only very few implementations of this standard (COCO implements it - of the top of my head I cannot think of other implementations). There are other items about this standard that are not convenient, such as the units of measure (COCO ignores the specification on this and uses SI units) and the double specification of ICapeThermoMaterialContext.

While implementing this interface I could also not make sense of the signature of the GetPhaseCompounds routine - I left it unimplemented; it returns an error if called.

Please note that a much improved and much more elaborate standard for chemical reactions is in the making - unfortunately the document is not published, nor finished at this point. But the thermo SIG is working hard on its completion.

If you would like to preview this new interface specification, which works in conjunction with thermo 1.1, please contact the thermo SIG leader (Sergej Blagov).
User avatar
jasper
 
Posts: 1128
Joined: 24 October 2012, 15:33
Location: Spain

Re: Question on GetPhaseCompounds of ICapeReactionChemistry

Postby jasper » 18 February 2016, 08:09

Re units of measure: see the warning in the CORN help here:
User avatar
jasper
 
Posts: 1128
Joined: 24 October 2012, 15:33
Location: Spain

Re: Question on GetPhaseCompounds of ICapeReactionChemistry

Postby bcbooo » 18 February 2016, 08:18

OK, Thank you Jasper for your response.

Could you send me the email address of Sergej Blagov? Thank you.
bcbooo
 
Posts: 66
Joined: 22 November 2012, 06:41
Location: China

Re: Question on GetPhaseCompounds of ICapeReactionChemistry

Postby jasper » 18 February 2016, 10:05

Yes - please send me a mail and I will reply.
User avatar
jasper
 
Posts: 1128
Joined: 24 October 2012, 15:33
Location: Spain

Re: Question on GetPhaseCompounds of ICapeReactionChemistry

Postby bcbooo » 19 February 2016, 00:54

Have sent.
bcbooo
 
Posts: 66
Joined: 22 November 2012, 06:41
Location: China


Return to Thermodynamic v1.0

Who is online

Users browsing this forum: No registered users and 0 guests

cron