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;
const Real _radius
van der Waals radius
HenryGasConstant(const InputParameters ¶meters)
static InputParameters validParams()
static constexpr Real _dgamma_dT_FLiNaK
static constexpr Real _beta_FLiNaK
static constexpr Real _gamma_0_FLiBe
static const std::string temperature
static InputParameters validParams()
enum HenryGasConstant::Saltlist _salt_list
registerMooseObject("ChemicalReactionsApp", HenryGasConstant)
static constexpr Real _gamma_0_FLiNaK
virtual Real henry(Real temperature) const
Returns the henry constant at the specified temperature.
static constexpr Real _alpha_FLiNaK
Model constants for FLiNaK.
Real value(unsigned n, unsigned alpha, unsigned beta, Real x)
static constexpr Real _alpha_FLiBe
Model constants obtained from K.
static constexpr Real _beta_FLiBe
Real _alpha
Fit coefficients for the model.
static constexpr Real _KH0_FLiNaK
This UserObject performs a calculation of the Henry coefficient for noble gases using the model by K...
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
Saltlist
Enum used to select the salt type.
void mooseError(Args &&... args) const
static constexpr Real _Rgas
Universal gas constant [J/mol/K].
static constexpr Real _dgamma_dT_FLiBe
bool isParamSetByUser(const std::string &name) const
MooseUnits pow(const MooseUnits &, int)
static constexpr Real _KH0_FLiBe