23 "Computes a boundary flux from a specified mass flow rate 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 _rhouA(getParam<
Real>(
"mass_flow_rate")),
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);
70 const ADReal E_b = e_b + 0.5 * vel_b * vel_b;
static InputParameters validParams()
registerMooseObject("ThermalHydraulicsApp", ADBoundaryFlux3EqnGhostMassFlowRateTemperature)
virtual std::vector< ADReal > getGhostCellSolution(const std::vector< ADReal > &U) const override
Gets the solution vector in the ghost cell.
Computes a boundary flux from a specified mass flow rate and temperature for the 1-D, 1-phase, variable-area Euler equations using a ghost cell.
const SinglePhaseFluidProperties & _fp
Fluid properties object.
const Real & _rhouA
Specified mass flow rate.
const bool & _reversible
Reversible flag.
static InputParameters validParams()
ADBoundaryFlux3EqnGhostMassFlowRateTemperature(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.
const Real & _T
Specified temperature.
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.