20 params.
addParam<FunctionName>(
"initial_mass_fraction",
21 "Initial mass fraction of the secondary gas");
25 "scaling_factor_xirhoA", 1.0,
"Scaling factor for the secondary component mass equation");
26 params.
addParam<
Real>(
"scaling_factor_rhoA", 1.0,
"Scaling factor for the mixture mass equation");
27 params.
addParam<
Real>(
"scaling_factor_rhouA", 1.0,
"Scaling factor for the momentum equation");
28 params.
addParam<
Real>(
"scaling_factor_rhoEA", 1.0,
"Scaling factor for the energy equation");
30 "scaling_factor_xirhoA scaling_factor_rhoA scaling_factor_rhouA scaling_factor_rhoEA",
46 if (dynamic_cast<const VaporMixtureFluidProperties *>(&
fp) ==
nullptr)
47 logError(
"The supplied fluid properties object must be of type " 48 "'VaporMixtureFluidProperties'.");
54 return "FlowModelGasMix";
57 std::vector<std::string>
60 return {
"initial_p",
"initial_T",
"initial_vel",
"initial_mass_fraction"};
virtual void checkFluidProperties() const override
Logs an error if the fluid properties is not valid.
T & getUserObject(const std::string &name, unsigned int tid=0) const
THMProblem & getTHMProblem() const
Gets the THM problem.
virtual std::vector< std::string > ICParameters() const override
Returns the names of the IC parameters.
Flow channel containing a mixture of two gases.
void logError(Args &&... args) const
Logs an error.
static InputParameters validParams()
virtual std::string flowModelClassName() const override
Returns the flow model class name.
const UserObjectName & _fp_name
Name of fluid properties user object.
static InputParameters validParams()
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
FlowChannelGasMix(const InputParameters ¶ms)
registerMooseObject("ThermalHydraulicsApp", FlowChannelGasMix)
Base class for single-phase flow channels.