Beginners > SELECTED_OUTPUT
How to export log IAP and log K from saturation indices section?
(1/1)
Juan Sebastian:
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!
dlparkhurst:
Here is a way to get the saturation indices:
--- Code: ---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
--- End code ---
Here is a way to get saturation indices and log K:
--- Code: ---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")
--- End code ---
Juan Sebastian:
Thank you so much! With the previous example I realized how to export the log IAP.
Ej: 30 PUNCH SI("Calcite") + LK_PHASE("Calcite")
Navigation
[0] Message Index
Go to full version