phrSetSelectedOutputFileOn: Set selected_output file on/off.

View source: R/phreeqc.R

phrSetSelectedOutputFileOnR Documentation

Set selected_output file on/off.

Description

Sets the output file switch on or off. This switch controls whether or not phreeqc writes to the output file. This is the output normally generated when phreeqc is run. The initial setting is off.

Usage

phrSetSelectedOutputFileOn(nuser, value)

Arguments

nuser

the user number specified in the SELECTED_OUTPUT block.

value

if TRUE, writes output to the the selected_output file.

References

https://water.usgs.gov/water-resources/software/PHREEQC/IPhreeqc.pdf

See Also

Other Selected Output: phrGetSelectedOutputFileName(), phrGetSelectedOutput(), phrSetSelectedOutputFileName()

Examples


# This example equilibrates pure water with calcite at various temperatures
# and displays the name of the selected_output file.
phrLoadDatabaseString(phreeqc.dat)
phrSetSelectedOutputFileOn(1, TRUE)
phrSetSelectedOutputFileName(1, file.path(tempdir(), "ex2.sel"))

input <- c( 
  'SOLUTION 1 Pure water     ',
  'EQUILIBRIUM_PHASES 1      ',
  '    Calcite    0.0   1.0  ',
  'REACTION_TEMPERATURE 1    ',
  '    25.0 75.0 in 51 steps ',
  'SELECTED_OUTPUT 1         ',
  '    -temperature          ',
  '    -si     calcite       '
  )


if (is.null(phrRunString(input))) {
  cat(paste("see ", phrGetSelectedOutputFileName(1), ".\n", sep = ""))
}


phreeqc documentation built on Jan. 24, 2023, 1:08 a.m.