ElectricHeater - abhishekvraman/Propylean GitHub Wiki

DESCRIPTION:

Class to create object which represents an Electric Heater. All the properties associated with an Electric Heater 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 ElectricHeater
# or
from propylean import ElectricHeater 
from propylean import properties as prop
EH_1 = ElectricHeater(tag="AC-101", temperature_change=prop.Temperature(40, "C"))
print(EH_1)
EH_1.inlet_temperature = prop.Temperature(100, "C")

# Connecting with MaterialStream.
from propylean.streams import MaterialStream
# or 
from propylean import MaterialStream
feed_water = MaterialStream(tag="feed_water")
feed_water.components = prop.Components(fractions={"water": 1}, type="mass")
EH_1.connect_stream(feed_water, "in", stream_governed=False) 

# Get Outlet temperature.
print(EH_1.outlet_temperature)

# Set series of data with property.
import pandas as pd
EH_1.temperature_change.time_series = pd.read_csv("feed_water_heater_temperature_change.csv")

Input Parameters and properties

       PARAMETERS:
           pressure_drop:
               Required: No
               Type: int or float or property.Pressure(recommended)
               Acceptable values: Any. Negative value indicates pressure increase.
               Default value: None
               Description: Pressure drop accross the ElectricHeater.
            
           temperature_change/temperature_increase:
               Required: No
               Type: int or float or property.Temperature(recommended)
               Acceptable values: Non-negative values
               Default value: None
               Description: Temperature change/increase accross the ElectricHeater.
           
           power/energy_in:
               Required: No
               Type: int or float or property.Power(recommended)
               Acceptable values: Non-negative values
               Default value: None
               Description: Coil power requirement.
       
      
       PROPERTIES:
          Properties can be accessed using the dot '.' operator. 
          For e.g. `feed_heater.inlet_pressure`

          inlet_pressure
             Type: Pressure
             Description: Suction pressure of the ElectricHeater.

          outlet_pressure
            Type: Pressure
            Description: Discharge pressure of the ElectricHeater.

         inlet_temperature
            Type: Temperature
            Description: Inlet temperature of the ElectricHeater.

         outlet_temperature
            Type: Temperature
            Description: Outlet temperature of the ElectricHeater.

         inlet_mass_flowrate
            Type: MassFlowRate
            Description: Inlet temperature of the ElectricHeater.
      
         outlet_mass_flowrate
            Type: MassFlowRate
            Description: Outlet temperature of the ElectricHeater.
         
         pressure_drop
            Type: Pressure
            Description: Pressure drop in the ElectricHeater.


       RETURN VALUE:
           Type: ElectricHeater
           Description: Returns an object of type ElectricHeater with all properties of
                        an air cooler used in process industry.