[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]/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/functions.php on line 4688: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4690: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4691: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4692: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
CAPE-OPEN • View topic - Can't use "GetProp" to get the "totalFlow" based on "mass"
Page 1 of 1

Can't use "GetProp" to get the "totalFlow" based on "mass"

PostPosted: 03 December 2012, 02:00
by bcbooo
There is a "CAPEOPENMixerSplitterExamples.1.0.1" writed by AmsterCHEM, included "VB6 Source", "CPP Source", "CPP Source Documentation", "VB Binaries" and "CPP Binaries". You could get the "CPP Source" from CO-LAN or from the attachments below.

Recently I'm researching on the "CPP Source" example, but I encounter some questions. My simulation environment is Aspen Plus 2006.5, and I'm succeed to add the "CPP Mixer Splitter Example" into Aspen Plus User Interface, I used water as the component, and it runs very good. Then I edited it and changed the source code "material.GetOverallProperty(L"totalFlow",L"mole",value,error)" into "material.GetOverallProperty(L"totalFlow",L"mass",value,error)", the result of totalFlow was 0! I found that Aspen Plus 2006.5 support "Thermodynamics and Physical Properties Interface Specification 1.0", so I tried changed "mat->GetProp(CBSTR(L"totalFlow"),CBSTR(L"overall"),compIds,NULL,CBSTR(L"mole"),&v)" into ""mat->GetProp(CBSTR(L"totalFlow"),CBSTR(L"overall"),compIds,NULL,CBSTR(L"mass"),&v)"" in the file "MaterialObject10Wrapper.h",but the totalFlow based on mass is zero too, I don't know why.

Re: Can't use "GetProp" to get the "totalFlow" based on "mas

PostPosted: 03 December 2012, 10:14
by jasper
This appears to be a problem with AspenPlus. I would stick to mole based properties, and do the mass/mole conversion yourself. You can obtain the compound molecular weights by using GetComponentConstant, and passing MolecularWeight as compound identifier. Calculate the mixture molar weight and apply the conversion (note the 1e-3 kg/g to go from g/mol to kg/mol).

Re: Can't use "GetProp" to get the "totalFlow" based on "mas

PostPosted: 04 December 2012, 01:14
by bcbooo

Re: Can't use "GetProp" to get the "totalFlow" based on "mas

PostPosted: 04 December 2012, 07:39
by jasper
Good to hear that it has been fixed.

Re: Can't use "GetProp" to get the "totalFlow" based on "mas

PostPosted: 04 December 2012, 13:02
by colancto
As with most pieces of software I recommend using the latest version available after checking that no regression has taken place. This is true for the CAPE-OPEN interfaces as well with all other pieces making up a code.