Click here to donate to keep PhreeqcUsers open
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email
?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Forum Home
Login
Register
PhreeqcUsers Discussion Forum
»
Beginners
»
PHREEQC manual examples
»
Combining data into composite SELECTED_OUTPUT file
« previous
next »
Print
Pages: [
1
]
Go Down
Author
Topic: Combining data into composite SELECTED_OUTPUT file (Read 2791 times)
HFlower
Frequent Contributor
Posts: 14
Combining data into composite SELECTED_OUTPUT file
«
on:
July 06, 2016, 03:04:40 AM »
Hi all- thanks in advance to anyone who reads and considers this.
To explain what I'm trying to do, please consider Manual Example 8 (surface complexation): two solutions are defined having different Zn concentrations, and each is taken through surface complexation, through a range of pH, with two separate subsequent selected output files. Could a single selected-output file be created that includes both sets of output?
Similarly, Manual Example 3 (Mixing) sets up a variety of solutions/conditions A-E, and it seems the relevant output data (pH, saturation indices, mole transfers) are manually picked out from the phreeqc output file so as to be included in Table 16. Would it be possible to create a single SELECTED_OUTPUT file that contained the same full set of results found in Table 16?
Logged
dlparkhurst
Top Contributor
Posts: 3176
Re: Combining data into composite SELECTED_OUTPUT file
«
Reply #1 on:
July 06, 2016, 07:11:14 AM »
Example 8 demonstrates how to use USER_PUNCH to write files that are subsequently included with $INCLUDE and run as part of the calculations. This capability is probably not used very often, but it may be useful if you want to run many repetitive simulations. However, if you look at the results of running example 8, there is a single selected output file, ex8.sel, that contains the results for all of the calculations, including all the results for each of the two zinc concentrations at the series of pH values.
For example 3, if you include this definition at the beginning of the file, you will generate a file that has all of the results of table 16.
SELECTED_OUTPUT 1
-file selected_output_1.sel
-reset false
-simulation true
-state true
-pH true
-equilibrium_phases CO2(g) Calcite Dolomite
-saturation_indices CO2(g) Calcite Dolomite
To get output from USER_PUNCH n, it is necessary to define SELECTED_OUTPUT n.
In general, a SELECTED_OUTPUT n with or without USER_PUNCH n, will remain in effect until the end of the input file. There are several ways that this default behavior can be changed. (1) All selected output files may be suspended and restarted with PRINT; -selected_output f/t. (2) An individual selected output file can be turned off and on by defining SELECTED_OUTPUT; -active f/t (without any further definitions). And (3) SELECTED_OUTPUT n can be redefined with different output and output file (using the same file name will overwrite the previous file).
Logged
HFlower
Frequent Contributor
Posts: 14
Re: Combining data into composite SELECTED_OUTPUT file
«
Reply #2 on:
July 06, 2016, 03:05:25 PM »
Thank you so much Mr. Parkhurst, it worked like a charm.
Logged
Print
Pages: [
1
]
Go Up
« previous
next »
PhreeqcUsers Discussion Forum
»
Beginners
»
PHREEQC manual examples
»
Combining data into composite SELECTED_OUTPUT file