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,
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]);
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;
79 const ADReal H = E + p / rho;
static const unsigned int N_FLUX_OUTPUTS
Number of numerical flux function outputs for 3D.
std::vector< ADReal > computeFlux(const std::vector< ADReal > &U, const RealVectorValue &n, const RealVectorValue &t1, const RealVectorValue &t2) const
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)
static InputParameters validParams()
const SinglePhaseFluidProperties & _fp
fluid properties user object
Common class for single phase fluid properties.
registerMooseObject("ThermalHydraulicsApp", ADNumericalFlux3EqnCentered)
Base class for computing numerical fluxes for FlowModelSinglePhase.
Computes internal side flux for the 1-D, 1-phase, variable-area Euler equations using a centered aver...
static const std::string v
static InputParameters validParams()