23 "fp",
"The name of the user object for liquid side fluid properties");
24 MooseEnum equation_list(
"StokesEinstein WilkeChang");
26 "equation", equation_list,
"The equation to use for mass transfer calculation");
30 params.
addParam<
Real>(
"molar_weight",
"molar weight solvent [kg/mol]");
33 params.
addParam<
Real>(
"phi", 1.0,
"The association parameter for the solute (see Wilke-Chang)");
34 params.
addParam<
Real>(
"wc", 7.4e-8,
"WilkeChang constant");
35 params.
addParam<
Real>(
"db", 0.023,
"Dittus-Boelter equation constant");
42 _diameter(getParam<
Real>(
"d")),
45 _radius(isParamValid(
"radius") ? getParam<
Real>(
"radius") : 0.0),
46 _mw(isParamValid(
"molar_weight") ? getParam<
Real>(
"molar_weight") : 0.0),
47 _phi(getParam<
Real>(
"phi")),
48 _wc(getParam<
Real>(
"wc")),
49 _db(getParam<
Real>(
"db"))
57 "Must set the molecular weight of the gas when using WilkeChang");
63 paramError(
"radius",
"Must set particle radius when using StokesEinstein");
74 Real Diffusivity = 0.0;
85 Real kg_to_g = 1000.0;
87 Real cm_to_m = 1. / m_to_cm;
88 Real mu_cgs =
mu * kg_to_g / m_to_cm;
89 Real poise_to_centipoise = 100;
90 mu_cgs = mu_cgs * poise_to_centipoise;
91 Real molar_volume =
_mw /
rho * Utility::pow<3>(m_to_cm);
92 Real molar_weight =
_mw * kg_to_g;
94 (mu_cgs *
std::pow(molar_volume, 0.6));
95 Diffusivity = Diffusivity * Utility::pow<2>(cm_to_m);
MetaPhysicL::DualNumber< V, D, asd > abs(const MetaPhysicL::DualNumber< V, D, asd > &a)
registerMooseObject("ScalarTransportApp", GasLiquidMassTransfer)
const Real _radius
Particle radius [m].
void paramError(const std::string ¶m, Args... args) const
static InputParameters validParams()
const Real _diameter
Diameter of the flow channel [m].
static InputParameters validParams()
Computes the mass transfer coefficient of a gas/liquid interface.
static const std::string temperature
const Real _wc
Constant in the Wilke-Chang model.
static constexpr Real _kB
Boltzman constant [J/K].
GasLiquidMassTransfer(const InputParameters ¶meters)
const SinglePhaseFluidProperties & _fp
fluid properties user object
Common class for single phase fluid properties.
const Real _db
Dittus-Boelter leading coefficient.
const Real _phi
Association parameter for Wilke-Chang model.
Equationlist
Enum used to select the type.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
static const std::string pressure
const Real _mw
Molecular weight of fluid [kg/mol].
enum GasLiquidMassTransfer::Equationlist _equation_list
virtual Real mtc(Real pressure, Real temperature, Real fluid_velocity) const
bool isParamSetByUser(const std::string &name) const
MooseUnits pow(const MooseUnits &, int)