PhreeqcUsers Discussion Forum

Registrations currently disabled due to excessive spam. Please email phreeqcusers at gmail.com to request an account.
Welcome Guest
 

  • Forum Home
  • Login
  • Register

  • PhreeqcUsers Discussion Forum »
  • Beginners »
  • SELECTED_OUTPUT »
  • How to export log IAP and log K from saturation indices section?
« previous next »
  • Print
Pages: [1]   Go Down

Author Topic: How to export log IAP and log K from saturation indices section?  (Read 5480 times)

Juan Sebastian

  • Top Contributor
  • Posts: 25
How to export log IAP and log K from saturation indices section?
« on: 23/08/24 21:20 »
Dear all,


In the saturation indices section (.out) there are values of log IAP and log K for each phase. I would like to export this outcomes and open it in an excel file. How can I do this?

I have been trying with SELECTED_OUTPUT keyword, but I do not know how to write the -identifiers for these variables.

Thank you so much for your support!
 
« Last Edit: 23/08/24 21:23 by Juan Sebastian »
Logged

dlparkhurst

  • Global Moderator
  • *****
  • Posts: 4263
Re: How to export log IAP and log K from saturation indices section?
« Reply #1 on: 23/08/24 22:42 »
Here is a way to get the saturation indices:

Code: [Select]
SOLUTION
pH 7 charge
Ca 1
Mg 1
C(4) 2
SELECTED_OUTPUT 1
    -file                 selected_output_1.sel
    -reset                false
    -saturation_indices   Calcite Dolomite

Here is a way to get saturation indices and log K:

Code: [Select]
SOLUTION
pH 7 charge
Ca 1
Mg 1
C(4) 2
SELECTED_OUTPUT 1
    -file                 selected_output_1.sel
    -reset                false
USER_PUNCH 1
-headings pH SI_Calcite LK_Calcite SI_Dolomite LK_Dolomite
10 PUNCH -LA("H+")
20 PUNCH SI("Calcite"), LK_PHASE("Calcite")
30 PUNCH SI("Dolomite"), LK_PHASE("Dolomite")
Logged

Juan Sebastian

  • Top Contributor
  • Posts: 25
Re: How to export log IAP and log K from saturation indices section?
« Reply #2 on: 23/08/24 23:56 »
Thank you so much! With the previous example I realized how to export the log IAP.

Ej: 30 PUNCH SI("Calcite") + LK_PHASE("Calcite")
Logged

  • Print
Pages: [1]   Go Up
« previous next »
  • PhreeqcUsers Discussion Forum »
  • Beginners »
  • SELECTED_OUTPUT »
  • How to export log IAP and log K from saturation indices section?
 

  • SMF 2.0.19 | SMF © 2021, Simple Machines | Terms and Policies
  • XHTML
  • RSS
  • WAP2