24 "Reconstructed solution values for the 1-D, 1-phase, variable-area Euler equations");
33 "Flow channel direction material property name");
36 "Name of fluid properties user object");
45 _A_avg(adCoupledValue(
"A_elem")),
46 _A_linear(adCoupledValue(
"A_linear")),
47 _rhoA_avg(adCoupledValue(
"rhoA")),
48 _rhouA_avg(adCoupledValue(
"rhouA")),
49 _rhoEA_avg(adCoupledValue(
"rhoEA")),
51 _A_var(getVar(
"A_elem", 0)),
52 _rhoA_var(getVar(
"rhoA", 0)),
53 _rhouA_var(getVar(
"rhouA", 0)),
54 _rhoEA_var(getVar(
"rhoEA", 0)),
58 _rhoA(declareADProperty<
Real>(
"rhoA")),
59 _rhouA(declareADProperty<
Real>(
"rhouA")),
60 _rhoEA(declareADProperty<
Real>(
"rhoEA")),
89 auto W = FlowModel1PhaseUtils::computePrimitiveSolutionVector<true>(U_avg,
_fp);
95 W[m] = W[m] + slopes[m] * delta_x;
99 FlowModel1PhaseUtils::computeConservativeSolutionVector<true>(W,
_A_linear[
_qp],
_fp);
111 return FlowModel1PhaseUtils::computePrimitiveSolutionVector<true>(U,
_fp);
const MooseArray< Point > & _q_point
ADMaterialProperty< Real > & _rhoA
virtual void computeQpProperties() override
ADMaterialProperty< Real > & _rhouA
const ADVariableValue & _rhoA_avg
static InputParameters validParams()
registerMooseObject("ThermalHydraulicsApp", ADRDG3EqnMaterial)
const ADVariableValue & _A_avg
Cross-sectional area, piecewise constant.
static InputParameters validParams()
const ESlopeReconstructionType _scheme
Slope reconstruction scheme.
static InputParameters validParams()
No reconstruction; Godunov scheme.
virtual std::vector< ADReal > computeElementPrimitiveVariables(const Elem *elem) const override
Computes the cell-average primitive variable values for an element.
const MaterialProperty< RealVectorValue > & _dir
Flow channel direction.
Common class for single phase fluid properties.
const ADVariableValue & _rhoEA_avg
static const unsigned int N_FLUX_INPUTS
Number of numerical flux function inputs for 1D.
MooseVariable * _rhouA_var
static const unsigned int N_PRIM_VARS
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
ADRDG3EqnMaterial(const InputParameters ¶meters)
std::vector< MooseVariable * > _U_vars
Solution variables vector.
Interface class for 1-D slope reconstruction.
MooseVariable * _rhoA_var
const ADVariableValue & _A_linear
Cross-sectional area, linear.
MooseVariable * _rhoEA_var
const SinglePhaseFluidProperties & _fp
fluid properties user object
const ADVariableValue & _rhouA_avg
std::vector< GenericReal< is_ad > > getElementSlopes(const Elem *elem) const
Gets limited slopes for the primitive variables in the 1-D direction.
Reconstructed solution values for the 1-D, 1-phase, variable-area Euler equations.
const Elem *const & _current_elem
ADMaterialProperty< Real > & _rhoEA