[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/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 - Compounds Equilibrium calculations
Page 1 of 1

Compounds Equilibrium calculations

PostPosted: 20 December 2021, 14:18
by Vanessa
Hi

I am doing, mineral processing simulation and I had to add some compounds on my own. I was able to create a package in TEA but my challenge is of the compounds added, cobalt sulphate and sodium metabisulfite show the following error when I try to add them as feed streams.

"Failed to calculate feed stream: CalcEquilibrium failed: CalcEquilibrium failed: CalcEquilibrium failed: TP flash failed: Failed to obtain vaporPressure for compound Sodium Metabisulfite"

How can I correct this error? I have attached the flowsheet.

Re: Compounds Equilibrium calculations

PostPosted: 20 December 2021, 15:23
by jasper
You are using NRTL for the liquid. This implies that the fugacity is calculated from the saturated vapor fugacity and the activity contribution. Therefore the vapor pressure must be known.

If these compounds can only appear in the liquid phase - just make the vapor pressure really low (e.g. a constant, 1e-100):

Screenshot 2021-12-20 164451.png
Screenshot 2021-12-20 164451.png (7.69 KiB) Viewed 175237 times


Same for cobalt sulphate. Then select T-correlation to be used for vapor pressure:

Screenshot 2021-12-20 164130.png
Screenshot 2021-12-20 164130.png (16.37 KiB) Viewed 175237 times


Unless these compounds to appear in a solid phase (and only in solid)? In this case, vapor pressure is not needed - all that is needed is density, enthalpy and entropy contributions:

[link]https://www.cocosimulator.org/index_help.php?page=TEA/solidonly.htm[/link]

Re: Compounds Equilibrium calculations

PostPosted: 20 December 2021, 20:15
by Vanessa
Thank you for the information. These compounds should only appear in the liquid phase. I have entered data for the vapour pressure but I am still getting the following error.

Re: Compounds Equilibrium calculations

PostPosted: 20 December 2021, 20:17
by Vanessa
.

Re: Compounds Equilibrium calculations

PostPosted: 21 December 2021, 07:50
by jasper
Did you both enter vapor pressure data for these compounds, and select the vapor pressure routine for these compounds as shown in above images?

Re: Compounds Equilibrium calculations

PostPosted: 21 December 2021, 15:39
by Vanessa
Yes, I did. I have attached the flowsheet.

Re: Compounds Equilibrium calculations

PostPosted: 22 December 2021, 08:01
by jasper
Please make sure to also select the temperature correlations:

Screenshot 2021-12-22 092322.png
Screenshot 2021-12-22 092322.png (15.2 KiB) Viewed 175192 times

Re: Compounds Equilibrium calculations

PostPosted: 22 December 2021, 09:14
by Vanessa
Thank you. It is now working after selecting Lee Kesler.

Re: Compounds Equilibrium calculations

PostPosted: 22 December 2021, 11:22
by jasper
I suggest you do not use Lee Kessler for these compounds. Use the T Correlation instead, as you have defined it (a small value). With Lee Kessler you will probably find that a significant amount of these compounds will go to the vapor phase.