35 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 pump.
const Real & _inertia_const
Pump inertia constant.
ADReal getHydraulicTorque() const
Hydraulic torque computed in the 1-phase shaft-connected pump.
static InputParameters validParams()
const Real & _transition_width
Transition width for the sign of the frictional torque when speed is 0.
const ADWeightedTransition _transition_friction
Transition for the sign of the frictional torque when speed is 0.
std::vector< DenseMatrix< Real > > _residual_jacobian_omega_var
Jacobian entries of junction variables wrt shaft variables.
virtual void initialSetup() override
const Real & _omega_rated
Rated pump speed.
const Real & _tau_fr_const
Pump friction constant.
ADReal getFrictionTorque() const
Friction torque computed in the 1-phase shaft-connected pump.
virtual void initialize() override
const Real & _density_rated
Rated pump density.
ADReal _hydraulic_torque
Pump hydraulic torque.
virtual void execute() override
const std::vector< Real > & _inertia_coeff
Pump inertia coefficients.
const Real & _head_rated
Rated pump head.
const Real & _g
Gravity constant.
virtual void threadJoin(const UserObject &uo) override
ADReal _friction_torque
Pump friction torque.
const Real & _volumetric_rated
Rated pump volumetric flow rate.
ADReal getPumpHead() const
Pump head computed in the 1-phase shaft-connected pump.
const Function & _head
Function to compute data for pump head.
const Real & _torque_rated
Rated pump torque.
virtual void finalize() override
const Real & _speed_cr_fr
Pump speed threshold for friction.
const ADVariableValue & _omega
Shaft speed.
const Real & _speed_cr_I
Pump speed threshold for inertia.
const std::string & _pump_name
Pump name.
virtual void computeFluxesAndResiduals(const unsigned int &c) override
Computes and stores the fluxes, the scalar residuals, and their Jacobians.
ADReal _pump_head
Pump head.
Point _di_out
Direction of the pump outlet.
const Function & _torque_hydraulic
Function to compute data for pump torque.
const std::vector< Real > & _tau_fr_coeff
Pump friction coefficients.
Computes and caches flux and residual vectors for a 1-phase volume junction.
Weighted transition between two functions of one variable.
Common class for single phase fluid properties.
VariableValueTempl< true > ADVariableValue