carbatpy.utils.exergy_loss
Created on Sun Nov 5 10:01:28 2023
@author: atakan
Attributes
Functions
|
Irreversible entropy production rate for two fluid flows or an adiabatic |
|
assumption both fluids enter in equilibrium with the surrounding |
|
Calculate the exergy loss rate for two fluid flows or an adiabatic |
Module Contents
- carbatpy.utils.exergy_loss.s_irr_flow(states, mass_flow_rates, verbose=False, entropy_position=4)[source]
Irreversible entropy production rate for two fluid flows or an adiabatic heat exchanger. It is intended to use for heat pumps, where energy is stored at low and at high temperature.
- Parameters:
states (numpy-array [n,2,7]) – the states to analyse ordered as entering fluids[:,0,:] and exiting fluid [:,1,:] the states are as defined in fluid_props, with the 4th value being the specific entropy in J/(kg K)(see below).
mass_flow_rates (numpy array of length n) – the mass flow rates in SI units (kg/s).
verbose (Boolean, optional) – should we print? The default is False.
entropy_position (Integer, optional) – in the states array, where to find thge specific entropy. The default is 4.
- Returns:
entropy production rate in W/K.
- Return type:
float
- carbatpy.utils.exergy_loss.exergy_loss_alternative(states, mass_flow_rates, power_in=0.0, temp_surrounding=cb._T_SURROUNDING, verbose=False, entropy_position=4, enthaply_position=2)[source]
assumption both fluids enter in equilibrium with the surrounding if entropy is reduced, T is below the environment T and exergy is positive
but this not correct yet, should be implemented correctly
- carbatpy.utils.exergy_loss.exergy_loss_flow(states, mass_flow_rates, power_in=0.0, temp_surrounding=cb._T_SURROUNDING, verbose=False, entropy_position=4)[source]
Calculate the exergy loss rate for two fluid flows or an adiabatic heat exchanger. It is intended to use for heat pumps, where energy is stored at low and at high temperature. Uses s_irr_flow. All parameters are described there, except one. Gouy-Stodola
- Parameters:
states (TYPE) – DESCRIPTION.
mass_flow_rates (TYPE) – DESCRIPTION.
power_in (TYPE, optional) – DESCRIPTION. The default is 0..
temp_surrounding (Float, optional) – surrounding temperature in K. The default is cb._T_SURROUNDING.
verbose (TYPE, optional) – DESCRIPTION. The default is False.
entropy_position (TYPE, optional) – DESCRIPTION. The default is 4.
- Returns:
Exergy loss rate in W.
- Return type:
float