23 "Computes a boundary flux from a specified velocity and temperature for the 1-D, " 24 "1-phase, variable-area Euler equations using a ghost cell");
28 params.
addParam<
bool>(
"reversible",
true,
"True for reversible, false for pure inlet");
31 "Name of single-phase fluid properties user object");
41 _vel(getParam<
Real>(
"vel")),
42 _T(getParam<
Real>(
"T")),
43 _reversible(getParam<bool>(
"reversible")),
50 const std::vector<ADReal> & U)
const 62 const ADReal vel = rhouA / rhoA;
63 const ADReal E = rhoEA / rhoA;
64 const ADReal e = E - 0.5 * vel * vel;
65 const ADReal p =
_fp.p_from_v_e(1.0 / rho, e);
69 const ADReal e_b =
_fp.e_from_p_rho(p, rho_b);
static InputParameters validParams()
static InputParameters validParams()
const Real & _T
Specified temperature.
Computes boundary fluxes for the 1-D, variable-area Euler equations using a numerical flux user objec...
const SinglePhaseFluidProperties & _fp
Fluid properties object.
Common class for single phase fluid properties.
static const unsigned int N_FLUX_INPUTS
Number of numerical flux function inputs for 1D.
ADBoundaryFlux3EqnGhostVelocityTemperature(const InputParameters ¶meters)
const Real & _vel
Specified velocity.
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.
registerMooseObject("ThermalHydraulicsApp", ADBoundaryFlux3EqnGhostVelocityTemperature)
virtual std::vector< ADReal > getGhostCellSolution(const std::vector< ADReal > &U) const override
Gets the solution vector in the ghost cell.
const bool & _reversible
Reversible flag.
const Real & _normal
Outward normal.
Computes a boundary flux from a specified velocity and temperature for the 1-D, 1-phase, variable-area Euler equations using a ghost cell.