[Next] [Previous] [Up] [Top]

Keywords

PRINT

This keyword is used to select which results are written to the output file. Nine blocks of calculation results may be included or excluded in the output file for each simulation. In addition, the writing of results to the selected-output file can be suspended or resumed and a status line, which is written to the screen and monitors the type of calculation being performed, can be enabled or disabled.

Example

Line 0:  PRINT 
Line 1:       -reset                false
Line 2:       -eh                   true
Line 3:       -equilibrium_phases   true
Line 4:       -exchange             true
Line 5:       -gas_phase            true
Line 6:       -other                true
Line 7:       -saturation_indicies  true
Line 8:       -species              true
Line 9:       -surface              true
Line 10:      -totals               true
Line 11:      -selected_output      true
Line 12:      -status               false

Explanation

Line 0: PRINT

Keyword for the data block. No other data are input on the keyword line.

Line 1: -reset [True or False]

-reset--Changes all print options listed above, except -selected_output and -status, to true or false. Default is true. Optionally, reset or -res[et]. Should be the first identifier of the data block. Individual print options may follow.

True or False--True causes all data blocks to be included in the output file; false causes all data blocks to be excluded to the output file. Optionally, t[rue] or f[alse], case independent.

Line 2: -eh [True or False]

-eh--Prints eh values derived from redox couples in initial solution calculations if value is true, excludes print if value is false. Default is true. Optionally, eh.

Line 3: -equilibrium_phases [True or False]

-equilibrium_phases--Prints composition of the pure-phase assemblage if value is true, excludes print if value is false. Default is true. Optionally, equilibria, equilibrium, pure, -eq[uilibrium_phases], -eq[uilibria], -p[ure_phases], or -p[ure]. Note the hyphen is necessary to avoid a conflict with the keyword EQUILIBRIUM_PHASES and its synonym PURE_PHASES.

Line 4: -exchange [True or False]

-exchange--Prints composition of the exchange assemblage if value is true, excludes print if value is false. Default is true. Optionally, -ex[change]. Note the hyphen is necessary to avoid a conflict with the keyword EXCHANGE.

Line 5: -gas_phase [True or False]

-gas_phase--Prints composition of the gas phase if value is true, excludes print if value is false. Default is true. Optionally, -g[as_phase]. Note the hyphen is necessary to avoid a conflict with the keyword GAS_PHASE.

Line 6: -other [True or False]

-other--Controls all printing to the output file not controlled by any of the other identifiers, including headings; lines that identify the solution, exchange assemblage, surface assemblage, pure-phase assemblage, and gas phase to be used in each reaction calculations; and description of the stoichiometric reaction. Default is true. Optionally, other, -o[ther].

Line 7: -saturation_indices [True or False]

-saturation_indices--Prints saturation indices for each phase for which a saturation index can be calculated if value is true, excludes print if value is false. Default is true. Optionally, -si, si, saturation_indices, or -sa[turation_indices].

Line 8: -species [True or False]

-species--Prints the distribution of aqueous species, including molality, activity, and activity coefficient, if value is true, excludes print if value is false. Default is true. Optionally, species or -sp[ecies].

Line 9: -surface [True or False]

-surface--Prints composition of the surface assemblage if true, excludes print if false. Default is true. Optionally, -su[rface]. Note the hyphen is necessary to avoid a conflict with the keyword SURFACE.

Line 10: -totals [True or False]

-totals--Prints the total molalities of elements (or element valence states in initial solutions), pH, pe, temperature, and other solution characteristics if true, excludes print if false. Default is true. Optionally, totals or -t[otals]. Note, printing of molalities and other properties of all of the aqueous species is controlled by the -species identifier.

Line 11: -selected_output [True or False]

-selected_output--Controls printing of information to the selected-output file. Default is true. Optionally, selected_output or -se[lected_output]. This identifier has no effect if no SELECTED_OUTPUT keyword data block is included in the file. If a SELECTED_OUTPUT keyword data block is included, the -selected_output identifier is used to include or exclude results from the selected-output file. When set to false, no results will be written to the selected-output file. Writing to the selected-output file can be resumed if -selected_output is set to true in a PRINT keyword data block in a subsequent simulation. Note the hyphen in the identifier is necessary to avoid a conflict with the keyword SELECTED_OUTPUT. This print-control option is not affected by -reset.

Line 12: -status [True or False]

-status--Controls printing of information to the screen. Default is true. Optionally, status or -st[atus]. When set to true, a status line is printed to the screen identifying the simulation number and the type of calculation that is currently being processed by the program. When set to false, no status line will be printed to the screen. This print-control option is not affected by -reset.

Notes

By default, all print options are set to true at the beginning of a run. Once set by the keyword data block, PRINT, options will remain in effect until the end of the run or until changed in another PRINT data block.

Unlike most of PHREEQC input, the order in which the identifiers are entered is important when using the -reset identifier. Any identifier set before the -reset in the data block will be reset when -reset is encountered. Thus, -reset should be the first identifier in the data block.

The identifiers species and saturation_indices control the longest output data blocks and are the most likely to be excluded from long computer runs. If transport calculations are being made, the output file could become very large unless some or all of the output is excluded though the PRINT data block (-reset false). Alternatively, the output in transport calculations may be limited by printing to the output file every ith time step by using the -print identifier in the TRANSPORT data block.

Example problems

The keyword PRINT is used in example problems 4 and 9.

Related keywords

SELECTED_OUTPUT and TRANSPORT -print.

Example
Explanation
Notes
Example problems
Related keywords

User's Guide to PHREEQC - 07 MAY 96
[Next] [Previous] [Up] [Top]

Generated with CERN WebMaker