FlowMeter - abhishekvraman/Propylean GitHub Wiki
DESCRIPTION:
Class to create object which represents a Flow meter. All the properties associated with a flow meter used in the process industry to analyse can be accessed as object property.
SAMPLE USE CASES:
# Importing and setting basic properties.
from propylean.instruments.measurement import FlowMeter
# or
from propylean import FlowMeter
from propylean import properties as prop
fm_1 = FlowMeter(tag="fm_1", pressure_drop=prop.Pressure(0.02, "bar"))
print(fm_1)
fm_1.inlet_pressure = prop.Pressure(5, "bar")
# Connecting with MaterialStream.
from propylean.streams import MaterialStream
condensate = MaterialStream(tag="condensate")
condensate.components = prop.Components(fractions={"water": 1}, type="mass")
fm_1.connect_stream(condensate, "in", stream_governed=False)
# Get pressure drop.
print(fm_1.outlet_pressure)
# Set series of data with property.
import pandas as pd
fm_1.pressure_drop.df = pd.read_csv("condensate_line_flow_meter_data.csv")
Have a look at sample circuit calculations.
Input Parameters and properties
PARAMETERS:
pressure_drop:
Required: No
Type: int or float or property.Pressure(recommended)
Acceptable values: Non-negative values
Default value: None
Description: Pressure drop accross the FlowMeter.
PROPERTIES:
Properties can be accessed using the dot '.' operator.
For e.g. `condensate_line_flow_meter.inlet_pressure`
inlet_pressure
Type: Pressure
Description: Suction pressure of the FlowMeter.
discharge_pressure/outlet_pressure
Type: Pressure
Description: Discharge pressure of the FlowMeter.
inlet_temperature
Type: Temperature
Description: Inlet temperature of the FlowMeter.
outlet_temperature
Type: Temperature
Description: Outlet temperature of the FlowMeter.
inlet_mass_flowrate
Type: MassFlowRate
Description: Inlet temperature of the FlowMeter.
outlet_mass_flowrate
Type: MassFlowRate
Description: Outlet temperature of the FlowMeter.
pressure_drop
Type: Pressure
Description: Pressure drop in the pipe segment/fitting.
RETURN VALUE:
Type: FlowMeter
Description: Returns an object of type FlowMeter with all properties of
a flow meter used in process industry.