22 params.
addClassDescription(
"Computes boundary flux from a specified stagnation pressure and " 23 "temperature for the 1-D, 1-phase, variable-area Euler equations");
27 params.
addParam<
bool>(
"reversible",
true,
"True for reversible, false for pure inlet");
30 "Name of fluid properties user object");
41 _p0(getParam<
Real>(
"p0")),
42 _T0(getParam<
Real>(
"T0")),
43 _reversible(getParam<bool>(
"reversible")),
50 const std::vector<ADReal> & U)
const 56 const ADReal vel = rhouA / rhoA;
64 const ADReal v0 = 1.0 / rho0;
69 const ADReal h = h0 - 0.5 * vel * vel;
72 const ADReal rho =
_fp.rho_from_p_s(p, s);
73 const ADReal e =
_fp.e_from_p_rho(p, rho);
74 const ADReal E = e + 0.5 * vel * vel;
84 const ADReal E =
_fp.e_from_p_rho(
_p0, rho) + 0.5 * vel * vel;
const Real & _T0
Specified stagnation temperature.
static InputParameters validParams()
virtual std::vector< ADReal > getGhostCellSolution(const std::vector< ADReal > &U1) const override
Gets the solution vector in the ghost cell.
Computes boundary flux from a specified stagnation pressure and temperature for the 1-D...
const SinglePhaseFluidProperties & _fp
Fluid properties object.
const Real & _p0
Specified stagnation pressure.
const bool & _reversible
Reversibility.
ADBoundaryFlux3EqnGhostStagnationPressureTemperature(const InputParameters ¶meters)
Computes boundary fluxes for the 1-D, variable-area Euler equations using a numerical flux user objec...
Common class for single phase fluid properties.
static InputParameters validParams()
static const unsigned int N_FLUX_INPUTS
Number of numerical flux function inputs for 1D.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
bool isInlet(Real vel, Real normal)
Determine if inlet boundary condition should be applied.
const Real & _normal
Outward normal.
registerMooseObject("ThermalHydraulicsApp", ADBoundaryFlux3EqnGhostStagnationPressureTemperature)