20 params.
addCoupledVar(
"beta",
"Remapped volume fraction of liquid");
25 params.
addRequiredParam<MaterialPropertyName>(
"mu",
"Dynamic viscosity property");
26 params.
addRequiredParam<MaterialPropertyName>(
"v",
"Specific volume property");
27 params.
addRequiredParam<MaterialPropertyName>(
"e",
"Specific internal energy property");
29 params.
addRequiredParam<UserObjectName>(
"fp_1phase",
"Single-phase fluid properties");
39 _mu_name(getParam<MaterialPropertyName>(
"mu")),
40 _mu(declareProperty<
Real>(_mu_name)),
41 _dmu_dbeta(isParamValid(
"beta") ? &declarePropertyDerivativeTHM<
Real>(_mu_name,
"beta")
43 _dmu_darhoA(declarePropertyDerivativeTHM<
Real>(_mu_name,
"arhoA")),
44 _dmu_darhouA(declarePropertyDerivativeTHM<
Real>(_mu_name,
"arhouA")),
45 _dmu_darhoEA(declarePropertyDerivativeTHM<
Real>(_mu_name,
"arhoEA")),
47 _v(getMaterialProperty<
Real>(
"v")),
48 _dv_dbeta(isParamValid(
"beta") ? &getMaterialPropertyDerivativeTHM<
Real>(
"v",
"beta")
50 _dv_darhoA(getMaterialPropertyDerivativeTHM<
Real>(
"v",
"arhoA")),
52 _e(getMaterialProperty<
Real>(
"e")),
53 _de_darhoA(getMaterialPropertyDerivativeTHM<
Real>(
"e",
"arhoA")),
54 _de_darhouA(getMaterialPropertyDerivativeTHM<
Real>(
"e",
"arhouA")),
55 _de_darhoEA(getMaterialPropertyDerivativeTHM<
Real>(
"e",
"arhoEA")),
68 (*_dmu_dbeta)[
_qp] = dmu_dv * (*_dv_dbeta)[
_qp];
MaterialProperty< Real > & _dmu_darhoA
const MaterialProperty< Real > & _dv_darhoA
registerMooseObject("ThermalHydraulicsApp", DynamicViscosityMaterial)
Computes dynamic viscosity.
const MaterialProperty< Real > & _de_darhoA
const MaterialProperty< Real > & _de_darhoEA
bool isParamValid(const std::string &name) const
virtual void computeQpProperties() override
static InputParameters validParams()
static InputParameters validParams()
const MaterialProperty< Real > & _e
Specific internal energy.
Common class for single phase fluid properties.
MaterialProperty< Real > & _dmu_darhoEA
MaterialProperty< Real > & _dmu_darhouA
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
MaterialProperty< Real > & _mu
const MaterialProperty< Real > & _v
Specific volume.
const MaterialProperty< Real > & _de_darhouA
DynamicViscosityMaterial(const InputParameters ¶meters)
const SinglePhaseFluidProperties & _fp_1phase
Single-phase fluid properties.