phrGetSelectedOutputFileName: Retrieve the name of the selected_output file.

View source: R/phreeqc.R

phrGetSelectedOutputFileNameR Documentation

Retrieve the name of the selected_output file.

Description

Retrieves the name of the selected_output file. The default value is selected_{nuser}.0.out.

Usage

phrGetSelectedOutputFileName(nuser)

Arguments

nuser

the user number specified in the SELECTED_OUTPUT block.

Details

The selected_output file must be turned on using the phrSetSelectedOutputFileOn function.

Value

The name of the selected_output file as a string.

References

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

See Also

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

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 Sept. 11, 2024, 8:33 p.m.