Jump to content
Geochemist's Workbench Support Forum

Recommended Posts

Posted

I am having trouble retrieving the fugacity for CO2(g) with python. I provided the scripts. For this calcuation I used thermo.tdat

In the resultsfile 0400.out you read 

fugacity(CO2(g))    <GWBplugin.c_double_Array_1 object at 0x0000020F80CCAD40>

Any hint is appreciated. 

Best regards,

Helge

 

0400_GWB.out 0400.py 0400.rea

Posted

Hello Helge,

The results command always return an array, even if there is only one value. To retrieve the fugacity value from the array, you can use the index operator ("[0]") like you have for the pH and concentrations.

Best,
Jia

Posted

It works. Thank you very much 🙂

Helge

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...