Jump to content
Geochemist's Workbench Support Forum

retrieval of fugacity using python


Recommended Posts

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...