19 "temperature", 298.15,
"The temperature of the aqueous phase (K). Default is 298.15K");
21 "temperature_points",
"Temperature points where log(Keq) data is evaluated (K)");
23 "logk_points",
"log(Keq) data evaluated at each value of temperature_points");
25 "Equilibrium constant for a given equilibrium species (in form log10(Keq))");
31 _temperature(coupledValue(
"temperature")),
32 _temperature_points(getParam<
std::vector<Real>>(
"temperature_points")),
33 _logk_points(getParam<
std::vector<Real>>(
"logk_points"))
37 mooseError(
"The number of temperature_points and logk_points must be equal in ",
_name);
registerMooseObject("ChemicalReactionsApp", EquilibriumConstantAux)
static InputParameters validParams()
Equilibrium constant (in the form log10(Keq)) calculated using a least-squares fit to the data provid...
const std::vector< Real > & _temperature_points
Temperature points in data set (in K)
const std::vector< Real > & _logk_points
log(Keq) values at each temperature point
virtual Real computeValue() override
std::unique_ptr< PolynomialFit > _linear_logk
Linear least-squares fit.
static InputParameters validParams()
std::unique_ptr< EquilibriumConstantFit > _logk
Least-squares fit to data.
const VariableValue & _temperature
Temperature (in K)
EquilibriumConstantAux(const InputParameters ¶meters)
void mooseError(Args &&... args) const
const std::string & _name