20 MooseEnum salt_list(
"FLIBE FLINAK CUSTOM");
22 params.
addParam<Real>(
"alpha",
"alpha fit parameter in Henry model, if defining custom fluid");
23 params.
addParam<Real>(
"beta",
"beta fit parameter in Henry model, if defining custom fluid");
25 "gamma_0 fit parameter in Henry model, if defining custom fluidl");
27 "gamma derivative fit parameter in Henry model, if defining custom fluid");
29 "KH0",
"Reference Henry parameter in Henry model, if defining custom fluid [mol/m3/Pa]");
36 _radius(getParam<Real>(
"radius")),
38 _alpha(isParamSetByUser(
"alpha") ? getParam<Real>(
"alpha") : 0.0),
39 _beta(isParamSetByUser(
"beta") ? getParam<Real>(
"beta") : 0.0),
40 _gamma_0(isParamSetByUser(
"gamma_0") ? getParam<Real>(
"gamma_0") : 0.0),
41 _dgamma_dT(isParamSetByUser(
"dgamma_dT") ? getParam<Real>(
"dgamma_dT") : 0.0),
42 _KH0(isParamSetByUser(
"KH0") ? getParam<Real>(
"KH0") : 0.0)
65 mooseError(
"Must include alpha parameter when using custom salt Henry gas model");
67 mooseError(
"Must include beta parameter when using custom salt Henry gas model");
69 mooseError(
"Must include gamma_0 parameter when using custom salt Henry gas model");
71 mooseError(
"Must include dgamma_dT parameter when using custom salt Henry gas model");
73 mooseError(
"Must include KH0 parameter when using custom salt Henry gas model");
82 const Real m_to_ang = 1e10;
89 value = exp(value / (
_Rgas * temperature)) *
_KH0;
registerMooseObject("ChemicalReactionsApp", HenryGasConstant)
static InputParameters validParams()
This UserObject performs a calculation of the Henry coefficient for noble gases using the model by K.
static constexpr Real _KH0_FLiBe
static constexpr Real _dgamma_dT_FLiNaK
HenryGasConstant(const InputParameters ¶meters)
static InputParameters validParams()
static constexpr Real _Rgas
Universal gas constant [J/mol/K].
static constexpr Real _gamma_0_FLiBe
Saltlist
Enum used to select the salt type.
static constexpr Real _alpha_FLiBe
Model constants obtained from K.
enum HenryGasConstant::Saltlist _salt_list
virtual Real henry(Real temperature) const
Returns the henry constant at the specified temperature.
static constexpr Real _alpha_FLiNaK
Model constants for FLiNaK.
static constexpr Real _KH0_FLiNaK
static constexpr Real _beta_FLiBe
static constexpr Real _beta_FLiNaK
static constexpr Real _dgamma_dT_FLiBe
const Real _radius
van der Waals radius
static constexpr Real _gamma_0_FLiNaK
Real _alpha
Fit coefficients for the model.
bool isParamSetByUser(const std::string &name) const
void mooseError(Args &&... args) const