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 Point & )
const 57 const ADReal vel = rhouA / rhoA;
65 const ADReal v0 = 1.0 / rho0;
70 const ADReal h = h0 - 0.5 * vel * vel;
75 const ADReal E = e + 0.5 * vel * vel;
const Real & _T0
Specified stagnation temperature.
static InputParameters validParams()
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.
virtual std::vector< ADReal > getGhostCellSolution(const std::vector< ADReal > &U1, const Point &point) const override
Gets the solution vector in the ghost cell.
const Real & _normal
Outward normal.
registerMooseObject("ThermalHydraulicsApp", ADBoundaryFlux3EqnGhostStagnationPressureTemperature)