AirCooler - abhishekvraman/Propylean GitHub Wiki
DESCRIPTION:
Class to create object which represents an Air Cooler. All the properties associated with an Air Cooler used in the process industry to analyse, can be accessed as object property.
SAMPLE USE CASES:
# Importing and setting basic properties.
from propylean.instruments.exchangers import AirCooler
# or
from propylean import AirCooler
from propylean import properties as prop
ac_1 = AirCooler(tag="AC-101", temperature_change=prop.Temperature(40, "C"))
print(ac_1)
ac_1.inlet_temperature = prop.Temperature(100, "C")
# Connecting with MaterialStream.
from propylean.streams import MaterialStream
# or
from propylean import MaterialStream
condensate = MaterialStream(tag="feed heater condensate")
condensate.components = prop.Components(fractions={"water": 1}, type="mass")
ac_1.connect_stream(condensate, "in", stream_governed=False)
# Get Outlet temperature.
print(ac_1.outlet_temperature)
# Set series of data with property.
import pandas as pd
df = pd.read_csv("condensate_temperature_change.csv")
ac_1.temperature_change.time_series = df
# Get the max temperature change.
print(ac_1.temperature_change.max())
Input Parameters and properties
PARAMETERS:
pressure_drop:
Required: No
Type: int or float or property.Pressure(recommended)
Acceptable values: Any values. Negative value indicates pressure increase.
Default value: NA
Description: Pressure drop accross the air cooler.
temperature_change:
Required: No
Type: int or float or property.Temperature(recommended)
Acceptable values: Any
Default value: NA
Description: Temperature change accross the air cooler.
fan_power/energy_in:
Required: No
Type: int or float or property.Power(recommended)
Acceptable values: Non-negative values
Default value: NA
Description: Fan power requirement.
PROPERTIES:
Properties can be accessed using the dot '.' operator.
For e.g. `condensate_cooler.inlet_pressure`
inlet_pressure
Type: Pressure
Description: Inlet MaterialStream pressure of the AirCooler.
outlet_pressure
Type: Pressure
Description: Outlet MaterialStream pressure of the AirCooler.
inlet_temperature
Type: Temperature
Description: Inlet MaterialStream temperature of the AirCooler.
outlet_temperature
Type: Temperature
Description: Outlet MaterialStream temperature of the AirCooler.
inlet_mass_flowrate
Type: MassFlowRate
Description: Inlet MaterialStream mass_flowrate of the AirCooler.
outlet_mass_flowrate
Type: MassFlowRate
Description: Outlet MaterialStream mass_flowrate of the AirCooler.
pressure_drop
Type: Pressure
Description: Pressure drop in the AirCooler.
RETURN VALUE:
Type: AirCooler
Description: Returns an object of type AirCooler with all properties of
an air cooler used in process industry.