22 params.
addClassDescription(
"Computes boundary flux from density and velocity for the 3-equation " 23 "model using a ghost cell approach.");
27 params.
addParam<
bool>(
"reversible",
true,
"True for reversible, false for pure inlet");
30 "1-phase fluid properties user object name");
41 _rho(getParam<
Real>(
"rho")),
42 _vel(getParam<
Real>(
"vel")),
43 _reversible(getParam<bool>(
"reversible")),
46 getParam<UserObjectName>(
"fluid_properties")))
52 const std::vector<ADReal> & U_interior)
const 65 const ADReal vel = rhouA / rhoA;
66 const ADReal E = rhoEA / rhoA;
67 const ADReal e = E - 0.5 * vel * vel;
68 const ADReal p =
_fp.p_from_v_e(1.0 / rho, e);
static InputParameters validParams()
const SinglePhaseFluidProperties & _fp
Fluid properties object.
virtual std::vector< ADReal > getGhostCellSolution(const std::vector< ADReal > &U_interior) const override
Gets the solution vector in the ghost cell.
registerMooseObject("ThermalHydraulicsApp", ADBoundaryFlux3EqnGhostDensityVelocity)
static InputParameters validParams()
const bool & _reversible
Reversibility.
const Real & _vel
Specified velocity.
Computes boundary flux from densities and velocities for the 3-equation model using a ghost cell appr...
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 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 & _rho
Specified density.
const Real & _normal
Outward normal.
ADBoundaryFlux3EqnGhostDensityVelocity(const InputParameters ¶meters)