olm.USGS.PhreeqcPandas.calciteSaturationAtFixedPCO2¶
-
olm.USGS.PhreeqcPandas.calciteSaturationAtFixedPCO2(logPCO2, phreeqcInputFile, PHREEQC_PATH, DATABASE_FILE, newInputFile=None)[source]¶ Function used in root finding of saturation PCO2.
Function is used by findPCO2atCalciteSaturation(). As a stand alone function, it’s better to use phreeqcRunSetPCO2().
Parameters: - phreecInputFile : str
The name of the input file to modify.
- logPCO2 : float
Log10 of the PCO2 value to set the sample to.
- PHREEQC_PATH : string
The path to the PHREEQC executable.
- DATABASE_FILE : string
The database file to be used by PHREEQC.
- newInputFile : string
The name of the set-PCO2 file to create and run. If not specified, the final 5 characters will be stripped off of phreeqcInputFile and ‘set-PCO2.phrq will be added.’
- Returns
- ——-
- SI : float
Saturation index of calcite for given PCO2.