22 "Computes internal side flux for the 1-D, 1-phase, variable-area Euler equations using a "
23 "centered average of the left and right side fluxes");
26 "Name for fluid properties user object");
40 const std::vector<ADReal> & U2,
41 const RealVectorValue & nLR,
42 const RealVectorValue & t1,
43 const RealVectorValue & t2,
44 std::vector<ADReal> & FL,
45 std::vector<ADReal> & FR)
const
47 const std::vector<ADReal> flux1 =
computeFlux(U1, nLR, t1, t2);
48 const std::vector<ADReal> flux2 =
computeFlux(U2, nLR, t1, t2);
52 FL[i] = 0.5 * (flux1[i] + flux2[i]);
59 const RealVectorValue & n,
60 const RealVectorValue & t1,
61 const RealVectorValue & t2)
const
72 const ADReal un = uvec * n;
73 const ADReal ut1 = uvec * t1;
74 const ADReal ut2 = uvec * t2;
76 const ADReal E = rhoEA / rhoA;
77 const ADReal e = E - 0.5 * uvec * uvec;
registerMooseObject("ThermalHydraulicsApp", ADNumericalFlux3EqnCentered)
DualNumber< Real, DNDerivativeType, true > ADReal
Base class for computing numerical fluxes for FlowModelSinglePhase.
static InputParameters validParams()
Computes internal side flux for the 1-D, 1-phase, variable-area Euler equations using a centered aver...
virtual void calcFlux(const std::vector< ADReal > &U1, const std::vector< ADReal > &U2, const RealVectorValue &nLR, const RealVectorValue &t1, const RealVectorValue &t2, std::vector< ADReal > &FL, std::vector< ADReal > &FR) const override
Calculates the 3D flux vectors given "left" and "right" states.
ADNumericalFlux3EqnCentered(const InputParameters ¶meters)
std::vector< ADReal > computeFlux(const std::vector< ADReal > &U, const RealVectorValue &n, const RealVectorValue &t1, const RealVectorValue &t2) const
static InputParameters validParams()
const SinglePhaseFluidProperties & _fp
fluid properties user object
Common class for single phase fluid properties.
static const unsigned int N_FLUX_OUTPUTS
Number of numerical flux function outputs for 3D.