22 "Reconstructed solution values for the 1-D, 1-phase, variable-area Euler equations");
31 "Flow channel direction material property name");
34 "Name of fluid properties user object");
43 _A_avg(coupledValue(
"A_elem")),
44 _A_linear(coupledValue(
"A_linear")),
45 _rhoA_avg(coupledValue(
"rhoA")),
46 _rhouA_avg(coupledValue(
"rhouA")),
47 _rhoEA_avg(coupledValue(
"rhoEA")),
49 _A_var(getVar(
"A_elem", 0)),
50 _rhoA_var(getVar(
"rhoA", 0)),
51 _rhouA_var(getVar(
"rhouA", 0)),
52 _rhoEA_var(getVar(
"rhoEA", 0)),
54 _dir(getMaterialProperty<RealVectorValue>(
"direction")),
56 _rhoA(declareProperty<Real>(
"rhoA")),
57 _rhouA(declareProperty<Real>(
"rhouA")),
58 _rhoEA(declareProperty<Real>(
"rhoEA")),
69 const Real p_slope = slopes[
PRESSURE];
70 const Real vel_slope = slopes[
VELOCITY];
76 const Real v_avg = 1.0 / rho_avg;
78 const Real p_avg =
_fp.p_from_v_e(v_avg, e_avg);
79 const Real T_avg =
_fp.T_from_v_e(v_avg, e_avg);
83 const Real
p = p_avg + p_slope * delta_x;
84 const Real vel = vel_avg + vel_slope * delta_x;
85 const Real
T = T_avg + T_slope * delta_x;
88 const Real
rho =
_fp.rho_from_p_T(
p,
T);
89 const Real e =
_fp.e_from_p_rho(
p,
rho);
90 const Real E = e + 0.5 * vel * vel;
101 Real
A, rhoA, rhouA, rhoEA;
119 const Real
rho = rhoA /
A;
120 const Real vel = rhouA / rhoA;
121 const Real
v = 1.0 /
rho;
122 const Real e = rhoEA / rhoA - 0.5 * vel * vel;
registerMooseObject("ThermalHydraulicsApp", RDG3EqnMaterial)
static InputParameters validParams()
const Elem *const & _current_elem
const MooseArray< Point > & _q_point
DofValue getElementalValue(const Elem *elem, unsigned int idx=0) const
DofValue getElementalValueOld(const Elem *elem, unsigned int idx=0) const
Reconstructed solution values for the 1-D, 1-phase, variable-area Euler equations.
const SinglePhaseFluidProperties & _fp
fluid properties user object
static InputParameters validParams()
MooseVariable * _rhoA_var
const VariableValue & _A_linear
Cross-sectional area, linear.
const VariableValue & _rhoEA_avg
const VariableValue & _A_avg
Cross-sectional area, piecewise constant.
MaterialProperty< Real > & _rhoEA
MaterialProperty< Real > & _rhouA
static const unsigned int _n_slopes
Number of slopes.
const MaterialProperty< RealVectorValue > & _dir
Flow channel direction.
const VariableValue & _rhouA_avg
virtual std::vector< Real > computeElementPrimitiveVariables(const Elem *elem) const override
Computes the cell-average primitive variable values for an element.
RDG3EqnMaterial(const InputParameters ¶meters)
MooseVariable * _rhoEA_var
MaterialProperty< Real > & _rhoA
virtual void computeQpProperties() override
const VariableValue & _rhoA_avg
MooseVariable * _rhouA_var
Common class for single phase fluid properties.
Interface class for 1-D slope reconstruction.
static InputParameters validParams()
std::vector< GenericReal< is_ad > > getElementSlopes(const Elem *elem) const
Gets limited slopes for the primitive variables in the 1-D direction.