olm.calcite.solutionFromCaPCO2¶
-
olm.calcite.solutionFromCaPCO2(Ca, PCO2, T_C=25.0, per_tol=0.001, max_iter=1000)[source]¶ Creates a solution object from a given concentration of calcium and PCO2.
Parameters: - Ca : float, numpy.ndarray, or pandas Series
concentration of calcium in mol/L
- PCO2 : float, numpy.ndarray, or pandas Series
partial pressure of CO2 (atm)
- T_C : float, , numpy.ndarray, or pandas Series (optional)
temperature of solution in degrees Celsius (default = 25 C)
- per_tol : float
the fractional change in H concentration between iterations upon which the iteration is terminated
- max_iter : int
the number of iterations allowed in the solution. Returns None if solution does not converge in max_iter.
Returns: - sol : solution object, numpy.ndarray of solution objects, or pandas Series of solution objects
Notes
Assumes a H20-CO2-CaCO3 system. Guesses concentration of H using relaxed charge balance assumption, and then iterates to full solution.