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)),
56 _dir(getMaterialProperty<RealVectorValue>(
THM::DIRECTION)),
58 _xirhoA(declareADProperty<Real>(
THM::XIRHOA)),
59 _rhoA(declareADProperty<Real>(
THM::RHOA)),
60 _rhouA(declareADProperty<Real>(
THM::RHOUA)),
61 _rhoEA(declareADProperty<Real>(
THM::RHOEA)),
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);
registerMooseObject("ThermalHydraulicsApp", SlopeReconstructionGasMixMaterial)
static InputParameters validParams()
const Elem *const & _current_elem
const MooseArray< Point > & _q_point
Interface class for 1-D slope reconstruction.
const ESlopeReconstructionType _scheme
Slope reconstruction scheme.
@ None
No reconstruction; Godunov scheme.
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.
Computes reconstructed solution values for FlowModelGasMix.
ADMaterialProperty< Real > & _rhoA
const MaterialProperty< RealVectorValue > & _dir
Flow channel direction.
MooseVariable * _rhoEA_var
ADMaterialProperty< Real > & _rhouA
const ADVariableValue & _A_linear
Cross-sectional area, linear.
std::vector< MooseVariable * > _U_vars
Solution variables vector.
static InputParameters validParams()
ADMaterialProperty< Real > & _rhoEA
ADMaterialProperty< Real > & _xirhoA
MooseVariable * _xirhoA_var
const ADVariableValue & _xirhoA_avg
const ADVariableValue & _A_avg
Cross-sectional area, piecewise constant.
const ADVariableValue & _rhoA_avg
virtual void computeQpProperties() override
MooseVariable * _rhouA_var
virtual std::vector< ADReal > computeElementPrimitiveVariables(const Elem *elem) const override
Computes the cell-average primitive variable values for an element.
const VaporMixtureFluidProperties & _fp
fluid properties user object
const ADVariableValue & _rhouA_avg
SlopeReconstructionGasMixMaterial(const InputParameters ¶meters)
MooseVariable * _rhoA_var
const ADVariableValue & _rhoEA_avg
Base class for fluid properties of vapor mixtures.
static const unsigned int N_FLUX_INPUTS
Number of numerical flux function inputs.
static const unsigned int N_PRIM_VARS