33 "The VaporMixtureFluidProperties object");
43 _A_avg(adCoupledValue(
"A_elem")),
44 _A_linear(adCoupledValue(
"A_linear")),
45 _xirhoA_avg(adCoupledValue(
"xirhoA")),
46 _rhoA_avg(adCoupledValue(
"rhoA")),
47 _rhouA_avg(adCoupledValue(
"rhouA")),
48 _rhoEA_avg(adCoupledValue(
"rhoEA")),
50 _A_var(getVar(
"A_elem", 0)),
51 _xirhoA_var(getVar(
"xirhoA", 0)),
52 _rhoA_var(getVar(
"rhoA", 0)),
53 _rhouA_var(getVar(
"rhouA", 0)),
54 _rhoEA_var(getVar(
"rhoEA", 0)),
93 auto W = FlowModelGasMixUtils::computePrimitiveSolution<true>(U_avg,
_fp);
99 W[m] = W[m] + slopes[m] * delta_x;
102 const auto U = FlowModelGasMixUtils::computeConservativeSolution<true>(W,
_A_linear[
_qp],
_fp);
115 return FlowModelGasMixUtils::computePrimitiveSolution<true>(U,
_fp);
const MooseArray< Point > & _q_point
Base class for fluid properties of vapor mixtures.
const ADVariableValue & _A_avg
Cross-sectional area, piecewise constant.
MooseVariable * _rhouA_var
const ADVariableValue & _rhouA_avg
std::vector< MooseVariable * > _U_vars
Solution variables vector.
static const unsigned int N_PRIM_VARS
MooseVariable * _xirhoA_var
const VaporMixtureFluidProperties & _fp
fluid properties user object
registerMooseObject("ThermalHydraulicsApp", SlopeReconstructionGasMixMaterial)
static InputParameters validParams()
static InputParameters validParams()
ADMaterialProperty< Real > & _xirhoA
const ADVariableValue & _A_linear
Cross-sectional area, linear.
const ESlopeReconstructionType _scheme
Slope reconstruction scheme.
ADMaterialProperty< Real > & _rhoEA
ADMaterialProperty< Real > & _rhouA
static InputParameters validParams()
No reconstruction; Godunov scheme.
const ADVariableValue & _xirhoA_avg
static const std::string DIRECTION
virtual void computeQpProperties() override
SlopeReconstructionGasMixMaterial(const InputParameters ¶meters)
const MaterialProperty< RealVectorValue > & _dir
Flow channel direction.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
const ADVariableValue & _rhoEA_avg
const ADVariableValue & _rhoA_avg
MooseVariable * _rhoEA_var
Interface class for 1-D slope reconstruction.
static const unsigned int N_FLUX_INPUTS
Number of numerical flux function inputs.
ADMaterialProperty< Real > & _rhoA
std::vector< GenericReal< is_ad > > getElementSlopes(const Elem *elem) const
Gets limited slopes for the primitive variables in the 1-D direction.
virtual std::vector< ADReal > computeElementPrimitiveVariables(const Elem *elem) const override
Computes the cell-average primitive variable values for an element.
const Elem *const & _current_elem
Computes reconstructed solution values for FlowModelGasMix.
MooseVariable * _rhoA_var