Professional Documents
Culture Documents
INTRODUCTION
In this modern era there is a lot of waste heat being released to environment, this
wastage is a loss of efficiency to the industry and also leads to serious environmental
pollution. The reduction rate in fossil fuels and non-renewable sources made people to
think to use the waste heat in economic way. The waste heat includes exhaust gases
from the turbines and the engines and the heat rejected in the sinks from the industry
plant. To use this waste heat and the renewable energy like solar energy the CCHP
system has been developed and also for improving overall energy conversion
efficiency. Normally in the industries power heating and cooling outputs are produced
from different cycles. By adopting the CCHP system the three outputs can be generated
with one system and with a better energy efficiency. plant can be installed in food
industry, shopping malls hospitals where combined cooling heating and power is
required in a small scale basis.
The CCHP cycle has a Brayton cycle at the top and transcritical ejector refrigeration
cycle at the bottom. The normal turbine is replaced with the extraction turbine to tap
the steam at an expansion pressure. Normally the fluid from the compressor outlet is
cooled using a gas cooler in thermodynamic cycles, but in CCHP we were able to use
the heat produced in compressor also. It also had an advantage that it takes the low
grade energy at the heat source and produces high grade energy. In the extraction
turbine if the extraction increases the power output of the turbine decreases and if the
1
extraction pressure is high the quality of vapour produced at the outlet of the ejector is
low.
The major reason for the cycle irreversibility is the isenthalpic process in the basic
transcritical refrigeration cycle. Since the liquid is coming from the super critical
pressure to sub critical pressure, irreversibility is more in throttle valve compared to
sub critical vapour compression cycle. So to reduce irreversibility ejector is used as a
alternative for throttle valve and the use of ejector also reduce the compression work.
In the present paper the mathematical model of CCHP system is developed and the
simulation is carried under steady state conditions. System performance is examined
by varying the thermodynamic parameters.
1.1.MOTIVATION
As the CCHP cycle produces power, heat, cooling effect in one cycle our interest
shifted towards it. The cycle has high efficiency and it uses low grade energy. The
low grade energy may be an industrial heat rejection, solar energy. As power is
produced in cchp cycle, the emissions released in the power plants during the power
production get reduced. So we can say the greenhouse gases are reduced. If we
produce all three outputs in individual cycle the fuel consumption is 0.5 times more
than the fuel required for cchp cycle. CO2 is a non-combustible refrigerant with nil
Ozone Depression Potential and an immaterial Global Warming Potential. The
generalized motivations are
• Higher efficiency.
• For the same output less fuel consumption compared to individual systems.
2
1.2.OBJECTIVES
The objectives are Mathematical modelling and simulation of CCHP system. To find
the entrainment ratio and mixing chamber inlet pressure values that satisfy the model.
To find the variation of output with the variation of inputs. To find the inputs for a
particular output.
1.3.METHODOLOGY
▪ Literature review.
▪ Specifying the outputs of power, cooling and heating for a particular industry.
3
CHAPTER 2
LITERATURE REVIEW
1.Parametric analysis of a new combined cooling, heating and power system with
transcritical CO2 driven by solar energy by Jiangfeng Wang ⇑, Pan Zhao,
Xiaoqiang Niu, Yiping Dai(2012)
The objective of the paper is to design a new Combined Cooling, Heating and Power
production system with transcritical CO2 driven by waste heat from industry or the
solar energy. This is proposed to solve the energy and environment problems.
CONCLUSIONS:
With the increase in turbine back pressure, inlet temperature respectively, the
thermal and exergy efficiencies of the system increases.
With the increase of inlet pressure of turbine and inlet temperature of ejector,
both thermal and exergy efficiencies of system decreases.
Refrigeration capacity of the system is low due to the low outlet pressure of the
turbine.
4
The main objective of paper is to investigate the characteristics of transcritical
co2 cycle.
CONCLUSIONS:
In the real transcritical refrigeration cycle, it will be a big task to maintain the
mass conservation constraint x = 1/(1+w) in its steady state. So to relax this
constraint we introduced a second throttle valve to the system. The extra vapour
produced in the liquid vapour separator is throttled back to the evaporator to
maintain steady flow in the evaporator. So the constraint between the quality of
vapour and the entrainment ratio is relaxed.
This paper describes about the properties of co2 and transcritical co2 cycle.
CONCLUSIONS:
CO2 is certainly a greenhouse gas, as we are using co2 from industrial waste the
net greenhouse effect is zero.
The performance of the transcritical cycle changes with the pressure of gas
cooler.
5
Modifications to the simple co2 transcritical cycle are given.
4. Energy and exergy analyses of a modified combined cooling, heating, and power
system using supercritical CO2.
Xiao Xu*, Chao Liu, Xiang Fu, Hong Gao, Yourong Li (2015).
CONCLUSIONS:
With the increase in the inlet temperature of turbine, the heat output and the
COP increases while the refrigeration capacity decreases.
With the increase of extraction rate of turbine, the heat output at the heater and
refrigeration capacity increases while the COP decreases due to the decrease in
the output power of turbine.
Advantages:
• If the extraction pressure is high the quality of steam at ejector outlet is low for
a given entrainment ratio.
6
• If quality of vapour is less at the ejector outlet, saturated liquid generated will
more which implies more refrigeration.
Disadvantages:
As the gain from heat output and refrigeration far outpaces the decrease in turbine
power output, COP of the system increases.
• The major reason for the cycle irreversibility is the isenthalpic process in the
basic transcritical refrigeration cycle. Since the liquid is coming from the super
critical pressure to sub critical pressure, irreversibility is more in throttle valve
compared to sub critical vapour compression cycle.
7
CHAPTER 3
CCHP CYCLE
Figure 1
8
3.2. T-S PLOT OF THE SYSTEM
Figure 2
Fig. 1 shows the schematic diagram of modified Combined Cooling, Heating and
Power production system.
Fig. 2 shows the processes of CCHP cycle in a temperature-specific entropy plot.
3.3. COMPONENTS
9
3.4. DESCRIPTION OF STATES AT EVERY POINT IN THE SYSTEM
Table 1
10
3.5. WORKING OF THE SYSTEM
CCHP system mainly contains extraction turbine where power is produced, heaters
from which heat output is given to user, gas coolers which act as sink for heat rejection,
evaporator for cooling effect, liquid vapour separator for separating liquid and vapour
from the mixture, compressor and a heat source to increase the enthalpy of the working
fluid. CO2 and N2O are chosen as working fluids. Both the fluids have near critical
pressures. Working fluid at subcritical state (18) is drawn to compressor and
compressed to super critical state (19). Then the working fluid go to heat source where
heat is added at constant pressure by the auxiliary heater. The heat through the heat
source is generally waste heat from the industries.
If waste heat is not available, it can be solar energy or energy through fuels. Then
working fluid enters the extraction turbine and work is produced. A part of steam is
tapped at the extraction pressure and the remaining steam expands till it leaves turbine.
The extracted steam is motive stream which then passes through heater 2 and gas cooler
2 where heat output is given to user and heat is rejected from the system(sink)
respectively. The other stream passes through heater 1 and gas cooler 1 where heat
output is given to user and heat is rejected from the system(sink) respectively. This
stream then driven to compressor. There are two heat outputs and two heat rejection.
The motive fluid then enters the ejector creating a suction for the secondary fluid or
entrained at the end of the ejector. Both fluids mix in the mixing chamber and then
passes through the diffuser. In the ejector two types of analyses can be done, one
constant pressure mixing and constant area mixing.
At the exit of ejector, the fluid has a quality of vapour(x). Here x should satisfy a
1
condition 𝑥7 = (1+𝑤) to maintain mass conservation. so it is sent to liquid vapour
separator where saturated liquid and saturated vapour get separated. The saturated
liquid then passes through throttle valve 1 and then to the evaporator. To free the
11
constraint between the x and w the throttle valve 2 is kept in the system. The extra
steam produced in the liquid vapour separator is throttled with throttle valve 2 and then
sent to evaporator. The saturated steam produced minus the extra steam is drawn to
compressor. The stream through the evaporator is secondary or entrained stream.
Entrainment is the ratio secondary stream to primary stream.
12
CHAPTER 4
MATHEMATICAL MODELLING
ASSUMPTIONS:
1.Pressure drop across the gas cooler and evaporator and in the connection tubes is
neglected.
2. The vapour stream from the liquid vapour separator is saturated vapour and the liquid
stream from the liquid vapour separator is saturated liquid.
3. Heat losses to the environment from the system is neglected, except the heat rejection
in the gas cooler.
4. The compressor and turbine has a given isentropic efficiency.
5. Isenthalpic flow across the expansion valves or throttle valves.
6. one-dimensional homogeneous equilibrium flow is considered in the ejector.
7. The evaporator and gas cooler have a given outlet superheat and outlet temperature
respectively. 8. stagnation condition is assumed at the entrance and exit of ejector.
9. The nozzle, diffuser has a given isentropic efficiency.
10. The primary and secondary stream reach same to pressure at the entrance of mixing
chamber. Mixing takes place only in mixing chamber.
INPUTS:
P1 = P19
13
P2 = P3 = P4
Mass inputs - mt , mp
m = mp + ms
I. TURBINE
The turbine is taken as open System for the modelling, ƞT is the isentropic efficiency
of the turbine. A stream(mp) is extracted from the turbine at pressure P2 and the
remaining stream is completely expanded to pressure P15.
Figure 3
14
Enthalpy at inlet of turbine ℎ1 = 𝑓1(𝑃1 , 𝑇1 )
Using the given turbine efficiency, ℎ2 and ℎ15 can be calculated from following
equations
ℎ1 − ℎ15
ƞT = ℎ1 −ℎ15𝑠
ℎ1 − ℎ2
ƞT = ℎ1 −ℎ2𝑠
II.HEATER-1
As 𝑇16 is known and 𝑃16 is the same as 𝑃15 which is known, we can calculate ℎ16 ,
15
Figure 4
Heat rejected from the system at gas cooler 1, 𝑄𝐺𝐶 1 = 𝑚15 (ℎ16 − ℎ17 )
IV. HEATER 2
ℎ3 = 𝑓1(𝑃3 , 𝑇3 )
16
Figure 5
V. GAS COOLER 2
ℎ4 = 𝑓1(𝑃4 , 𝑇4 )
VI. EJECTOR
Ejector is the main component where we deal with the mathematical modelling in the
CCHP system. Simulation can be done in two methods such as constant area mixing
method and constant pressure method. Ejector contains nozzle, mixing chamber and
diffuser. In the analysis we used mass conservation equations, energy conservation
equations, momentum conservation equations. In the ejector there are three major
unknowns (P5, P6, w) which we find using the equations and iterations shown below.
Initially the iteration is started by assuming 𝑃5 and w.
17
Figure 6
1. Nozzle Section
The nozzle section is from the inlet of motive and entrained fluids to the entrance of
mixing chamber. The inlet fluid pressures 𝑃4 , 𝑃14 and temperatures 𝑇4 , 𝑇14 are fixed.
The fluid from motive nozzle is perfectly expanded, it means that the motive and
entrained streams static pressures are equal at the mixing chamber entrance.
As the pressure drops from 𝑃4 to 𝑃5 the motive stream is accelerated before it moves
to the mixing section of ejector. The exit state of nozzle can be determined by using an
isentropic expansion process.
Using the nozzle efficiency, the actual enthalpy ℎ4′ can be found.
ℎ4 − ℎ4′
ƞnozzle = ℎ4 − ℎ4′s
18
𝑢42 𝑢2′
4
𝑚p (ℎ4 + ) + Q = 𝑚p (ℎ4′ + )+W; Here 𝑄 = 0; 𝑊 = 0
2 2
The motive stream velocity at the inlet of mixing section is given by,
The specific volume of the motive stream at the inlet of mixing section is given by the
relation,
𝑣4′ = 𝑓(ℎ4′ , 𝑃5 )
Applying conservation of mass, the area occupied by the motive stream at the inlet of
mixing section is found to be,
𝑚𝑣4′
𝑎4′ = 𝑢4′ (1+𝑤)
The calculations for the suction nozzle are same as of motive stream. Here as its
pressure drops from 𝑃14 to 𝑃5 the entrained stream is accelerated before it moves the
mixing section. Actual exit state can be determined by using an isentropic expansion
process.
Using the nozzle efficiency, the actual enthalpy ℎ14′ can be found,
ℎ14 −ℎ14′
ƞnozzle = ℎ14 −ℎ14′s
The entrained stream velocity at the inlet of the constant area mixing section is given
by,
19
𝑢14′ = √2(ℎ14 − ℎ14′ )
The specific volume of the entrained stream at the inlet of mixing section is given by
the relation,
𝑣14′ = 𝑓6(ℎ14′ , 𝑃5 )
Applying conservation of mass, the area occupied by the suction stream at the inlet of
mixing section is found to be,
𝑣14′ 𝑚𝑤
𝑎14′ = ( )
𝑢14′ 1+𝑤
2. Mixing Section
one more iteration loop is applied, to calculate the mixing section outlet conditions.
First the outlet pressure of mixing section 𝑃6 is assumed. Then by applying momentum
conservation in the mixing section, the velocity of mixed fluids 𝑢6 is calculated.
𝑚 𝑚𝑤
𝑃5 (𝑎p + 𝑎s ) + 𝑢4′ + 𝑢14′ = 𝑃6 (𝑎p + 𝑎s ) + 𝑚𝑢6
1+𝑤 1+𝑤
Applying the conservation of energy, the enthalpy of mixed streams at mixing chamber
exit ℎ6 can be found.
𝑚 1
(ℎ4 + 𝑤ℎ14 ) = 𝑚(ℎ6 + 𝑢62 )
1+𝑤 2
1
ℎ4 + 𝑤ℎ14 = (1 + 𝑤)(ℎ6 + 𝑢62 )
2
The specific volume of the mixing stream can be found by the relation,
𝑣6 = 𝑓6(ℎ6 , 𝑃6 )
If we apply conservation of mass for mixing section, we get the following equation.
20
(𝑎𝑝 +𝑎𝑠 )𝑢6
=𝑚
𝑣6
𝑃6 is noted if the above equation is satisfied. Then the corresponding velocity and
enthalpy values are also noted down.
3. Diffuser
Using the efficiency of the diffuser we can find ℎ7 , Let us name it as ℎ71 .
ℎ7s − ℎ6
ƞdiffuser = ℎ7 − ℎ6
by applying the energy conversion for diffuser we can get one more ℎ7 and name it as
ℎ72 .
1 1
𝑚(ℎ6 + 𝑢62 ) = 𝑚(ℎ7 + 𝑢72 ) ; 𝑢7 = 0
2 2
The iteration ends when the absolute difference of ℎ71 , ℎ72 is less than 10-4.
Now the iteration stops and entrainment ratio ‘w’ is noted down.
Hence for a particular 𝑃5 value, entrainment ratio ‘w’ is calculated. Again 𝑃5 value is
changed and we get different entrainment ratio and ℎ7 values.
We get many combinations of (𝑃5 , w, h7) values which satisfy the above equations.
From those, the values which satisfy the following condition are sorted out.
(1 + 𝑤)𝑥7 > 1
21
Where 𝑥7 = 𝑓8(ℎ7 , 𝑃7 )
The values of (𝑃5 , w, h7) which satisfy the above equation are noted down.
The wet mixture is sent to the liquid separator where the vapour and liquid are
separated.
𝑚𝑣 = 𝑥7 𝑚 = 𝑚8
𝑚8′ = 𝑚l = 𝑚 − (𝑚𝑥7 )
𝑚8′ = 𝑚(1 − 𝑥7 )
ℎ8 and ℎ8′ can be calculated because 𝑃7 = 𝑃8 = 𝑃8′ and the qualities are known at 8
and 8′.
ℎ8′ = 𝑓9(𝑃7 , 𝑥 = 0)
ℎ8 = 𝑓9(𝑃7 , 𝑥 = 1)
22
Figure 7
IX. Throttle –I
X. Throttle-II
Vapour of mass flow rate 𝑚𝑝 is sent to the compressor and the remaining vapour is
sent through throttle-II. Hence mass flow rate through throttle-II 𝑚𝑒 is given by
𝑚𝑒 = 𝑚𝑣 − 𝑚𝑝
𝑚
𝑚𝑒 = 𝑥7 𝑚 − 𝑚𝑝 = 𝑥7 𝑚 − 1+𝑤
23
1
𝑚𝑒 = 𝑚(𝑥7 − 1+𝑤)
ℎ11 = ℎ9 = ℎ8
XI. Evaporator
ℎ14 = 𝑓9(𝑃sat , 𝑎𝑡 𝑥 = 1)
𝑄 = 𝑚s (ℎ14 − ℎ13 )
XII. Compressor
Figure 8
𝑠19s = 𝑠18
24
ℎ19s = 𝑓3(𝑃19 , 𝑠19s )
𝑚p ℎ10 = 𝑚p ℎ8
ℎ18 − ℎ19s
ƞcomp = ℎ18 − ℎ19
Figure 9
25
FUNCTIONS USED IN THE MATHEMATICAL MODELLING:
26
Flow chart of constant area mixing model in the ejector
U4=U7=0
j
S4ds=S4=f4(P4, h4)
h4ds=f5(P5, S4ds)
h4d=h4-(ƞmotive×(h4-h4ds))
v4d=f6(P5, h4d);
𝑚 × 𝑣4𝑑
𝑎4𝑑 =
(1 + 𝑤) × 𝑢4𝑑
S14ds=S14=f7(P14, T14)
h14ds=f5(P5, S14ds)
h14d=h14-(ƞsuction×(h14-h14ds))
V14d=f6(P5, h14d);
𝑚 × 𝑤 𝑣14𝑑
𝑎14𝑑 = ×
(1 + 𝑤) 𝑢14𝑑
ℎ4 𝑤 × ℎ14 𝑢62
ℎ6 = + −
(1 + 𝑤) (1 + 𝑤) 2
Check
Go to step 4
𝑢6 No
𝑚= × (𝑎𝑝 + 𝑎𝑠 )
𝑣6
y
e
s
ℎ7𝑠 − ℎ6
ℎ7 = ℎ6 +
ƞ𝑑𝑖𝑓𝑓𝑢𝑠𝑒𝑟
𝑢62
ℎ7 = ℎ6 +
2
28
Check
ℎ7𝑠 − ℎ6
ℎ7𝑎 = ℎ6 + Go to step 1
ƞ𝑑𝑖𝑓𝑓𝑢𝑠𝑒𝑟
𝑢62
ℎ7𝑏 = ℎ6 +
2
h7=h7a + h7b
x7=f8(P7, h7)
x7(1+w) ≥ 1
29
Flow chart of constant pressure mixing model in the ejector
U4=U7=0
S4ds=S4=f4(P4, h4)
h4ds=f5(P5, S4ds)
h4d=h4-( ƞmotive×(h4-h4ds))
S14ds=S14=f7(P14, T14)
h14ds=f5(P5, S14ds)
h14d=h14-(ƞsuction×(h14-h14ds))
𝑢4𝑑 𝑤 × 𝑢14𝑑
𝑢6𝑠 = +
(1 + 𝑤) (1 + 𝑤)
𝑢6 = √𝜂𝑚𝑜𝑡𝑖𝑣𝑒 × 𝑢6𝑠
ℎ4 𝑤 × ℎ14 𝑢62
ℎ6 = + −
(1 + 𝑤) (1 + 𝑤) 2
30
S6=f7(P5, h6)
h7s=f5(P7, S7s)
ℎ7𝑠 − ℎ6
ℎ7 = ℎ6 +
ƞ𝑑𝑖𝑓𝑓𝑢𝑠𝑒𝑟
𝑢62
ℎ7 = ℎ6 +
2
Check
ℎ7𝑠 − ℎ6
ℎ7 = ℎ6 +
ƞ𝑑𝑖𝑓𝑓𝑢𝑠𝑒𝑟
Go to step 1
𝑢62
ℎ7 = ℎ6 +
2
h7=h7a + h7b
x7=f8(P7, h7)
x7(1+w) ≥ 1
31
CHAPTER 5
graph 1
32
changing the heat output to the user is decreasing. Refrigeration capacity is constant as
P1 is changing.
Graph 2
constant pressure analysis for CO2 in the ejector
In the constant pressure analysis also, the trend of the work outputs is same as the
constant area analysis.
Work at turbine is higher in constant pressure model when compared to constant area
model. Heat supplied is higher constant area model when compared to constant
pressure model. Work supplied to compressor is more in constant pressure model
than constant are model. Heat output to the user in constant area model is slightly
more than that of constant pressure model.
33
Graph 3
constant area analysis for CO2
As 𝑃2 increases, the quality of vapour at the exit of ejetor will be low. So more saturated
liquid is produced and more refrigeration.
34
Graph 4
constant pressure analysis for CO2 in the ejector, the trend in both the models is same
for both the models.
Heat at evaporator in constant area model is significantly higher than constant pressure
model.
Work output at turbine, heat output to the user, heat rejection at gas cooler remains
same for both the models.
35
Graph 5
As extraction ratio increases, work output decreases because the mass which
completely expands decreases.
As extraction ratio increases, heat output to user increases, this is due increase of heat
output in heater 2 as mass flow rate is increasing, also the heat rejection in gas cooler
increases.
36
Graph 6
The trends of the graphs are same as of CO2 in constant area analysis.
Comparison between N2O and CO2 in constant area analysis when turbine inlet
pressure is changing:
Work at turbine and heat output to the user are nearly equal when both fluids are used.
37
Graph 7
Constant area analysis for N2O, when extraction pressure is changing. The trend
remains same as in constant area analysis of carbon dioxide.
Comparison between N2O and CO2 in constant area analysis when extraction
pressure is changing:
Heat at evaporator in carbon dioxide is slightly greater than that of nitrous oxide.
Heat rejected in gas cooler is higher in nitrous oxide than in carbon dioxide.
Initially, at lower pressure heat output is higher in nitrous oxide, but as the extraction
pressure increases heat output becomes equal.
38
Graph 8
Table 2
mt Wt Qs Qh Qgc Qe Wc P5 P6 P15 w
39
RESULTS for CO2
Table 3
p1 p2 p5 p6 p15 x wt Qh Qe Qc Qgc Qs
20 10 3 2 6 0.8011 44.6779 41.5051 238.2243 69.0381 100.224 77.8589
20 10 3 2 7 0.9938 40.77 52.6013 216.9103 47.371 119.68 134.04
20 12 7 5.5 6.5 0.7794 40.3535 58.1605 238.3295 58.6947 99.893 101.5313
20 12 7 5.5 7 0.8885 38.4442 63.7028 225.6451 47.371 112.675 134.049
20 14 4.5 3.5 7 0.8485 36.428 74.293 228.9634 47.371 105.286 134.049
18 12 7 5.5 6.5 0.7794 36.9819 68.9121 238.3295 51.9788 99.893 115.6272
18 12 7 5.5 7 0.885 34.9767 74.5503 285.645 41.4231 112.675 147.3769
18 14 4.5 3.5 7 0.8485 32.8585 85.2425 228.9634 41.4231 105.286 174.3769
Table 4
P1 P2 P15 QE WC WT QH QGC QS P13
20 10 7 216.3526 27.8169 39.1714 55.9236 195.341 228.7733 2.7401
20 14 7 203.9385 27.8169 35.0519 79.5401 177.76 228.7733 2.7401
18 14 7 203.9385 23.7252 31.7323 91.0697 177.761 241.075 2.7401
18 16 7 207.1094 23.7252 29.9015 97.6405 173.603 241.075 2.7401
18 16 6 210.14 56.308 33.959 85.4973 83.298 101.3558 2.7401
40
Graph 9
The graphs are piece wise linear curve fitting and parabolic curve fitting for saturated
pressure and temperature values. As we can the difference is very less between the two
curves.
41
CHAPTER 6
CONCLUSIONS
We have done modelling using constant area and constant pressure models in the
ejector for the CCHP cycle. Carbon dioxide and nitrous oxide are taken as working
fluids. The trends in both constant area and constant pressure remained same in
respective variation of inputs. The work and heat outputs have variations in the two
models. The comparison for carbon dioxide and nitrous oxide is also done for the
respective outputs. Increase in mass rate increases work at turbine, heat output to
user, compressor work, heat at evaporator, heat rejected in gas cooler.
42
APPENDIX
i=1;j=1;a=1;
P2=10;
P1=20;
for P15=2:.5:7;
43
mt=1;
e=0.3;
for T13=-5;
P19=P1;
P3=P2;P4=P2;
P7=P15;P8=P15;P9=P15;P10=P15;P16=P15;P17=P15;P18=P15;
P13=f0(T13);
P11=P13;P12=P13;P14=P13;
T14=T13;
%turbine
h1=f1(P1,T1);
S1=f2(P1,T1);
S2s=S1;S15s=S1;
h2s=f3(P2,S2s);
h15s=f3(P15,S15s);
h2=h1-(nT*(h1-h2s));
h15=h1-(nT*(h1-h15s));
mp=e*mt;m15=mt-mp;
wt=mp*(h1-h2)+m15*(h1-h15);
%heater 1
44
h16=f1(P16,T16);
QH1=m15*(h15-h16);
%gas cooler 1
h17=f1(P17,T17);
Qgc1=m15*(h16-h17);
%heater 2
h3=f1(P3,T3);
QH2=mp*(h2-h3);
%gas cooler 2
h4=f1(P4,T4);
Qgc2=mp*(h3-h4);
QH=QH1+QH2;
Qgc=Qgc1+Qgc2;
%ejector
for w=0.3:0.1:.7;
for P5=2:.5:7;
ms=w*mp;
m=mp+ms;
S4=f4(P4,h4);
S4ds=S4;
45
h4ds=f5(P5,S4ds);
h4d=h4-nN*(h4-h4ds);
u4d=sqrt(2*(h4-h4d)*10^3);
v4d=f6(P5,h4d);
a4d=(m*v4d/((1+w)*u4d));
S14=f7(P14,T14);
S14ds=S14;
h14=f9(P14,1);
h14ds=f5(P5,S14ds);
h14d=h14-nN*(h14-h14ds);
u14d=sqrt(2*(h14-h14d)*10^3);
v14d=f6(P5,h14d);
a14d=m*w*v14d/((1+w)*u14d);
%mixing section
ap=a4d; as=a14d;
for P6=2:0.1:7.3;
u6=((P5*10^6*(ap+as))+(m*u4d/(1+w))+(m*w*u14d/(1+w))-(P6*10^6*(ap+as)))/m
;
h6=(h4/(1+w))+(h14*w/(1+w))-u6^2/2000;
v6=f6(P6,h6);
46
%put conditios
p=((ap+as)*u6/v6);
if abs(m-p)<=0.001;
Z=m-p;
i=i+1;
end
end
end
end
end
end
for j=1:10000;
S6=f7(Q(j,4),Q(j,5));
S7s=S6;
h7s=f5(Q(j,7),S7s);
h71=Q(j,5)+((h7s-Q(j,5))/nD);
h72=Q(j,5)+(Q(j,6)^2/2000);
A=h71-h72;
47
h7=(h71+h72)/2;
if abs(A)<=40;
a=a+1;
end
end
b=1;
for k=1:10000;
x=f8(R(k,5), R(k,4));
x1=1/(1+R(k,1));
if x > x1;
b=b+1;
end
end
c=1;
for d=1:10000;
48
mp=R(d,16)*R(d,15);
m8=Y(d,6)*R(d,16);
m88=(1-Y(d,6))*R(d,16);
h8=f9(Y(d,5),1);
h88=f9(Y(d,5),0);
m11=R(d,16)*(Y(d,6)-(1/(1+Y(d,1))));
h11=h8; h9=h8;
h12=h88;
h13=((m88*h12)+(m11*h11))/m15;
h14=f9(Y(d,7),1);
Qe=m15*(h14-h13);
h10=h8;
h17=f1(Y(d,5),T17);
Qgc1=m15*(h16-h17);
h18=(((R(d,16)-mp)*h17)+(mp*h8))/R(d,16);
S18=f7(Y(d,5),h18);
S19s=S18;
h19s=f3(Y(d,8),S19s);
h19=h18-((h18-h19s)/nC);
WC=R(d,16)*(h19-h18);
QS=R(d,16)*(Y(d,9)-h19);
49
% w P5 P6 h7 P15 x P13 QeWC Wt P(c,1:18)=[Y(d,1)
Y(d,2) Y(d,3) Y(d,4) Y(d,5) Y(d,6) Y(d,7) Qe WC Y(d,10)
QH Qgc QS P1 P2 e mt T15
c=c+1;
End
k=1;
for P15=4:7;
P1=20;
P2=10;
50
P3=P2;P4=P2;P19=P1;
P7=P15;P8=P15;P9=P15;P10=P15;P16=P15;P17=P15;P18=P15;
P13=f10(T13);
P11=P13;P12=P13;P14=P13;
T14=T13;
%turbine
h1=f11(P1,T1);
S1=f12(P1,T1);
S2s=S1;
S15s=S1;
h2s=f13(P2,S2s);
h15s=f13(P15,S15s);
h2=h1-(nT*(h1-h2s));
h15=h1-(nT*(h1-h15s));
mp=e*mt;
m15=mt-mp;
wt=mp*(h1-h2)+m15*(h1-h15);
%heater 1
h16=f11(P16,T16);
QH1=m15*(h15-h16);
%gas cooler 1
51
h17=f11(P17,T17);
Qgc1=m15*(h16-h17);
%heater 2
h3=f11(P3,T3);
Qh2=mp*(h2-h3);
%gas cooler 2
h4=f11(P4,T4);
Qgc2=mp*(h3-h4);
Qh=QH1+Qh2;
Qgc=Qgc1+Qgc2;
%ejector
for w=0.7:.01:.8;
for P5=2:0.1:4;
ms=w*mp;
m=mp+ms;
S4=f14(P4,h4);
S4ds=S4;
h4ds=f15(P5,S4ds);
h4d=h4-nN*(h4-h4ds);
u4d=sqrt(2*(h4-h4d)*10^3);
52
%for suction nozzle
S14=f17(P14,T14);
S14ds=S14;
h14=f19(P14,1);
h14ds=f15(P5,S14ds);
h14d=h14-nN*(h14-h14ds);
u14d=sqrt(2*(h14-h14d)*10^3);
%mixing section
u6s=(u4d/(1+w))+(w*u14d/(1+w));
u6=sqrt(nM)*u6s;
h6=(h4/(1+w))+(h14*w/(1+w))-(u6^2/2000);
S6=f17(P5,h6);
S7s=S6;
h7s=f15(P7,S7s);
h71=h6+((h7s-h6)/nD);
h72=h6+(u6^2/2000);
A=h71-h72;
h7=(h71+h72)/2
if abs(A)<=100;
k=k+1;
53
end
end
end
end
a=1;
for k=1:10000;
x=f18(R(k,1), R(k,2));
x1=1/(1+R(k,3));
if x>x1;
a=a+1;
end
end
c=1;
for d=1:10000;
m8=Q(d,6)*mt;
m88=(1-Q(d,6))*mt;
54
h8=f19(Q(d,1),1);
h88=f19(Q(d,1),0);
m11=mt*(Q(d,6)-(1/(1+Q(d,3))));
h11=h8; h9=h8;
h12=h88;
h13=((m88*h12)+(m11*h11))/m15;
h14=f19(Q(d,1),1);
Qe=m15*(h14-h13);
h10=h8;
h17=f11(Q(d,1),T17);
Qgc1=m15*(h16-h17);
h18=(((mt-mp)*h17)+(mp*h8))/mt;
S18=f17(Q(d,1),h18);
S19s=S18;
h19s=f13(P1,S19s);
h19=h18-((h18-h19s)/nC);
WC=mt*(h19-h18);
QS=mt*(h1-h19);
c=c+1;
end
55