combining two property packages within one

Moderator: jasper

Stephan
Posts: 46
Joined: 15 July 2020, 08:16

combining two property packages within one

Post by Stephan »

We use Chemsep property packages within Cofe for process simulation.

Is there any way to use enthalpy and entropy calculations from one property package setting/model
and all other calculations from another property package setting/model?

That way we would try to combine the "best of two worlds" within the same stream in Cofe.
User avatar
jasper
Posts: 1129
Joined: 24 October 2012, 15:33
Location: Spain
Contact:

Re: combining two property packages within one

Post by jasper »

TEA supports this. You can set up a TEA package that uses an external phase equilibrium calculator (ChemSep) and one or more external property caculations (ChemSep).
Stephan
Posts: 46
Joined: 15 July 2020, 08:16

Re: combining two property packages within one

Post by Stephan »

I couldn't find documentation on how to specify for example enthalpy to be calculated from Uniquac (Chemsep) and dewpoint to be calculated from PSRK (Chemsep).
User avatar
jasper
Posts: 1129
Joined: 24 October 2012, 15:33
Location: Spain
Contact:

Re: combining two property packages within one

Post by jasper »

In TEA?

- Add an external routine. Pick ChemSep, pick the property package, give it a name
- Select the external routine where desired.
Stephan
Posts: 46
Joined: 15 July 2020, 08:16

Re: combining two property packages within one

Post by Stephan »

I want to use two different instances of Chemsep within TEA.
One Chemsep-Instance I would set to EOS: Haydon O'Connel, K-value: Prausnitz, Activity Coeff: Uniquac, Enthalpy: Ideal+Excess

From that instance I would like to calculate enthalpy and entropy for both liquid and gas.

The other Chemsep-instance would be P-SRK for everything.
That one I would use to calculate every property except enthalpy and entropy (P-SRK VLE and dewpoint calculations are very accurate in my application,
enthalpy and entropy are more accurate with the above ).

It seems like Tea refuses to add two different Chemsep-property Packs in external calculations.
hkooijman
Posts: 51
Joined: 13 April 2013, 23:50

Re: combining two property packages within one

Post by hkooijman »

an interesting idea. I guess this should be fixed at the PME level? I mean CS/copp makes a whole set of properties available like the K values, enthalpies and entropies, as well as physical properties but it is the PME that should offer the choice to not all use a cocktail of propeties i.e. K values from CS/copp, H and S from simple polynomials, and physical properties from TEA or as entered by the user as constant values. Can you be more clear as to what you want to combine and as to why?

Harry
User avatar
jasper
Posts: 1129
Joined: 24 October 2012, 15:33
Location: Spain
Contact:

Re: combining two property packages within one

Post by jasper »

Not clear on 'TEA refuses...' - does it provide an error message?
Stephan
Posts: 46
Joined: 15 July 2020, 08:16

Re: combining two property packages within one

Post by Stephan »

Yes, it provides an error message:
"A calculation routine with the same CLSID is already loaded."

I tried to overcome this by using a combination of TEA and Chemsep.
I tried to use Hayden OCOnnel as GAS-EOS and calculate Gas-enthalpy via EOS.
I configured that within TEA.

I put a Chemsep prop pack into external routines, where PSRK is selected
for enthalpy and VLE-calculations.

Within TEA I set Chemsep for liquid enthalpy, fugacity and log fugacity.
For activity coefficient I would like to choose Chemsep external routine, however, this option doesn't exist in TEA.
Therefore I chose Uniquac for activity coefficient.

This setting worked well for pure substance enthalpies.

However, when combining two liquids it failed to calculate VLE-equilibrium.
Error message is in the appended file.
Flowsheet and TEA-setting is in appended file called Testfile, proppack "test18" contains the TEA setting.
Chemsep setting of the external Chemsep routine is attached as well.

What I try to do is to calculate gas enthalpy via EOS Hayden OConnel and everything else via PSRK from Chemsep.
Attachments
Chemsep setting.jpg
Chemsep setting.jpg (63.43 KiB) Viewed 18106 times
Testfile.fsd
(31.49 KiB) Downloaded 943 times
errormessage.jpg
errormessage.jpg (36.54 KiB) Viewed 18106 times
User avatar
jasper
Posts: 1129
Joined: 24 October 2012, 15:33
Location: Spain
Contact:

Re: combining two property packages within one

Post by jasper »

Yes, it provides an error message:
"A calculation routine with the same CLSID is already loaded."
This is indeed an invalid check. It has been removed. Please update TEA (COCO Update, CUP).

For the other error, can you attach an fsd file in which this happens?
Stephan
Posts: 46
Joined: 15 July 2020, 08:16

Re: combining two property packages within one

Post by Stephan »

Thanks for updating.

fsd file is in the previous post already.
Post Reply

Return to “TEA Thermodynamic server (AmsterCHEM)”