34 virtual void execute()
override;
ADReal _Rp
Pressure ratio.
const Real & _omega_rated
Rated compressor speed.
ADShaftConnectedCompressor1PhaseUserObject(const InputParameters ¶ms)
const std::vector< Real > & _speeds
Compressor speeds which correspond to Rp and eff function order.
const bool _treat_as_turbine
Treat the compressor as a turbine?
ADReal _delta_p
Compressor delta p.
std::vector< const Function * > _Rp_functions
Pressure ratio functions.
ADReal getDissipationTorque() const
Dissipation torque computed in the 1-phase shaft-connected compressor.
ADReal _isentropic_torque
Compressor isentropic torque.
const Real & _c0_rated
Rated compressor inlet stagnation sound speed.
ADReal _friction_torque
Compressor friction torque.
const std::vector< FunctionName > & _eff_function_names
Names of the adiabatic efficiency functions.
const std::vector< FunctionName > & _Rp_function_names
Names of the pressure ratio functions.
virtual void initialize() override
const Real & _tau_fr_const
Compressor friction constant.
std::vector< const Function * > _eff_functions
Adiabatic efficiency functions.
static InputParameters validParams()
ADReal _flow_rel_corr
relative corrected mass flow rate
virtual void initialSetup() override
ADReal getFrictionTorque() const
Friction torque computed in the 1-phase shaft-connected compressor.
const std::vector< Real > & _inertia_coeff
Compressor inertia coefficients.
ADReal getIsentropicTorque() const
Isentropic torque computed in the 1-phase shaft-connected compressor.
const Real & _Rp_min
Minimum pressure ratio.
const std::vector< Real > & _tau_fr_coeff
Compressor friction coefficients.
const Real & _inertia_const
Compressor inertia constant.
Common class for single phase fluid properties.
Point _di_out
Direction of the compressor outlet.
Base class for computing numerical fluxes for FlowModelSinglePhase.
ADReal getRelativeCorrectedSpeed() const
Gets the elative corrected shaft speed.
const Real & _Rp_max
Maximum pressure ratio.
Computes and caches flux and residual vectors for a 1-phase volume junction.
const Real & _speed_cr_I
Compressor speed threshold for inertia.
std::vector< DenseMatrix< Real > > _residual_jacobian_omega_var
Jacobian entries of junction variables wrt shaft variables.
ADReal getRelativeCorrectedMassFlowRate() const
Gets the relative corrected mass flow rate.
const unsigned int _n_speeds
Size of vector _speeds.
virtual void threadJoin(const UserObject &uo) override
const Real & _rho0_rated
Rated compressor inlet stagnation fluid density.
virtual void execute() override
Interface class for user objects that are connected to a shaft.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
ADReal getEfficiency() const
Gets the efficiency.
const Real & _mdot_rated
Rated compressor mass flow rate.
Computes and caches flux and residual vectors for a 1-phase compressor.
ADReal _dissipation_torque
Compressor dissipation torque.
ADReal _speed_rel_corr
relative corrected shaft speed
virtual void finalize() override
const ADVariableValue & _omega
ADReal getPressureRatio() const
Gets the pressure ratio.
ADReal getCompressorDeltaP() const
Compressor head computed in the 1-phase shaft-connected compressor.
const Real & _speed_cr_fr
Compressor speed threshold for friction.
const std::string & _compressor_name
Compressor name.
virtual void computeFluxesAndResiduals(const unsigned int &c) override
Computes and stores the fluxes, the scalar residuals, and their Jacobians.