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)),
56 _rhoA(declareProperty<
Real>(
"rhoA")),
57 _rhouA(declareProperty<
Real>(
"rhouA")),
58 _rhoEA(declareProperty<
Real>(
"rhoEA")),
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;
const MooseArray< Point > & _q_point
RDG3EqnMaterial(const InputParameters ¶meters)
const VariableValue & _A_avg
Cross-sectional area, piecewise constant.
Reconstructed solution values for the 1-D, 1-phase, variable-area Euler equations.
virtual void computeQpProperties() override
static InputParameters validParams()
MooseVariable * _rhouA_var
MaterialProperty< Real > & _rhouA
OutputData getElementalValue(const Elem *elem, unsigned int idx=0) const
MooseVariable * _rhoA_var
const VariableValue & _A_linear
Cross-sectional area, linear.
static InputParameters validParams()
const VariableValue & _rhouA_avg
Common class for single phase fluid properties.
const SinglePhaseFluidProperties & _fp
fluid properties user object
const VariableValue & _rhoA_avg
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
static const unsigned int _n_slopes
Number of slopes.
static const std::string v
static InputParameters validParams()
OutputData getElementalValueOld(const Elem *elem, unsigned int idx=0) const
Interface class for 1-D slope reconstruction.
virtual std::vector< Real > computeElementPrimitiveVariables(const Elem *elem) const override
Computes the cell-average primitive variable values for an element.
MaterialProperty< Real > & _rhoA
std::vector< GenericReal< is_ad > > getElementSlopes(const Elem *elem) const
Gets limited slopes for the primitive variables in the 1-D direction.
registerMooseObject("ThermalHydraulicsApp", RDG3EqnMaterial)
const VariableValue & _rhoEA_avg
MooseVariable * _rhoEA_var
const Elem *const & _current_elem
MaterialProperty< Real > & _rhoEA
const MaterialProperty< RealVectorValue > & _dir
Flow channel direction.