23 params.
addRequiredParam<
bool>(
"on",
"Flag determining if turbine is operating or not");
26 params.
addClassDescription(
"Computes and caches flux and residual vectors for a 1-phase turbine");
35 _on(getParam<bool>(
"on")),
36 _W_dot(getParam<
Real>(
"W_dot"))
51 const Point di =
_dir[0];
66 const ADReal p_in =
_fp.p_from_v_e(v_in, e_in);
67 const ADReal T_in =
_fp.T_from_v_e(v_in, e_in);
68 const ADReal h_in =
_fp.h_from_p_T(p_in, T_in);
const ADVariableValue & _rhoA
rho*A of the connected flow channels
static const std::string cv
std::vector< ADReal > _cached_junction_var_values
void v_from_rhoA_A(Real rhoA, Real A, Real &v, Real &dv_drhoA)
Computes specific volume and its derivatives from rho*A, and area.
const SinglePhaseFluidProperties & _fp
Single-phase fluid properties user object.
Computes and caches flux and residual vectors for a 1-phase junction that connects flow channels that...
std::vector< ADReal > _residual
Cached scalar residual vector.
static InputParameters validParams()
virtual void computeFluxesAndResiduals(const unsigned int &c) override
Computes and stores the fluxes, the scalar residuals, and their Jacobians.
const MaterialProperty< RealVectorValue > & _dir
Direction of the element connected to the junction.
static const std::string cp
Computes and caches flux and residual vectors for a 1-phase turbine.
const ADVariableValue & _rhoEA
rho*E*A of the connected flow channels
ADSimpleTurbine1PhaseUserObject(const InputParameters ¶ms)
static InputParameters validParams()
const ADVariableValue & _A
Cross-sectional area of connected flow channels.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
virtual void computeFluxesAndResiduals(const unsigned int &c) override
Computes and stores the fluxes, the scalar residuals, and their Jacobians.
registerMooseObject("ThermalHydraulicsApp", ADSimpleTurbine1PhaseUserObject)
const ADVariableValue & _rhouA
rho*u*A of the connected flow channels
const bool & _on
Flag determining if turbine is operating or not.
MooseUnits pow(const MooseUnits &, int)
const Real & _W_dot
Turbine power, [W].