Tank - Separator Liquid-Vapor¶
Model description¶
The component models a tank with a liquid-vapor separator. The separator divides the incoming fluid into liquid and vapor streams based on the saturation properties at the tank pressure.
Class description¶
- class component.tank.tank_LV_separator.TankLVSeparator[source]¶
Component: Tank separator
Model: Classical way to model a LV separator
Reference: /
Descritpion:
Method of modeling: This code defines an LV Separator that takes an input stream and splits it into liquid and vapor components based on quality (x) and temperature.
Use of the model: The model can used in thermodynamic cycle
Specific outputs: mass flow rate in both liquid and vapor state and exhaust conditions for both lines
Pressure drop not modeled
Geometry not required
Rating of the models level of complexity, precision, robustness, adaptability : simple
Assumptions:
No work, no heat losses
- Connectors:
su (MassConnector): Mass connector for the supply conditions ex_v (MassConnector): Mass connector for the vapor line ex_l (MassConnector): Mass connector for the liquid line
Parameters:
No parameters are expected
Inputs:
x_su : Supply quality [-] T_su or h_su : Supply temperature or enthalpy [K] or [J/kg] P_su : Supply pressure [Pa] fluid : Supply fluid [string] m_dot : Supply flow rate [kg/s]
Ouputs:
Vapor line h_ex_v : Exhaust enthalpy at the vapor line [J/kg] P_ex_v : Exhaust pressure at the vapor line [Pa] fluid_v : Exhaust fluid at the vapor line [string] m_dot_v : Exhaust flow rate at the vapor line [kg/s]
Vapor line h_ex_l : Exhaust enthalpy at the liquid line [J/kg] P_ex_l : Exhaust pressure at the liquid line [Pa] fluid_l : Exhaust fluid at the liquid line [string] m_dot_l : Exhaust flow rate at the liquid line [kg/s]
Example of use¶
# -*- coding: utf-8 -*-
"""
Created on Tue Dec 19 14:43:39 2023
@author: Samuel Gendebien
"""
# import __init__
import numpy as np
from CoolProp.CoolProp import PropsSI
from labothappy.component.tank.tank_LV_separator import TankLVSeparator
"----------------------------------------------------------- TEST ----------------------------------------------------------------"
LV_Separator = TankLVSeparator()
# Inputs
LV_Separator.set_inputs(
fluid = 'R22',
x_su = 0.5,
P_su = 100000,
m_dot = 14,
)
# Params
LV_Separator.set_parameters()
# Solve
LV_Separator.solve()
LV_Separator.print_results()
LV_Separator.print_states_connectors()
fig = LV_Separator.plot_thermo_states()
fig.show()
References¶
/