23 "direction",
"The direction of the flow channel material property");
24 params.
addRequiredParam<MaterialPropertyName>(
"rho",
"Density material property");
25 params.
addRequiredParam<MaterialPropertyName>(
"vel",
"Velocity material property");
26 params.
addRequiredParam<MaterialPropertyName>(
"p",
"Pressure material property");
34 _A(coupledValue(
"A")),
38 _rho(getMaterialProperty<
Real>(
"rho")),
39 _drho_darhoA(getMaterialPropertyDerivativeTHM<
Real>(
"rho",
"arhoA")),
41 _vel(getMaterialProperty<
Real>(
"vel")),
42 _dvel_darhoA(getMaterialPropertyDerivativeTHM<
Real>(
"vel",
"arhoA")),
43 _dvel_darhouA(getMaterialPropertyDerivativeTHM<
Real>(
"vel",
"arhouA")),
45 _p(getMaterialProperty<
Real>(
"p")),
46 _dp_darhoA(getMaterialPropertyDerivativeTHM<
Real>(
"p",
"arhoA")),
47 _dp_darhouA(getMaterialPropertyDerivativeTHM<
Real>(
"p",
"arhouA")),
48 _dp_darhoEA(getMaterialPropertyDerivativeTHM<
Real>(
"p",
"arhoEA")),
50 _arhoA_var_number(coupled(
"arhoA")),
51 _arhouA_var_number(coupled(
"arhouA")),
52 _arhoEA_var_number(coupled(
"arhoEA"))
59 return -(
_rho[_qp] *
_vel[_qp] *
_vel[_qp] +
_p[_qp]) *
_A[_qp] *
_dir[_qp] * _grad_test[_i][_qp];
66 _dir[_qp] * _phi[_j][_qp] * _grad_test[_i][_qp];
76 _A[_qp] *
_dir[_qp] * _phi[_j][_qp] * _grad_test[_i][_qp];
80 return -
_dp_darhoEA[_qp] *
_A[_qp] *
_dir[_qp] * _phi[_j][_qp] * _grad_test[_i][_qp];
const MaterialProperty< Real > & _dp_darhoA
const MaterialProperty< Real > & _rho
static InputParameters validParams()
const MaterialProperty< Real > & _dvel_darhouA
Momentum flux for 1-phase flow.
registerMooseObject("ThermalHydraulicsApp", OneD3EqnMomentumFlux)
const MaterialProperty< Real > & _drho_darhoA
virtual Real computeQpOffDiagJacobian(unsigned int jvar)
const unsigned int _arhoEA_var_number
const MaterialProperty< Real > & _dp_darhoEA
const unsigned int _arhoA_var_number
OneD3EqnMomentumFlux(const InputParameters ¶meters)
const MaterialProperty< Real > & _p
virtual Real computeQpResidual()
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
static InputParameters validParams()
const MaterialProperty< Real > & _vel
const MaterialProperty< Real > & _dp_darhouA
virtual Real computeQpJacobian()
const MaterialProperty< RealVectorValue > & _dir
The direction of the flow channel.
const MaterialProperty< Real > & _dvel_darhoA