24 "Computes a boundary flux from a specified mass flow rate and temperature for the 1-D, " 25 "1-phase, variable-area Euler equations using a ghost cell");
30 "passives",
"Specified passive transport functions [amount/m^3]");
31 params.
addParam<
bool>(
"reversible",
true,
"True for reversible, false for pure inlet");
34 "Name of single-phase fluid properties user object");
44 _rhouA(getParam<
Real>(
"mass_flow_rate")),
45 _T(getParam<
Real>(
"T")),
46 _reversible(getParam<bool>(
"reversible")),
50 const auto & passives = getParam<std::vector<FunctionName>>(
"passives");
59 const Point & point)
const 71 const ADReal vel = rhouA / rhoA;
72 const ADReal E = rhoEA / rhoA;
73 const ADReal e = E - 0.5 * vel * vel;
79 const ADReal E_b = e_b + 0.5 * vel_b * vel_b;
static InputParameters validParams()
registerMooseObject("ThermalHydraulicsApp", ADBoundaryFlux3EqnGhostMassFlowRateTemperature)
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.
unsigned int _n_passives
Number of passive transport variables.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
const Function & getFunctionByName(const FunctionName &name) const
bool isInlet(Real vel, Real normal)
Determine if inlet boundary condition should be applied.
IntRange< T > make_range(T beg, T end)
virtual std::vector< ADReal > getGhostCellSolution(const std::vector< ADReal > &U, const Point &point) const override
Gets the solution vector in the ghost cell.
const Real & _normal
Outward normal.
std::vector< const Function * > _passives_fn
Passive transport functions.