CentrifugalPump - abhishekvraman/Propylean GitHub Wiki
DESCRIPTION:
Class to create object which represents a Centrifugal Pump. All the properties associated with a Centrifugal Pump used in the process industry to analyse can be accessed as object property.
SAMPLE USE CASES:
# Importing and setting basic properties.
from propylean.equipment.rotary import CentrifugalPump
# or
from propylean import CentrifugalPump
from propylean import properties as prop
pump_1 = CentrifugalPump(tag="P1", efficiency=80, differential_pressure=(10,"bar"))
print(pump_1)
pump_1.inlet_pressure = prop.Pressure(5, "bar")
print(pump_1.outlet_pressure)
Have a look at sample pump circuit calculations.
PARAMETERS:
tag:
Required: No
Type: str
Acceptable values: Any string type
Default value: None
Description: Equipment tag the user wants to provide. If not provided, tag is automatically generated.
differential_pressure:
Required: No
Type: int or float or Pressure (recommended)
Acceptable values: Any. Negative value means pressure drop.
Default value: based on unit
Description: Differential pressure generated by the pump.
efficiency:
Required: No
Type: int or float (recommended)
Acceptable values: Non-negative integer [0-100]
Default value: 100 or 1 (representing 100%)
Description: Efficiency of the equipment. If user provides value greater than 1, value provided is considered as percent. If value provided is between 0 and 1 (inclusive) value is considered as fraction.
performance_curve:
Required: No
Type: pandas dataframe
Acceptable values: Non-negative integer in dataframe with flow and head values.
Default value: pandas.DataFrame()
Description: Performance curve of the pump.
E.g. pd.DataFrame([{'flow':[2, 10, 30, 67], 'head':[45, 20, 10, 2]}])
NOTE: You can save the performance curve but no property of pump is derived. Deriviation of differential pressure and other properties will be supported later.
min_flow:
Required: No
Type: int/float or tuple(value, unit) or VolumetricFlowrate(recommended)
Acceptable values: Non-negative values
Default value: None
Description: Minimum flow requirement of the pump.
NPSHr:
Required: No
Type: int/float or tuple(value, unit) or Length(recommended)
Acceptable values: Non-negative values
Default value: None
Description: Net Positive Suction Head requirement of the pump.
PROPERTIES:
Properties can be accessed using the dot '.' operator.
For e.g. centrifugal_pump.NPSHa
suction_pressure/inlet_pressure
Type: Pressure
Description: Suction pressure of the pump.
discharge_pressure/outlet_pressure
Type: Pressure
Description: Discharge pressure of the pump.
inlet_temperature
Type: Temperature
Description: Inlet temperature of the pump.
outlet_temperature
Type: Temperature
Description: Outlet temperature of the pump.
inlet_mass_flowrate
Type: MassFlowRate
Description: Inlet temperature of the pump.
outlet_mass_flowrate
Type: MassFlowRate
Description: Outlet temperature of the pump.
NPSHa:
Type: Length
Description: Net Positive Suction Head available to the pump.
head:
Type: Length
Description: Differential head generated by the pump.
hydraulic_power:
Type: Power
Description: Hydraulic power generated by the pump.
power/energy_in:
Type: Power
Description: Power required by the pump.
RETURN VALUE:
Type: CentrifugalPump
Description: Returns an object of type CentrifugalPump with all properties of
a centrifugal pump used in process industries.
ERROR RAISED:
Type:
Description: