Exergy Analysis¶
Exergy analysis is a powerful tool for evaluating and optimizing thermodynamic systems. Unlike conventional energy analysis, which focuses on the quantity of energy, exergy analysis considers both the quantity and the quality of energy, providing deeper insights into system inefficiencies. This approach helps identify where and why irreversibilities occur, enabling engineers and researchers to develop strategies for improving efficiency, reducing costs, and supporting sustainable energy conversion.
Where this step fits: step 1 of the workflow
Step |
Needs |
Gives |
Examples |
|
|---|---|---|---|---|
1 |
a model from Ebsilon, Aspen Plus, TESPy or JSON; fuel, product and loss of the plant |
\(\dot{E}_\mathrm{F}\), \(\dot{E}_\mathrm{P}\), \(\dot{E}_\mathrm{D}\) and \(\varepsilon\) of every component |
||
2 |
Component sizing, only where a cost is estimated from the size |
the analysed plant; heat transfer coefficients for the heat exchangers |
the size a cost function takes, for example power, heat transfer area or heat flow |
|
3 |
known costs, costs of reference components, user-defined cost equations or the correlations of OpenPyTEA |
the purchased equipment cost of every component and its reference year |
||
4 |
the purchased equipment costs; rate of return, lifetime, operating hours, fuel prices |
the cost rate \(\dot{Z}\) of every component and the levelized costs of the fuels |
||
5 |
the results of steps 1 and 4 |
the cost of every stream; \(c_\mathrm{F}\), \(c_\mathrm{P}\), \(\dot{C}_\mathrm{D}\), \(f\) and \(r\) of every component |
Steps 1 and 5 are enough where the cost rates \(\dot{Z}\) are known; steps 2 to 4 obtain them from the equipment costs.
The ExerPy library offers a flexible, Python-based solution for conducting exergy analysis on energy-conversion systems. It supports integration with simulation tools like Ebsilon Professional, Aspen Plus, and TESPy, allowing users to extract detailed data about components and connections.
The features described in this section are based on a paper on the exergy analysis in TESPy. For more details, see [1].
Fundamentals of exergy analysis¶
Energy is a concept of the first law of thermodynamics. It cannot be destroyed. However, when it comes to the design and analysis of thermal systems, the idea that something can be destroyed becomes useful. According to the second law of thermodynamics, the conversion of heat and internal energy into work is limited. This constraint and the idea of destruction are applied to introduce a new concept: “Exergy”.
Exergy can be destroyed due to irreversibilities. It also describes the quality of different energy forms. The difference in energy quality can be illustrated by the following example: 1 kJ of electrical energy is clearly more valuable than 1 kJ of energy in a glass of water at ambient temperature [2].
In the literature, exergy is defined as follows:
“An opportunity for doing useful work exists whenever two systems at different states are placed in communication, for in principle work can be developed as the two are allowed to come into equilibrium. When one of the two systems is a suitably idealized system called an environment and the other is some system of interest, exergy is the maximum theoretical useful work (shaft work or electrical work) obtainable as the systems interact to equilibrium, heat transfer occurring with the environment only.” [2]
Physical exergy¶
In many energy conversion systems, chemical reactions are absent. In such cases, the consideration of chemical exergy is not necessary. Additionally, when the contributions of potential and kinetic exergy are negligible, the focus is exclusively on physical exergy. The specific physical exergy of stream \(i\) is defined as [2]:
where \(h_i\) and \(s_i\) are the specific enthalpy and entropy at state \(i\), and \(h_0\) and \(s_0\) are the specific enthalpy and entropy at ambient conditions (\(T_0\), \(p_0\)).
Warning
For substances that are not fluid under ambient conditions, the physical exergy calculation requires a modified approach. In such cases, the specific physical exergy is calculated as:
where the subscript “min” refers to the modified state at the given pressure but at the minimum possible temperature at which the substance remains in its fluid state. For example, for a molten salt consisting of 60% NaNO₃ and 40% KNO₃, the minimum temperature is 200°C.
This formulation has been validated with Ebsilon Professional only.
Splitting of physical exergy¶
Since some thermal systems include states below the ambient temperature, the splitting of physical exergy into thermal and mechanical parts enables a more comprehensive analysis of the system’s components [3]. These two parts represent the contributions of the temperature and pressure to the physical exergy. This separation is particularly valuable for defining more meaningful exergetic efficiencies for components operating below ambient temperature and for components where distinguishing between thermal and mechanical exergy contributions provides more precise thermodynamic characterization. The separation is given by:
with the thermal exergy defined as:
and the mechanical exergy defined as:
In these expressions, state \(A\) is at ambient temperature \(T_0\) and pressure \(p_i\).
Chemical exergy¶
The specific chemical exergy of a gas mixture follows from the molar fractions \(x_k\) and the standard chemical exergies \(\bar{e}^\mathrm{CH}_k\) of its components [2]:
ExerPy takes \(\bar{e}^\mathrm{CH}_k\) from the reference environment of Ahrendts [4]; for the substances listed by Bejan et al. (Table C.2, model I), these are the values given there [2]. A pure substance takes the value of its phase at 25 °C, e.g. liquid for water, methanol and ethanol. If water condenses from a gas mixture at the ambient state, the liquid water forms a separate phase (Bejan et al., p. 138) [2]. A substance without a value in the library gets a chemical exergy of 0 as a pure substance, with a warning, and raises an error in a mixture.
Component-level exergy balance¶
The exergy analysis at the component level uses standardized balance equations, following the approach developed by [1]. The exergy balance equation of component \(k\) can be formulated as:
Each component \(k\) is evaluated by three metrics that quantify its performance and losses: the exergetic efficiency \(\varepsilon_k\), the exergy destruction ratio \(y_{\mathrm{D},k}\) measuring the share of the total fuel exergy destroyed by component \(k\), and the exergy destruction ratio \(y^*_{\mathrm{D},k}\) measuring the share of the total exergy destruction attributable to component \(k\):
Heat from or to outside the model¶
A component that exchanges heat with something the model does not contain, such as a furnace, a heat source or a heat consumer, needs a rule for the exergy of that heat: the model knows the stream that takes in or gives off the heat, but not the temperature on the other side. Where that temperature \(T\) is given, ExerPy values the heat at it,
A steam generator takes the temperature of its heat source as
T_hot; its fuel is the exergy of the heat at that temperature. WithoutT_hot, the fuel is approximated by the thermal exergy the water and steam gain, and the component warns.A simple heat exchanger may take
T_hot, the temperature of the source of the heat it takes in, which then gives its fuel, orT_cold, the temperature of the consumer of the heat it gives off, which then gives its product. Without them, the heat is valued at the change of the exergy of the stream itself, so the loss of the heat transfer to or from the outside lies outside the component. With split physical exergy that is the change of thermal exergy, and the friction of the stream is exergy destruction of the component. Without the split it is the change of physical exergy: the friction is then part of the exergy of the heat, and the component warns. The option applies to streams above the ambient temperature; a source has to be hotter than the stream, and a consumer colder.
The exergy of the heat connection is set to the same value, so the totals of the plant and the costs
of the exergoeconomic analysis follow it. The temperatures are given in K, in the entry of the
component in a JSON file, or on the component once the model is loaded and before analyse():
ean = ExergyAnalysis.from_tespy(nw, Tamb, pamb) # or from_ebsilon, from_aspen, from_json
ean.components["SG"].T_hot = 1173.15 # the furnace of a steam generator
ean.components["HC"].T_cold = 363.15 # a heating network supplied by a heat exchanger
ean.analyse(E_F=fuel, E_P=product, E_L=loss)
The choice moves exergy destruction across the boundary of the component. In the combined cycle of the examples, the extraction steam supplies 100 MW of heat through a simple heat exchanger: valued at the steam, the heat carries 39.7 MW of exergy and the exchanger destroys none; delivered to a heating network at 90 °C, the heat carries 20.7 MW, and the exchanger destroys the other 19.1 MW.
System-level exergy balance¶
At the system level, the overall exergy balance is expressed as:
where the fuel, product, and loss streams of the overall system need to be defined according to the thermodynamic purpose of the system under consideration.
Terminology¶
The definitions and nomenclature used in the exergy analysis in ExerPy are based on [5]. The exergy destruction ratios are described in more detail in [2]. Changes in kinetic and potential exergy are neglected and therefore not considered.
Variable |
Name |
Symbol |
Description |
|---|---|---|---|
|
(specific) physical exergy |
\(e^\mathrm{PH}\), \(E^\mathrm{PH}\) |
due to the deviation of the temperature and pressure of the system from those of the environment |
|
(specific) thermal exergy |
\(e^\mathrm{T}\), \(E^\mathrm{T}\) |
associated with the system temperature |
|
(specific) mechanical exergy |
\(e^\mathrm{M}\), \(E^\mathrm{M}\) |
associated with the system pressure |
|
(specific) chemical exergy |
\(e^\mathrm{CH}\), \(E^\mathrm{CH}\) |
based on the standard chemical exergies of the reference environment; the exerpy.data module provides the dataset of Ahrendts [4, 6, 7], see Chemical exergy. |
|
product exergy |
\(\dot{E}_\mathrm{P}\) |
represents the desired result (expressed in terms of exergy) generated by the system being considered |
|
fuel exergy |
\(\dot{E}_\mathrm{F}\) |
represents the resources (expressed in terms of exergy) expended to provide the product exergy |
|
exergy destruction |
\(\dot{E}_\mathrm{D}\) |
thermodynamic inefficiencies associated with the irreversibility (entropy generation) within the system boundaries |
|
exergy loss |
\(\dot{E}_\mathrm{L}\) |
thermodynamic inefficiencies associated with the transfer of exergy through material and energy streams to the surroundings |
|
exergetic efficiency |
\(\varepsilon\) |
ratio between product exergy and fuel exergy |
|
exergy destruction ratio |
\(y_{\mathrm{D},k}\) |
rate of exergy destruction in a component compared to the exergy rate of the fuel provided to the overall system |
|
exergy destruction ratio |
\(y^*_{\mathrm{D},k}\) |
rate of exergy destruction in a component compared to the total exergy destruction rate within the system |
Note
The generic exergy analysis balance equations have been implemented and tested only for the most common components. A list of components that have been considered can be found in the API documentation.