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