Mixture search, Simple heat-pump (plotting)¶
Simple calculation of heat pump states for multinerary mixtures (using Refprop) mainly for visualization of temperature and enthalpy levels for different pressure levels and slight superheatig after evaporation.
Created on Tue Nov 22 14:55:50 2022
@author: atakan
- mixture_search.f_name(fluid_s, comp, p0, p_ratio)¶
- mixture_search.find_comp(x, x0, p=110000.0, T=289.0)¶
find the ternary composition for given compressor inlet T & p function for scipy.root
- Parameters
x (float (0<x<1)) – mole fraction to vary, the second one in the list.
x0 (float (0<x<1)) – fixed mole fraction , the first one in the list.
p (float, optional) – inlet pressure in Pa. The default is 1.1e5.
T (float, optional) – inlet pressure in K. The default is 289..
- Returns
difference between wanted T and T of the mixture at p.
- Return type
float
- mixture_search.hp_calc(pev, pcond, comp=[1.0], dT_cin=10, fluid_s='Propane * Hexane * Butane', eta_s=0.65)¶
simple heat pump calculation (also for plotting the state changes)
- Parameters
pev (float) – evaporator pressure in Pa.
pcond (float) – condenser pressure in Pa.
comp (list of floats, optional) – molar composition, must sum to 1. The default is [1.0].
dT_cin (float, optional) – superheating at compresor entrance. The default is 10.
fluid_s (depends on property module(REFPROP/CoolProp), optional) – working fluid compounds (list). The default is fluid_s.
eta_s (float, optional) – isentropic efficiency compressor. The default is 0.65.
- Returns
states along the cyle, for each T,p,h,v,s,q.
- Return type
numpy array (npo+5, 6)