[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: 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 112: 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 112: 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 112: 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 112: 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 112: 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 112: 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 112: 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-04-25T10:10:25+00:00 http://www.cape-open-forum.org/feed.php?f=5&t=492 2016-04-25T10:10:25+00:00 2016-04-25T10:10:25+00:00 http://www.cape-open-forum.org/viewtopic.php?t=492&p=1583#p1583 <![CDATA[Re: Using COCO Tea in a C++ code]]>
As mentioned at the start of this thread, TEA itself is not the fastest. It was not designed with fast in mind. It was designed with interoperability in mind.

Statistics: Posted by jasper — 25 April 2016, 10:10


]]>
2016-04-25T09:27:08+00:00 2016-04-25T09:27:08+00:00 http://www.cape-open-forum.org/viewtopic.php?t=492&p=1582#p1582 <![CDATA[Re: Using COCO Tea in a C++ code]]>
Thanks a lot for your help in setting up the COM interaction with CAPE-OPEN components!

Statistics: Posted by seb007 — 25 April 2016, 09:27


]]>
2016-04-22T15:52:00+00:00 2016-04-22T15:52:00+00:00 http://www.cape-open-forum.org/viewtopic.php?t=492&p=1580#p1580 <![CDATA[Re: Using COCO Tea in a C++ code]]>
Well - that is, theoretically you could do a flash at T and rho and only allow for the phase of interest. Clearly in the case of a cubic equation of state (or any equation of state explicit in volume) you can avoid the iterations on both ends if you would do the calculation directly.

TEA does not currently support this flash though, and I doubt any other implementation has this special case of a single phase flash implemented in a non-iterative manner. And implementing this special case is easy enough, but it would make sense if I were to supply P-V flash support for the VL system as well, which is a bit more work. Also the single phase PV flash would of course not work for an incompressible liquid model. And would still be iterative for any model that is not explicit in volume.

Statistics: Posted by jasper — 22 April 2016, 15:52


]]>
2016-04-21T13:11:05+00:00 2016-04-21T13:11:05+00:00 http://www.cape-open-forum.org/viewtopic.php?t=492&p=1577#p1577 <![CDATA[Re: Using COCO Tea in a C++ code]]>
My idea for using a property package was to compute pressure and temperature FROM density and enthalpy rather than the opposite. This does not seem to be possible (at least when looking at the properties that TEA can compute), and I need to perform iterations on my side (which I tried to avoid). Is there any other way to get pressure and temperature from density and enthalpy?

Statistics: Posted by seb007 — 21 April 2016, 13:11


]]>
2016-04-20T10:18:14+00:00 2016-04-20T10:18:14+00:00 http://www.cape-open-forum.org/viewtopic.php?t=492&p=1576#p1576 <![CDATA[Re: Using COCO Tea in a C++ code]]>
Yes, the compounds interface is implemented by the PP, which provides the compound definitions. However, the material object may contain a sub-set of the compounds in the PP. So the PP will call GetCompoundList on the MO's implementation to see which compounds are present on the MO.

If you always keep PP order, I suppose you can pass this call back on the PP, and let the PP answer its own question.

Note that the PP will likely ask you this once in between every call to SetMaterial and store the result. At least, this is how the MaterialContext is intended (not all implementations may follow this strategy). So if you have only one material object to work with, only call SetMaterial once. However, if you change the compound list on the material object, you must call SetMaterial again.

Statistics: Posted by jasper — 20 April 2016, 10:18


]]>
2016-04-20T10:11:28+00:00 2016-04-20T10:11:28+00:00 http://www.cape-open-forum.org/viewtopic.php?t=492&p=1575#p1575 <![CDATA[Re: Using COCO Tea in a C++ code]]>
I am progressing, but I still have an issue. I try to access directly to the material object, using DECLARE_NO_REGISTRY() in the ATL/COM class; then calling MyCapeOpenCOM::CreateObject() from the dll.

However, MyCapeOpenCOM type has an incomplete type in may main C++ code.

- Do I have to remove the #import of the COM dll, as I use it as a regular dll?
- Do I have to #include the MyCapeOpenCom.h file instead? When I try I get a compilation error (CComObjectRootEx is not a template).
- Do I have to export the interface as a regular dll?

Also, I have another question for the future. You said that I need to implement ICapeThermoCompounds. Isn't that included in property package?

Thanks for your help.

Statistics: Posted by seb007 — 20 April 2016, 10:11


]]>
2016-04-18T18:58:34+00:00 2016-04-18T18:58:34+00:00 http://www.cape-open-forum.org/viewtopic.php?t=492&p=1574#p1574 <![CDATA[Re: Using COCO Tea in a C++ code]]> Statistics: Posted by jasper — 18 April 2016, 18:58


]]>
2016-04-18T16:12:39+00:00 2016-04-18T16:12:39+00:00 http://www.cape-open-forum.org/viewtopic.php?t=492&p=1573#p1573 <![CDATA[Re: Using COCO Tea in a C++ code]]> Statistics: Posted by seb007 — 18 April 2016, 16:12


]]>
2016-04-18T15:11:19+00:00 2016-04-18T15:11:19+00:00 http://www.cape-open-forum.org/viewtopic.php?t=492&p=1572#p1572 <![CDATA[Re: Using COCO Tea in a C++ code]]> Statistics: Posted by jasper — 18 April 2016, 15:11


]]>
2016-04-18T14:40:57+00:00 2016-04-18T14:40:57+00:00 http://www.cape-open-forum.org/viewtopic.php?t=492&p=1571#p1571 <![CDATA[Re: Using COCO Tea in a C++ code]]> Statistics: Posted by seb007 — 18 April 2016, 14:40


]]>
2016-04-18T11:08:07+00:00 2016-04-18T11:08:07+00:00 http://www.cape-open-forum.org/viewtopic.php?t=492&p=1570#p1570 <![CDATA[Re: Using COCO Tea in a C++ code]]> Statistics: Posted by jasper — 18 April 2016, 11:08


]]>
2016-04-18T11:07:06+00:00 2016-04-18T11:07:06+00:00 http://www.cape-open-forum.org/viewtopic.php?t=492&p=1569#p1569 <![CDATA[Re: Using COCO Tea in a C++ code]]> Statistics: Posted by jasper — 18 April 2016, 11:07


]]>
2016-04-18T11:06:19+00:00 2016-04-18T11:06:19+00:00 http://www.cape-open-forum.org/viewtopic.php?t=492&p=1568#p1568 <![CDATA[Re: Using COCO Tea in a C++ code]]> Statistics: Posted by jasper — 18 April 2016, 11:06


]]>
2016-04-18T10:59:37+00:00 2016-04-18T10:59:37+00:00 http://www.cape-open-forum.org/viewtopic.php?t=492&p=1567#p1567 <![CDATA[Re: Using COCO Tea in a C++ code]]> Statistics: Posted by seb007 — 18 April 2016, 10:59


]]>
2016-04-18T09:56:43+00:00 2016-04-18T09:56:43+00:00 http://www.cape-open-forum.org/viewtopic.php?t=492&p=1566#p1566 <![CDATA[Re: Using COCO Tea in a C++ code]]> Statistics: Posted by seb007 — 18 April 2016, 09:56


]]>