22 "Two-phase fluid with single NCG using partial pressure mixture model");
24 params.
addRequiredParam<UserObjectName>(
"fp_ncg",
"NCG fluid properties object");
41 const std::string class_name =
"IdealGasMixtureFluidProperties";
43 params.
set<std::vector<UserObjectName>>(
"component_fluid_properties") = {
56 const std::vector<Real> molar_fractions = {1.0 - molar_fraction_ncg, molar_fraction_ncg};
57 const auto mass_fractions =
59 return mass_fractions[1];
std::vector< Real > _molar_masses
Molar masses for each vapor in mixture.
Base class for fluid properties of vapor mixtures.
const UserObjectName _2phase_name
Two-phase fluid properties user object name.
T & getUserObject(const std::string &name, unsigned int tid=0) const
registerMooseObject("FluidPropertiesApp", TwoPhaseNCGPartialPressureFluidProperties)
const SinglePhaseFluidProperties & _fp_ncg
NCG fluid properties.
Two-phase fluid with single NCG using partial pressure mixture model.
TwoPhaseNCGPartialPressureFluidProperties(const InputParameters ¶meters)
Base class for fluid properties used with 2-phase flow with non-condensable gases (NCGs) present...
Real x_sat_ncg_from_p_T(Real p, Real T) const
Computes the NCG mass fraction with the CG saturated at the given temperature.
virtual Real molarMass() const
Molar mass [kg/mol].
InputParameters getValidParams(const std::string &name) const
const UserObjectName & getVaporName() const override
Returns the name of the vapor single-phase fluid properties object.
static InputParameters validParams()
Base class for fluid properties used with two-phase flow.
Common class for single phase fluid properties.
virtual Real p_sat(Real T) const =0
Computes the saturation pressure at a temperature.
const SinglePhaseFluidProperties * _fp_vapor_primary
Primary vapor fluid properties.
std::vector< Real > massFractionsFromMolarFractions(const std::vector< Real > &molar_fractions, const std::vector< Real > &molar_masses) const
Computes the mass fractions for given molar fractions and molar masses.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
FEProblemBase & _fe_problem
virtual std::vector< std::shared_ptr< UserObject > > addUserObject(const std::string &user_object_name, const std::string &name, InputParameters ¶meters)
const VaporMixtureFluidProperties * _fp_vapor_mixture
Vapor mixture fluid properties user object.
const TwoPhaseFluidProperties * _fp_2phase
Two-phase fluid properties user object.
static InputParameters validParams()
const UserObjectName _vapor_mixture_name
Vapor mixture fluid properties user object name.