34 virtual void execute()
override;
DualNumber< Real, DNDerivativeType, true > ADReal
Base class for computing numerical fluxes for FlowModelSinglePhase.
Interface class for user objects that are connected to a shaft.
Computes and caches flux and residual vectors for a 1-phase turbine.
const Real & _tau_fr_const
Turbine friction constant.
const std::vector< Real > & _inertia_coeff
Turbine inertia coefficients.
ADReal _delta_p
Turbine pressure drop.
virtual void finalize() override
virtual void initialSetup() override
ADReal getTurbineDeltaP() const
Turbine head computed in the 1-phase shaft-connected turbine.
ADReal _driving_torque
Turbine driving torque.
ADReal _friction_torque
Turbine friction torque.
virtual void initialize() override
ADReal getFrictionTorque() const
Friction torque computed in the 1-phase shaft-connected turbine.
const ADVariableValue & _omega
Connected shaft speed.
virtual void computeFluxesAndResiduals(const unsigned int &c) override
Computes and stores the fluxes, the scalar residuals, and their Jacobians.
ADReal _flow_coeff
Turbine flow coefficient - independent variable in user supplied head and power functions.
const Function & _power_coefficient
Function to compute data for turbine power.
ADReal getDrivingTorque() const
Driving torque computed in the 1-phase shaft-connected turbine.
const Real & _speed_cr_I
Turbine speed threshold for inertia.
const Real & _speed_cr_fr
Turbine speed threshold for friction.
const Real & _D_wheel
Turbine wheel diameter.
ADReal _power
Turbine power.
Point _di_out
Direction of the turbine outlet.
ADReal getFlowCoefficient() const
Flow coefficient computed in the 1-phase shaft-connected turbine.
ADReal getTurbinePower() const
Turbine power computed in the 1-phase shaft-connected turbine.
static InputParameters validParams()
const Real & _inertia_const
Turbine inertia constant.
virtual void threadJoin(const UserObject &uo) override
virtual void execute() override
const std::string & _turbine_name
Turbine name.
std::vector< DenseMatrix< Real > > _residual_jacobian_omega_var
Jacobian entries of junction variables wrt shaft variables.
const Function & _head_coefficient
Function to compute data for turbine head.
const std::vector< Real > & _tau_fr_coeff
Turbine friction coefficients.
const Real & _omega_rated
Rated turbine speed.
Computes and caches flux and residual vectors for a 1-phase volume junction.
Common class for single phase fluid properties.
VariableValueTempl< true > ADVariableValue