Dr. Sadaf Siddiq 08F UET PHD ME 47
Dr. Sadaf Siddiq 08F UET PHD ME 47
Dr. Sadaf Siddiq 08F UET PHD ME 47
Submitted by
Engr. Sadaf Siddiq
(08F-UET/PhD-ME-47)
Supervised by
Prof. Dr. Shahab Khushnood
Approved by
External Examiners
________________________________
(Engr. Dr. M. Javed Hyder)
Dean of Engineering,
________________________________
(Engr. Dr. Ejaz M. Shahid)
Associate Professor,
DECLARATION
I declare that all material in this thesis is my own work and that which is not, has been
identified and appropriately referenced. No material in this work has been submitted or
approved for the award of a degree by this or any other university.
Signature: _____________________________
It is certified that the work in this thesis is carried out and completed under my supervision.
Supervisor:
Prof. Dr. Shahab Khushnood
Department of Mechanical Engineering
Faculty of Mechanical and Aeronautical Engineering
University of Engineering and Technology
Taxila, Pakistan.
iii
ABSTRACT
This work focuses on extending the use of a solar thermal energy plant from an intermittent
energy source to a base load power plant by incorporating an efficient thermal storage feature.
A reference 10 MWe solar thermal plant design is considered with liquid ammonia as a
working fluid for energy production, in a Rankine Cycle, as well as a thermal storage
medium. During periods of no solar insolence, the recovery system, based on an industrial
ammonia synthesis system, is used to drive the power conversion unit and enable continuous
operation.
A thermofluid model, based on the continuity, momentum and energy conservation equations,
is used to carry out a numerical simulation of the plant, to determine the process variables
and subsequently carry out an integrated plant energy recovery analysis. The objective of this
work is to maximize the efficiency of the plant by a detailed consideration of the most critical
process in the plant: the energy recovery unit. This is carried out by (i) estimating the
sensitivity of non-uniform catalyst concentration in a synthesis reactor, and (ii) obtaining an
optimal configuration from a variational Lagrangian cost functional and applying
Pontryagins Maximum Principle. The optimal configuration is used to recommend a redesign of the synthesis reactor and to quantify the energy recovery benefits emanating from
such a recommendation. Industrial optimal configurations are achieved by carrying out the
analysis with the simulation code, Aspen Plus, to design a heat removal system
surrounding the catalyst beds, and incorporating the effect of standard industrial processes
iv
such as purge gas removal, quench gas recycling, and recycle ratio to achieve the optimal
temperature profile obtained for the synthesis reactor considered in this work.
This work quantifies the maximum energy recovery in a base-load solar thermal plant
utilizing the existing environment of chemical process industry. It is concluded that a onedimensional model, with mass and energy conservation equations using the Temkin-Pyzhev
activity and pressure-based kinetics rate expressions, predicted an optimal ammonia
conversion of 0.2137 with a thermal energy availability of 20 MWth. A comprehensive
process simulation using Aspen Plus predicts an optimal ammonia conversion of 0.2762
mole fraction at exit, with two inter-bed heat exchangers having optimal temperature drops of
205K and 95K respectively, and yielding a thermal availability of 45.6 MWth. The thermal
energy availability of a base-load solar thermal plant can be increased by 15% in the
ammonia conversion and over 25% in thermal energy availability for energy recovery.
To my family . . .
vi
ACKNOWLEDGEMENTS
During the development of my PhD studies at University of Engineering & Technology
Taxila, several persons and institutions collaborated directly and indirectly with my research.
Without their support it would be impossible for me to finish my work. That is why I wish to
dedicate this section to recognize their support.
I want to start expressing a sincere acknowledgement to my advisor, Prof. Dr. Shahab
Khushnood because he gave me the opportunity to research under his kind guidance and
supervision. I received motivation; encouragement and support from him during all my
studies. I owe Special thanks to Dr. Zafar Ullah Koreshi for the his support, guidance, and
transmitted knowledge for the completion of my work. With him, I have learned writing
papers for conferences and journals and sharing my ideas with the scientific community. I
also want to thank the example, motivation, inspiration and support I received from Dr.
Tasneem M. Shah, Dr. Arshad H. Qureshi and Dr. M. Bilal Khan.
The Grant from University of Engineering & Technology Taxila provided the funding and
resources for the development of this research and validation of my work. At last, but the
most important I would like to thank my family, for their unconditional support, inspiration,
love and prayers.
vii
NOMENCLATURE
A
ANU
Cp
Cr
Compression Ratio
CSP
Ff s
FN0
Gt
Hamiltonian
Functional
J i , J i*
Molar Fluxes
Kinetic Energy
Ka
Equilibrium constant
KBR
MTD
Mtoe
MWe
Megawatt electric
MWth
Megawatt thermal
OEM
Pressure (MPa)
Linear Momentum
PMP
PV
PhotoVoltaic
Heat
viii
RA
RK-4
Temperature (K)
TEM
TSP
TWh
Watts
ai
ci
dp
Particle Diameter
ji , ji*
Mass Fluxes
kWe
kilowatt Electric
kWchem.
kilowatt chemical
kWth
kilowatt thermal
Mass (kg)
ni0
ppm
Molar Production
Time
Control variable
Velocity (m s-1)
Work
ix
yi
yi
z, z N
Greek
H r
Extent of reaction
Potential Energy
Lagrange multiplier
(x)
(x)
Optimal Temperature
Subscripts
eqm
Equilibrium
opt
Optimal
Isentropic
tot
Evaluated at a surface
1,2
Table of Contents
ABSTRACT ....................................................................................................................................................... IV
ACKNOWLEDGEMENTS ............................................................................................................................ VII
NOMENCLATURE ...................................................................................................................................... VIII
TABLE OF CONTENTS .................................................................................................................................. XI
TABLE LIST ................................................................................................................................................... XIII
FIGURE LIST ................................................................................................................................................ XIV
1
INTRODUCTION .....................................................................................................................................1
1.1 SOLAR ENERGY: POTENTIAL AS A RENEWABLE ENERGY SOURCE ............................................................2
1.2 SOLAR POWER PLANTS IN OPERATION ......................................................................................................5
1.2.1
PV Plants ........................................................................................................................................5
1.2.2
Solar Thermal Plants ......................................................................................................................7
1.3 THERMAL ENERGY STORAGE REQUIREMENT............................................................................................9
1.4 THERMAL STORAGE MATERIALS ..............................................................................................................9
1.5 USE OF LIQUID AMMONIA AS STORAGE MATERIAL ................................................................................ 11
1.5.1
Poperties of Liquid Ammonia ....................................................................................................... 12
1.5.2
Dissociation and Synthesis of Ammonia ....................................................................................... 12
1.5.3
Commercial uses of Ammonia ...................................................................................................... 13
1.5.4
Industrial proprietary processes for Ammonia Production .......................................................... 14
1.5.4.1
1.5.4.2
1.5.4.3
1.5.4.4
1.5.4.5
1.6
1.7
1.8
1.9
1.10
2
xi
3.1.2.1
3.1.2.2
3.3
3.4
4
PLANT OPTIMIZATION...................................................................................................................... 62
4.1 REVIEW OF OPTIMIZATION TECHNIQUES ............................................................................................. 62
4.2 OPTIMAL ANALYSIS USING VARIATIONAL CALCULUS ........................................................................ 72
4.3 PARAMETRIC SENSITIVITY ANALYSIS .................................................................................................... 78
4.3.1
Effect of Temperature on Dissociation ......................................................................................... 78
4.3.2
Effect of Flow Rate on Dissociation ............................................................................................. 79
4.3.3
Effect of Pressure on Synthesis ..................................................................................................... 80
4.3.4
Effect of Temperature on Synthesis .............................................................................................. 80
4.3.5
Effect of Flash Temperature on Liquid Ammonia Separation ...................................................... 82
4.3.6
Effect of Purge Fraction on Ammonia Liquification .................................................................... 83
4.3.7
Effect of Recycle Stream on Synthesis .......................................................................................... 84
APPENDIX B
APPENDIX B1: MATLAB PROGRAM FOR OUTPUT OF STEADY STATE SYNTHESIS REACTOR ....................... 123
APPENDIX B2: MATLAB PROGRAM FOR FINDING EQUILIBRIUM CONCENTRATIONS ................................... 149
APPENDIX B3: MATLAB PROGRAM FOR FINDING OUTPUT OF COUNTER-FLOW SYNTHESIS REACTOR....... 153
APPENDIX B4: MATLAB PROGRAM FOR FINDING OUTPUT OF STEADY STATE SYNTHESIS REACTOR WITH 3
CATALYST ZONES .......................................................................................................................................... 157
xii
Table List
Tables
Page
xiii
Figure List
Figures
Page
xv
1 INTRODUCTION
In the coming centuries of the decline of the worlds fossil energy stocks, an electricity
production mix will establish which will be inevitably dominated increasingly by alternate &
renewable energies.
The alternate energy sources are available in form of solar energy, wind energy,
hydroelectric, geothermal, wave and tidal power etc. The current global energy consumption
is 15TWe per year while the solar energy potential is estimated to be 86000 TWe per year
[46].
Solar energy can be utilized either as a direct photovoltaic (PV) source, where the light is
converted directly into electrical energy or as concentrated solar power where a fluid is
heated by concentrating the solar thermal energy to produce electricity in a thermal power
plant. Solar thermal energy is concentrated using different techniques, such as, Parabolic
Trough, dish System and power tower etc.
The success of solar thermal systems for electricity production hinges very crucially on the
selection, mechanical design and optimal operation of an energy storage system which can
enable the continuous operation of a power plant. The energy storage systems being
investigated include solid graphite, encapsulated Phase Change Materials (PCMs) in a
graphite matrix, and liquid ammonia [72].
This work focuses on extending the use of a solar thermal energy plant from an intermittent
energy source to a base load power plant by incorporating an efficient thermal storage feature.
A reference 10 MWe solar thermal plant design is considered with liquid ammonia as a
working fluid for energy production in a Rankine Cycle as well as a thermal storage medium.
During periods of no solar insolence, the recovery system, based on an industrial ammonia
synthesis system, is used to drive the power conversion unit and enable continuous operation.
The objective of this work is to increase the efficiency of ammonia synthesis process for
maximum heat recovery and hence to improve the performance of Solar Thermal Storage
plant.
According to a study by the World Energy Outlook [14] a Reference Scenario studies the
period 2006-2030 and estimates an increase in world primary energy demand of 45% from an
annual of 11730 Mtoe to over 17010 Mtoe at 1.6% increase per year. While oil remains the
dominant fuel, its share decreases from 34% to 30% over this period. In the same period, gas
rises at 1.8% per year to 22% while coal, at an annual increase of 2% rises from 26% to 29%.
Thus the fossil fuels contribute to 81% of the total primary energy demand by 2030.
Notwithstanding the impact of a nuclear renaissance, the contribution of nuclear power to
primary energy drops from 6% to 5%; this is an electricity generation share from 15% to 10%
by 2030.
In this period, renewable energy sources take second place after coal for electricity
generation. The contribution of hydropower drops from 16% to 14% while non-hydro
renewables, growing at an average annual rate of 7.2% increase from less than 1% to 4%.
The absolute magnitude of the non-hydro renewables increases from 66 Mtoe in 2006 to 350
Mtoe by 2030.
The power outlook has coal contribution to electricity generation increasing from 41% in
2006 to 44% in 2030, while the share of renewable grows from 18% to 23% in the same
period. The worlds final electricity consumption grows from 15665 TWh to 28141 TWh at
an average annual growth of 2.5%. This corresponds, in the Reference Scenario, to an
electricity generation of 18921 TWh in 2006 to 33265 TWh in 2030.
The factors accelerating the share of renewables are climate change, to attain the CO2 ppm
goal, the higher cost of oil and gas and energy security. Among the renewables, hydropower
will continue to be the dominant while others will include wind, solar, biomass and
geothermal energy.
The sun, as the primary source of energy for the solar system, supplies over 30,000 TWyr/yr
which, compared with the global energy requirement of the order of 20 TWyr/yr over the
next generation, may be considered to be a virtually inexhaustible source [46]. Solar energy
is useable as thermal energy, bioenergy from photosynthesis, and as a source for photovoltaic
conversion. Solar energy is truly renewable and sustainable as it is non-depletable, carbon
emission free, scalable, readily accessible, robust and flexible. The issues which will ensure
its place in the future energy scenario is its economic competitiveness in comparison with
existing technologies. A key technological issue that lies at the core of economic
competitiveness of solar energy -- thermal energy storage, is the focus of this thesis.
For electricity generation, the solar energy options available are photovoltaic (PV)
technology and concentrated solar power (CSP) technology. PV technology is based on the
direct conversion of photon energy from the Sun to electricity. Since the energy from the sun
is spread over a large range of wavelengths, a PV collector is designed to utilize as much of
the available spectrum as possible. The primary limitation is the detection window of the
sensor material forming the collector. The efficiency of a PV collector has remained low
(about 20%) and thus its application has been generally limited to mini-power requirements
such as off-grid homes [168][175]. However, larger PV plants have been built and the total
PV technology had a global installed capacity of 6 GWe in 2006, growing by 2009 to
15GWe and by the end of 2009 to 23 GWe, but had the disadvantage of having the highest
generating cost (US$ 5500-9000 per kWh in 2007) compared to all renewable technologies.
The Reference Scenario estimates the cost to reduce to US$ 2600 per kWh by 2030. CSP
technology uses optics to focus sunlight to a small receiver where the energy can be utilized
to convert water to superheated steam for electricity generation in a turbine. The total
installed capacity of CSP was 354 MWe in 2006. This technology is expected to be
comparable in cost (US$ 2-3 per kW: 2007) with gas-fired, but generally more expensive
than coal-fired generation, wind and nuclear.
Name
Country
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
China
Ukraine
Canada
Italy
Nominal
Power(MWe)
200
100
97
84.2
Germany
Germany
Ukraine
Thailand
Germany
Italy
France
Spain
Canada
Germany
Germany
Germany
China
China
Italy
USA
82
80.7
80
73
71.8
70
67.2
60
60
54
52
50
50
48
48
47.6
Spain
Portugal
Germany
USA
Italy
India
Germany
Czech Republic
Germany
Italy
Czech Republic
USA
Spain
Italy
Germany
Spain
USA
46
45
45
42.7
40
39.5
38.3
38
36.2
35.1
35
34.4
34
33
32
31.8
30.2
38
39
40
41
42
43
44
45
46
47
48
49
USA
Spain
Germany
USA
India
USA
Spain
Spain
USA
Czech Republic
Germany
Germany
30
30
30
30
30
30
29.9
27.5
26.4
26
25.7
25
Name
Country
USA
Capacity
(MWe)
354
parabolic trough
Spain
Spain
150
150
parabolic trough
parabolic trough
Technology
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Kuraymat Plant
Beni Mathar Plant
Yazd integrated solar combined
cycle power station
24
Gemasolar
25
PS10 solar power tower
26
Kimberlina Solar Thermal
Energy Plant
27
Sierra SunTower
28
Archimede solar power plant
29
Thai Solar Energy (TSE) 1
30
Liddell Power Station Solar
Steam Generator
31
Keahole Solar Power
32
Maricopa Solar
33
Jlich Solar Tower
34
Saguaro Solar Power Station
35
Shiraz solar power plant
Overall Capacity
Spain
Spain
100
100
parabolic trough
parabolic trough
Spain
Spain
USA
100
100
75
parabolic trough
parabolic trough
ISCC
USA
Spain
Spain
Spain
Spain
Spain
Spain
Spain
Spain
Spain
Algeria
64
50
50
50
50
50
50
50
50
31.4
25
parabolic trough
parabolic trough
parabolic trough
parabolic trough
parabolic trough
parabolic trough
parabolic trough
parabolic trough
parabolic trough
fresnel reflector
ISCC
Spain
20
Egypt
Morocco
Iran
20
20
17
ISCC
ISCC
parabolic trough
Spain
Spain
USA
17
11
5
USA
Italy
Thailand
Australia
5
5
5
2
USA
USA
Germany
USA
Iran
1702.65
2
1.5
1.5
1
0.25
parabolic trough
dish stirling
solar power tower
parabolic trough
parabolic trough
phase
se change materials is shown
will be in excess of 1000 oC. The storage capacity of some pha
below [66].. It can be seen that the highest storage capacity is for salts.
10
Salts freeze 350-500 oC and boil at ~1000 oC. They have a high volumetric heat capacity and
may be used, even in graphite blocks. Liquid fluoride salts are also widely available, as they
are used in aluminium metal extraction Hall electrolysis process in which aluminium oxide
is dissolved in cryolite which is a sodium-aluminium fluoride salt. Fluoride salts are
compatible with graphite upto 1400 oC [176].
11
77 .73 C and has a density of 681.9 kg/m at its boiling point -33.34 C ; it must thus be
kept at very low temperature or stored at very high pressure [165]. Liquid ammonia was first
produced on an industrial scale in Germany, during the First World War, by the Haber Bosch process [110].
12
N 2 + 3H 2 2 NH 3
(H = -92.22 kJ/mol)
is an exothermic reaction for which the pressure required is in the range 130 250 bar, and
the temperature required is in the range 250 600 oC. High temperature gives higher reaction
rate, but as reaction is exothermic, higher temperature according to Le Chateliers principle
causes the reaction to move in the reverse direction hence a reduction in product. Similarly,
higher Temperature reduces the equilibrium constant and hence the amount of product
decreases; this is the Vant Hoff equation
ln K =
H o S o
+
RT
R
An increase in pressure, however, causes a forward reaction and is thus favorable. Synthesis
is achieved by using catalysts such as osmium, ruthenium, and iron-based catalysts [110].
13
14
converters), and process optimization studies. The carbon monoxide concentrations have
been minimized at the exit of the shift converters, and a low-energy carbon dioxide removal
process (such as selexol) has been used. New syn converters S-250 and S-300 are improved
versions of the previous single bed S-50 and two-bed S-200 radial flow converters. Topsoe
recommends S-300, developed in 1999, for all new plants [[21], [24].
Basic Design
One catalyst bed
Two catalyst beds and one interbed
heat exchanger
Combination of the S-200 followed
by the S-50
Three catalyst beds with two
interbed heat exchangers
Comments
Simplest and cheapest
Commissioned in 1979; 130
units installed
1.5.4.2 Kellog Brown & Roots (KBR) Advanced Ammonia Process (KAPP)
KAAP uses a traditional high-pressure heat exchange based steam reforming process
integrated with a low-pressure advanced ammonia synthesis process. The steam reforming of
hydrocarbon based on Kellogg Brown and Root Reforming Exchange System (KRES) is
15
carried out which reduces energy consumption and capital cost besides reduced emissions
and enhanced reliability.
After reforming, carbon monoxide is removed from the shift converter, and carbon dioxide is
removed from the process gas using hot potassium carbonate solution, methyl diethanol
amine (MDEA) etc.
KAAP uses a high activity graphite supported ruthenium catalyst, typically three stages, after
one stage of traditional iron catalyst. This is claimed to increase the activity 10 to 20 times
enabling very high conversion at a lower pressure of 90 bar [10].
KBR is a large player in the ammonia and urea industry. It has been involved in the licensing,
design, engineering and/or construction of more than 200 ammonia plants and 62 urea
projects in the range of 600 to 3500 MTPD worldwide, representing approximately half of
current global ammonia production [23].
The ammonia synthesis loop uses two radial flow ammonia converters with three catalyst
beds, containing iron catalyst, and waste heat boiler located downstream of each reactor. The
converters have small grain iron catalyst.
Since 1994, Uhde has built 15 new ammonia and 13 new urea plants with annual production
capacities of more than 8 million tonnes of ammonia and 10 million tonnes of urea with
individual capacities ranging from 600 to 3,300 mtpd of ammonia and from 1,050 to 3,500
mtpd of urea [36]. Uhde has also been awarded a contract to build a 3300 MTPD Uhde
Dual-Pressure Process ammonia plant for Saudi Arabian Fertilizer Company (SAFCO) in
Al Jubail, Saudi Arabia [78].
The LAC process consists essentially of a modern hydrogen plant and a standard nitrogen
unit with a third-party license from Casale for a high efficiency ammonia synthesis loop [34].
Ammonia Casale [16] is one of the oldest companies in the business of synthetic ammonia
production, having been founded in Switzerland in 1921. To date it has been active in the
design of over 150 ammonia synthesis reactors and in the constructionof several new plants.
17
The CO shift conversion is carried out in a single stage in the tube cooled isothermal shift
converter and gas is sent to pressure swing absorption (PSA) unit wherein the process gas is
purified to 99.99 mole % hydrogen . A low temperature air separation in cold box is used to
produce pure nitrogen. BASFs MDEA process is also eliminated in this process used for
CO2 removal.
The ammonia synthesis loop is based on Casale axial-radial three-bed converter with internal
heat exchanger giving a high conversion. The energy consumption for ammonia production
is about 29.3 GJ/ MeT [16].
Thus far, four plants based on the relatively new Linde Ammonia Concept have been
constructed with capacities of between 230 to 1,350 MTPD of ammonia.
18
19
form of dishes, power towers, troughs and linear Fresnel etc. in commercial CSP systems.
The efficiency of these mechanisms can be evaluated on the basis of geometric concentration
ratio. The geometric concentration ratio for parabolic troughs and linear Fresnel systems can
be up to 100 and in excess of 1000 for power towers and dishes. This thermal energy can be
used to produce steam for immediate electricity generation, or alternatively it can be stored
prior to electricity generation using sensible heat storage in solids [27][49][66], molten salts
[88], phase change materials [9][39][145][153], or thermochemical storage cycles [15].
Thermochemical energy storage for CSP is less mature than molten salt and other thermal
storage methods, but it has the potential to achieve higher storage densities and hence smaller
storage size. Reactions involving ammonia, hydroxides, carbonates, hydrides, and sulfates
are the important candidates for thermochemical energy storage [15][67]. At first,
thermochemical storage loops based on methane reforming received considerable attention
[58][115][138][141]. Methane reforming is still under research for solar enhancement of
natural gas [30] and hydrogen production [31]. A lot of research is being conducted on solar
fuel production by making use of thermochemical processes [17][38].
The concept of ammonia-based energy storage for concentrating solar power systems was
first proposed by Carden in 1974 at the Australian National University [174][177] followed
by the researchers at Colorado State University in early 1980s [163].
Researchers at ANU [132][167] and Colorado State University [163] have concluded after
theoretical analysis and experimental results [109] that dish concentrators are the most
suitable solar receiver designs for ammonia dissociation because they provide a
circumferentially homogenous solar flux profile [136] which can facilitate thermochemical
20
reactor design inferring that only simple control systems are necessary, thus the mobile
receiver can be maintained at a light weight, and solar transients are easy to handle
[132][137]. Feasilbility of parabolic trough systems have also been investigated for use with
CSP employing ammonia based energy storage systems [97].
Prototype solar ammonia receiver/reactors, Mark I and Mark II were tested in 1994 and 1998
respectively both employing a 200-mm long cavity type reactor mounted on a 20-m2 faceted
paraboloidal dish. Haldor-Topse DNK-2R iron-cobalt catalyst was used in the annular
catalyst beds [108]. These reactors were rated for 1.0 2.2-kWchem conversion. Recent work
is being conducted on paraboloibal dishes of area 400-m2, 489-m2 and newly constructed
500-m2 for a base load plant size of upto 10 MWe [11].
For solar collector/receiver design improvements, investigations into convection losses from
cavity receivers have been undertaken [12][81] as these improvements can amount to solarto-chemical efficiency gains of up to 7% absolute [106].
The kinetic mechanisms for the synthesis and decomposition of ammonia have been
described by various authors for ironbased catalysts [120][186][189][195] and for rutheniumbased catalysts [111][121][126].
Comprehensive studies for solar energy heat [104],[106]] recovery have been carried out on
an experimental 1-kWchem. synthesis reactor by Kreetz and Lovegrove [106] in a laboratoryscale high-pressure closed-loop system with a feed-gas mass flow rate of
0.3 g s-1 at
pressures ranging from 9.3 to 19 MPa. With external pre-heating of the feed gas, average
external wall temperature varying between 250-480C and peak internal reactor temperatures
varying between 253-534C, the maximum reaction was reported by Kreetz and Lovegrove
21
[106] to have been achieved at approximately 450C. In their optimal system, a net heat
recovery rate of 391 W was reported. The study by Kreetz and Lovegrove [106] was extended
to a 10 kW system with an ammonia synthesis tubular reactor at a pressure of 20 MPa and a
flow rate of 0.9 g s-1 [79]. The larger system, with a controlled linear temperature profile in
the reactor wall, and the gas inlet temperature kept to 50 C lower than the wall temperature
at the inlet, resulted in a maximum thermal output achieved at an average wall temperature of
475C produced with an inlet temperature of 500 C and a slope of -50 C m-1. Such studies
have attempted to achieve optimal heat recovery by varying the inlet temperature arbitrarily
instead of attaining the optimal temperature suggested by theoretical models, such as
variational methods.
ammonia production rates at pressures lower than the industry standard pressures, hence
cutting the costs.
1.9 Objectives
The use of liquid ammonia, as a thermo-chemical energy storage medium, for endothermic
dissociation by solar energy during insolence and subsequent energy recovery by exothermic
synthesis is considered to be a strong candidate for the design of a base-load solar thermal
power plant.
The technology of ammonia production is well established as is the modeling and simulation
of ammonia synthesis. However, optimization of the process is an on-going challenge as
technological innovations enable better designs resulting in improved efficiency. As part of
this optimization challenge, this thesis considers the possible improvement in the recovery of
exothermic thermal energy by optimization of the ammonia synthesis process. While
ammonia production has remained almost the same for decades, the energy consumption has
reduced as technology improvements have been incorporated especially for the fertilizer
industry where over 90% of the energy utilization is for ammonia synthesis [76].
The objective of the study will be achieved by:
Parametric Sensitivity studies leading to an optimized design of a TSP
i.
ii.
iii.
iv.
23
24
25
4.608 TJ in a day. These assumptions are optimistic even for the high solar insolence of
about 20 MJ/m2 for Pakistan [150].
TABLE 2.1: Overall Plant Design for a 10 MW(e) Baseload Plant
BASIC DATA
Dissociation Energy
Synthesis Energy
Power Density
Insolation Hours per Day
Dish Area
No. of Dishes
extent of dissociation reaction
Electrical Power Reqd (24hrs)
Synthesis Conversion
Rankine Cycle Effciency
kJ/mol
kJ/mol
Watts / m^2
Hr
m^2
MW(e)
66
46.6
1000
8
400
400
0.9
10
0.2
0.4
POWER INPUT
Thermal Power Available/day
Thermal Power Available/day
kW-hr/m^2 per
day
MJ/m^2 per day
8
28.8
11520
4608000
288000
720000
POWER OUTPUT
Recoverd Synthesis Energy
Converted Synthesis Energy
MJ per day
MJ per day
921600
368640
Overall Efficiency
26
193939.39
3296.97
1318.79
45.79
0.1145
Key design parameters are the thermal power intercepted by the plant during insolence (4.6
TJ), the thermal energy needed (2.1 TJ) for a baseload of 10 MW(e), the recovered synthesis
energy (0.922 TJ) and the final converted energy (0.368 TJ). In this scenario, three
efficiencies are assumed viz (i) the extent of dissociation (0.9) [47], (ii) the synthesis
conversion (0.2), and (iii) the Rankine efficiency (0.4) [[15],[79],[130].
The purpose of the present research is to estimate the best possible synthesis conversion, by
optimizing the catalyst distribution, to investigate the feasibility of such baseload operation.
27
Arrhenius factor. Thus, a real system absorbs heat at temperatures higher than the
equilibrium curves suggest and then releases it at lower temperatures.
The input temperature for the power cycle is an extremely important issue for all thermalbased energy storage systems, not just thermochemical ones. Electric power generation via a
thermal cycle is limited by the second law of thermodynamics lower temperature thermal
inputs reduce the efficiency of power generation. Thus, in designing and examining thermal
energy storage systems, it is necessary to consider both thermal efficiencies (energy
out/energy in) and second law efficiencies (potential for work out/potential for work in).
A TSP will have operational parameters, pressures, temperatures and flow rates, similar to
those in the ammonia units of urea fertilizer plants in the chemical process industry. These
require pressures in the range of 130-250 bar and temperatures in the range 250-600 oC for
flow rates typically of the order of 50 kg s-1 for a 1500 MTD ammonia plant. Such high
pressures require compression which is expensive in terms of equipment cost as well as
energy utilization
28
for the grid. At 20 MPa and 300 K, the enthalpy of reaction is 66.8 kJ/mol, equivalent to 1.09
kWh/kg of ammonia, or 2.43 MJ/L, with the corresponding density of 0.6195 kg/L [165].
29
conventional magnetite catalyst and is used to lower the synthesis operating pressure to 90
bar which is one-half to two-thirds the operating pressure of a conventional magnetite
ammonia synthesis loop and hence cutting plant costs.
31
This mixed stream (MIX-OUT), heated in SRIN-HX to a temperature of 370 oC and is fed
into the catalyst-containing synthesis reactor (SYNRCTR) where the synthesis reaction, in
the forward direction, converts nitrogen and hydrogen into ammonia and hence producing
energy.
The effluent stream passes through the recovery heat exchanger (SROUT-HX) into the
Knock-Out drum FLASH, where the liquid ammonia is sent back to the storage tank through
stream PRODNH3 and stream VAPOR is carried to the purging system. The VAPOR stream
from Flash tank (FLASHT) contain traces of undesirable gasses such as Argon, Carbon
Monoxide and Carbon Dioxide. Argon has high partial pressure while Carbon Monoxide and
Carbon Dioxide are poisons for the Catalyst. Some of the cycle gas must be purged from the
Synthesis Loop. Otherwise, the argon that enters the loop in the Syngas has no way to leave
and will build up in concentration. This will reduce the rate of the ammonia synthesis
reaction to an unacceptable level. To prevent this from happening, a small amount of the
cycle gas must be purged, the amount being determined by the amount of argon in the feed
and its acceptable level in the Synthesis Converter feed (generally about 10 mol %). A
splitter is used to divide the VAPOR stream into PURGE and RECYCLE streams.
Another re-cycle compressor (RCOMP) is required at this stage to restore the pressure to the
required level till the stream (FEED2) is mixed with the feed stream (FEED1) and enters as
stream MIXER-OUT.
33
Mass:
d
mtot = 1 2 + 0 = 2 v2 S 2 + 0
dt
3.1
Mass of Species i:
d
mi ,tot = i1 i 2 + i 0 + ri ,tot
dt
i = 1,2,3,......N
3.2
Momentum:
d
v 2
v 2
tot = ( 1 1 + p1S1 )1 ( 2 2 + p2 S2 )2 + mtot g + F0 F f s
dt
v1
v2
3.3
(Total) energy:
d
1 v13
1 v23
( K tot + tot + U tot ) = (
+ gh1 + H 1 )1 (
+ gh2 + H 2 )2 + w + Q0 Q
dt
2 v1
2 v 2
34
3.4
In terms of molar quantities, the continuity equation is expressed in terms of the molar
concentration c, and the mole fractions yi as
N
y
c i + (v* yi ) = ( J i* ) + Ri yi R
t
=1
i = 1,2,3,.....N
3.5
(i=1,2,3,..N)
Dt
Momentum:
Dv
= [ ] + g
Dt
Energy:
D 1
(U + v 2 ) = ( q) ( pv) ( [ v]) ( v g )
Dt
2
The above have been expressed by Dashti [64] as
RNH 3
dz
=
dx 2 FNo2 / A
dT
vC p
+ ( H r )RNH 3 = 0
dx
2
2
dP = 2v = 150 (1 ) v 1.75 (1 ) v
dx
d p2
dp
3
3
3.6
A simpler analysis ignores the pressure drop in flow reducing to the conservation equations
for mass and energy with reaction kinetics, used by Yuguo [152] and Dashti [64]
dz RNH 3
=
dx 2 FNo / A
dT
vC p
+ ( H r )RNH 3 = 0
dx
3.7
3.8
35
For the reaction kinetics, the Temkin-Pyzhev [64],[152] form for the synthesis reaction rate
as a function of the pressure, temperature, and activities is used
R A RNH 3
2
a1H.52
a NH
= 2k K a a N 2
1.53
a NH 3
aH 2
3.9
where the activities are defined as ai = yii P . The individual activities are:
3
3
6 2
6 2
N 2 = 0.93431737 + 0.2028538 X 10 T + 0.295896 X 10 P 0.270727 X 10 T + 0.4775207 X 10 P
3.10
0.129
0.5
E
k = ko exp
RT
3.11
and the specific heat capacities of hydrogen, nitrogen, methane and argon of the syngas (T in
Kelvin, Cp in J/mol-K) are expressed as:
2
5 2
9 3
C p N 2 = 4.184(6.903 0.03753 X 10 T + 0.01930 X 10 T 0.6861X 10 T )
C P Ar = 4.184 * 4.9675
3.12
E
t2
3.13
T
.
1000
36
have been used for the temperature range of interest (500-800K) and compared with
simplified expressions [96]:
C P , H = 27.01 + 3.51X 10 3 T
2
3
C
P , N 2 = 27.27 + 4.93 X 10 T
3
C
P , NH 3 = 29.75 + 25.11X 10 T
3.14
In this model, the compressor power requirements [96], [130] for isentropic compression, are
obtained with the ideal gas assumption, as
P ( 1) /
ws =
RT 1 2
1 1 P1
3.15
The actual work will of course be larger than ws and the ratio ws / wactual will depend on the
compressor efficiency. In terms of the initial and final temperatures (T1 & T2 ) , the work can
also be found from:
ws = H = C p (T1 T2 )
3.16
More generally, for a multi-stage compressor with n units, with the compression ratios (Cr) in
all the stages equal, the total work can be estimated from
ws =
n
( 1) /
RT1 1 (C r )
1
3.17
where, for an ideal gas P1V1 = RT1 . The above expressions are based on the assumption that
specific heats remain constant in the pressure and temperature range.
37
Similar models are also used to determine the compression requirement for recycle in the
converter, refrigeration duty, vaporizer and purge systems. Additional objectives will be to
quantify process-variable trade-offs with an aim to progress towards an optimal design.
The above model can be used to carry out an energy balance of the Process Flow Diagram
(PFD). The energy input components are thus the compressors (FCOMP, RCOMP), while
the energy output system is the heat recovery system.
The equilibrium constant is obtained from
log K a = 2.691122 log T 5.51925 X 10 5 T + 1.848863 X 10 7 T 2 +
2001.6
+ 2.689
T
3.18
The overall synthesis rate (kmol of ammonia produced per hr per unit volume of catalyst) is
R A where is the catalyst effect factor [64]. It is defined as:
3.19
and may have a significant effect on the overall efficiency. Equation 3.19 is in terms of T and
conversion percentage Z. The coefficients of this equation for three different pressures have
been depicted in table 3.2.
TABLE 3.2: Coefficients of the correction factor polynomial in terms of pressure
Pressure
(bar)
b0
b1
b2
b3
b4
b5
b6
150
-17.539096
0.07697849
6.900548
-1.08279e-4
-26.42469
4.927648e-8
38.937
225
-8.2125534
0.03774149
6.190112
-5.354571e-5
-20.86963
2.379142e-8
27.88
300
-4.6757259
0.02354872
4.687353
-3.463308e-5
-11.28031
1.540881e-8
10.46
38
The resulting equations are coupled non-linear partial differential equations, which are
converted to ordinary differential equations and solved by numerical integration [135].
The above model has been used by Siddiq et al [32], [33] to obtain the molar flow rates and
temperature of the syngas in a single-bed catalyst convertor, and the net power produced by
the TSP. For a plant of magnitude similar to that described in Dashti [64] the results for the
nitrogen conversion, syngas temperature and molar flow rates are shown in Figs. 3.1-3.4.
Conversion of N in the synthesis convertor
2
0.25
Conversion of N2 (Z)
0.2
0.15
0.1
0.05
0.5
1.5
2
2.5
Distance (m)
3.5
4.5
Temperature (K)
670
665
660
655
650
0.5
1.5
2
2.5
Distance (m)
39
3.5
4.5
10000
H2
N2
8000
NH3
6000
4000
2000
0.5
1.5
2
2.5
Distance (m)
3.5
4.5
6000
5000
4000
3000
2000
1000
0
1.5
2.5
3
3.5
Compression Ratio
4.5
41
The simplest Pseudo homogenous model is the one dimensional plug flow model, in which
the fluid is assumed to move as a plug through the reactor tube and the reaction rate which
depends on local species concentration, and temperature, is described as rate of specie
generation or consumption per unit reaction volume [148].
A flat velocity profile and uniform temperature and concentration at the radial cross-section
are assumed. The model ignores axial and radial dispersion and heterogeneous effects due to
solid-gas inter-phase gradients [82],[93],[113][134],[141]. This results in coupled non-linear
first-order ordinary differential equations of the initial value type which can be numerically
solved to obtain concentration and temperature profiles as a function of the axial position.
These equations are considerably simpler than a two-dimensional model which accounts for
axial and radial dispersion but results in coupled partial differential equations requiring
advanced numerical techniques and more computational effort.
For simulation of the synthesis process, mass and energy conservation equations are used,
henceforth referred to as the Two-Equation Model (TEM), for chemically reacting species
similar to the ones used by Dashti et. al. [64] and Yuguo and Changying [152]. A catalyst
spatial factor (x) is introduced which may be chosen to be a free parameter or specified
subject to a constraint of total available catalyst quantity. In the former case, a three-zone
single catalyst bed, for example could have discrete values [1 , 2 , 3 ] for (x) . The onedimensional steady-state mass and energy conservation equations in a pseudo-homogeneous
model [64], for the fractional conversion of nitrogen , z , along the synthesis reactor length x
and the temperature of the process gas, in a volume element of an adiabatic bed, are given as:
42
dz ( x) RA
=
dx 2 FNo / A
3.20
and
H r
dT
( x) RA
=
vC
dx
p
3.21
Where is the catalyst activity factor, it is defined to investigate the effects of temperature
and density of the catalyst interior and the difference between these parameters with those of
the catalyst surface, FNo / A is the initial molar flow rate of nitrogen, is the density, H r
is the heat of reaction and RA is the reaction rate.
In the above, the momentum conservation equation is ignored, which has been used, after
numerical solution of the above two equations, by Dashti et. al. [64] for estimating the
pressure drop along the catalyst beds. This introduces a small error as the pressure drop, in
the KBR reactor considered in this work, is less than 2% of the system pressure [64].
For the reaction kinetics, the Activity based Temkin-Pyzhev [64] form is used for the
synthesis reaction rate
2
a1H.52 aNH 3
R A = 2k K a a N 2
a NH 3 a1H.52
3.22
43
and the reaction constant is given by the Arrhenius rate form [93] as
E
k = 8.849 X 1014 exp
RT
where E=170.56 kJ/mol and respective activities ( a N , aH , a NH 3 ) and fugacity coefficients are
defined by equation 3.10.
The governing conservation, non-linear differential, equations are numerically solved using
the Runge-Kutta fourth order method in MATLAB.
The three-bed KBR reactor data used is [10],[23] : Pressure=15 MPa, Inlet Temperature =
643 K, mass flow rate = 183600 kg h-1, mole fractions: y H 2 = 0.6567006 , y N 2 = 0 .2363680 ,
y NH3 = 0.0269300 , y Ar = 0.0202874 , yCH4 = 0.0597140 . Figure 3.5 shows the homogeneous
reactor with the TP-A model. The temperature increases from 643 K to 780 K with a
maximum ammonia mole fraction of 0.1162, corresponding to a molar flow increasing from
486 kmol h-1 to 1930 kmol h-1. It can be seen that the reaction is almost complete at 1.5 m
from inlet.
44
Temperature (K)
800
750
700
650
600
0.5
1.5
2
2.5
Distance (m)
Mole Fraction
0.8
3.5
4.5
3.5
4.5
H2
0.6
0.4
N2
0.2
0
NH 3
0
0.5
1.5
2
2.5
Distance (m)
3.1.2.2 TEM Model using Partial Pressure based Temkin-Pyzhev Form (TP-B):
For the reaction kinetics, the Partial Pressure (Power Law) based Temkin-Pyzhev [142] (TPB) form is used for the synthesis reaction rate:
2
p H3 2
p NH
R A = k1 p N 2 2 k 2 3 3
p NH3
p H 2
3.23
for which the rate constants for synthesis and decomposition are
45
20800
47400
3
1.5
4
k1 = k1o exp
and k 2 = k 2 o exp
, k1o = 1.78954 10 kmol/m -atm
RT
RT
46
Temperature (K)
800
750
700
650
600
0.5
1.5
2
2.5
Distance (m)
Mole Fraction
0.8
3.5
4.5
3.5
4.5
H2
0.6
0.4
N2
0.2
0
NH 3
0
0.5
1.5
2
2.5
Distance (m)
With the TP-B model, Figure 3.6 shows a temperature increases from 643 K at inlet to 788 K
with a maximum ammonia mole fraction of 0.1221, and a mole flow increase from 486 kmol
h-1 to 2018 kmol h-1. The error of the power-law model, relative to the activity-based model,
is thus ~6% in T and ~5% in the ammonia molar flow rate. A better model has been found
to be the activity based Temkin-Pyzhev model (TP-A) which does not have a singularity for
zero ammonia composition, which can be the case for a syngas inlet without recycle, and for
which k 2 is constant.
47
48
shown in figure 3.7. If the length of Plug Flow Reactor is less than its diameter, the axial
dispersion of mass and heat are not significant [7],[148].
Parameter
Process Pressure
Inlet Temperature
Mass Flow Rate
Reactor Length
Reactor Diameter
Value
P=15MPa (150 bar)
T=793 K (520 oC)
-1
m& =0.125 kgs
L=1m
D=1.5m
The Temkin-Pyzhev reaction rate is specified in Aspen Plus through the stoichiometric
coefficients for ammonia (-1), nitrogen (0.5), and hydrogen (1.5) and with basis specified to
be partial pressures, for a liquid-vapor reaction phase. The reaction is specified as a Powerlaw class for a kinetic expression of the form:
E
rNH 3 = ko exp
pNH 3
RT
49
where rNH 3 is the reaction rate for decomposition of ammonia, ko is the frequency factor and
its value is 1.33x108 kmol m-3 s-1 Pa-1 while activation energy E equals 190000 kJ kmol-1 [6].
Simulation results of dissociation reactor are presented in figures 3.8 and 3.9. Ammonia
conversion completes at reactor length of 1m while the maximum possible temperature at
reactor exit is around 535 oC.
50
Parameter
Process Pressure
Inlet Temperature
Mass Flow Rate
Value
P=15MPa (150 bar)
T=643 K (370 oC)
m& total =183600 kgh-1
y H = 0 . 6567006
y N = 0.2363680
y NH 3 = 0.0269300
y Ar = 0 .0202874
yCH 4 = 0.0597140
L=4.5m
D=5.046m
51
The Temkin-Pyzhev reaction rate is specified in Aspen Plus through the stoichiometric
coefficients for nitrogen (-1), hydrogen (-3) and ammonia (+2). The basis is specified to be
partial pressures, for a vapor reaction phase. The reaction is specified as a Power-law class
for a kinetic expression form of partial pressure based Temkin Pehzev (TP-B):
r = [ KineticFac tor ] [ DrivingFor ce]
Nitrogen
Hydrogen
Ammonia
A
B
C
D
Forward
1
1.8
-1.2
9.79227
-10467
-
Reverse
0
-1.2
0.8
37.785812
-23852.69
-
Figures 3.11 and 3.12 show a temperature increases from 370 oC at inlet to 513.82 oC with a
maximum ammonia mole fraction of 0.1231 at reactor length 1.5 m.
with
A = 17895
and
E = 87027 kJ / kmol , b = 0
'
16
'
5
'
k ' = A ' exp( E ' / RT ) T b with A = 2.5714 10 , E = 1.9832 10 kJ / kmol , b = 0 .
'
Figure 3.14 and Fig.3.15 show that for an inlet temperature of 370oC, the outlet is 513.7oC,
no pressure drop is assumed, and saturation is observed at 1.5m for an ammonia mole
fraction of 0.123.
54
0.5776749
0.21166301
0.12316376
0.02218853
Equilibrium
Liquid Mole
Fraction
0.00638187
0.03253954
0.93099292
0.00406039
Equilibrium
Vapor Mole
Fraction
0.61373434
0.2229691
0.07217439
0.02333276
Stream data for VAPOR, PURGE and RECYCLE streams is presented in table 3.7.
TABLE 3.7: Molar Flow Rates of Components in and out of Splitter
Molar Flow
Rate
(kmol/hr)
Component
HYDROGEN
NITROGEN
AMMONIA
ARGON
VAPOR
9526.794
3461.075
1120.339
362.1868
56
PURGE
905.04543
328.802125
106.432205
34.407746
RECYCLE
8621.74857
3132.272875
1013.9068
327.779
A mixer (MIXER) is used to combine the Feed stream (FEED1) from storage tank and
Recycle stream (RECYCLE) as shown in figure 3.18
57
58
Net Heat Recovery = + 6.898 kWth + 51828.236 kWth -76532.016 kWth = -24696.882 kWth
Net Heat Recovery = - 24.7 MWth
800
780
1D (TP-B)
RK-4
HYSYS
HYSYS
Aspen
Plus
AspenPlus
Temperature (K)
760
740
720
700
680
660
640
0.5
1.5
2
2.5
Distance (m)
3.5
4.5
Figure 3.23 : Comparison of 1-D (TP-B) model, HYSYS, and Aspen Plus results
60
Figure 3.23 illustrates the comparison between the 1-D model (TP-B), HYSYS and Aspen
Plus results. Though the 1-D model varies significantly from the HYSYS and Aspen
Plus results, there is little difference in the saturation values. Thus all models give
saturation, and hence the physical dimensions of the first bed of the reactor as between 1.5m
and 1.75m.
Percentage errors in 1-D, TEM-TPA and TEM-TPB models compared with 2-D HYSYS
and Aspen Plus models are presented in table 3.8.
TABLE 3.8: Percentage errors in 1-D Models compared with HYSYS and Aspen Plus
T 0
Model
1-D RK-4 TP-A
1-D RK-4 TP-B
HYSYS
Aspen Plus
137
145
134.7
134.7
% error
1.7
7.6
0
-
0
y NH
3
0.1162
0.1221
0.1230
0.1230
% error
-5.5
-0.7
0
-
It can be concluded that a one-dimensional model is adequate, and justified, to simulate the
ammonia conversion process and to carry out an optimization analysis, and uses considerably
less computational effort than a two-dimensional rigorous model.
61
4 PLANT OPTIMIZATION
4.1 Review of Optimization Techniques
Optimization is a widely used engineering tool for enhancing the energy efficiency, and
hence the economic competitiveness, in chemical industry. It is aimed at finding some
optimal set of design and operating parameters which enables industry to function in a best
possible way.
Design parameters, such as physical dimensions and materials of plant components, are the
basis of fabrication and subsequent plant erection. Operating parameters, on the other hand,
involve process variables, such as flow rates, pressures and temperatures, which are
integrated into the overall plant units. As an example, a urea fertilizer chemical process plant
has four large integrated units: reforming, ammonia, urea, and utilities, all of which involve
inter-dependent process variables. The overall system is thus not only large in magnitude, but
its interdependence in the form of re-cycle streams, for example, renders the determination of
optimality as a complex non-linear problem. The process of optimization is thus both
theoretical and practical as it is based on mathematical models which are non-linear and
utilize material properties at actual plant conditions. These can be obtained from on-line
chemical analysis during plant operation. Once formulated, the system of equations needs to
be solved by analytical or numerical methods often requiring powerful computer hardware
and sophisticated simulation software. Optimization analysis for a solar thermal plant
requires a mathematical framework to model the underlying processes, the physical and
62
chemical data of the plant and its materials, and numerical techniques to carry out a
simulation to achieve the objective of determining optimality.
inequality constraints while the solid line would show the equality constraint. Of all the
values of the variables x1 , x 2 lying in the feasible region, one would need to determine the
particular one set, or a number of sets, which would correspond to the extremum.
Possible obstacles in the optimization process are non-linearities, discontinuities,
insensitivity of the objective function to independent variables, and local extrema confused
with a global extremum.
The mathematical methodology is then identified to solve the governing equations and carry
out a simulation to obtain the optimal set of parameters. These methodologies may be
64
broadly classified as deterministic or stochastic. The former are illustrated in Figure 4.2 [100].
Thus, numerical techniques such as the Runge-Kutta method for solving a non-linear set of
coupled first-order ordinary differential equations may be used, while the latter is based on
either an analogous stochastic simulation of the phenomena or on stochastic methods to solve
a deterministic set of governing equations. A typical example of a full stochastic simulation
is analog, or biased, Monte Carlo simulation, while a typical example of a stochastic
technique for a deterministic set of governing equations are random search methods such as
Genetic Algorithms (GA).
One way of classifying modeling problems [100] is from the degrees of freedom
N f = N v N e , in terms of the number of variables Nv , and the number of independent
equations Ne . When
independent equations, there is a unique solution, while for non-linear equations there may
be multiple solutions or no real solution. Such problems do not constitute an optimization
problem. When N f > 0 , the problem is underdetermined and at least one process variable
can be optimized. Conversely N f < 0 , constitutes an over-determined problem and the set
of equations has no solutions and methods, such as the least squares method, can be used to
determine the unknowns.
Widely used optimization methods include the following areas [100]: one-dimensional search,
unconstrained multivariable optimization, linear programming, nonlinear programming,
optimization involving discrete variables, and global optimization (operations research,
65
including Monte Carlo, heuristic methods, GA and evolutionary methods). Some widely used
techniques for obtaining optimality are (i) the deterministic variational functional optimality
based on Pontryagins Maximum Principle, and (ii) the Genetic Algorithm optimization
search [80][100]. The GA search method has been used [65],[100] for the optimization of an
ammonia synthesis reactor [65] shown in Figure 4.3.
First, the governing equations are numerically solved to obtain the temperature and
concentration profiles shown in Figure 4.4.
Figure 4.4 uses the same scale for Temperature and Concentration, it is not clear in reference
65 , whether these values of temperature and concentration have been normalized to show
them on the same scale or not.
67
The optimization thus concludes that a reactor with initial guesses of Nitrogen concentration,
Mole fraction, feed gas and reacting gas temperatures, reactor length and cost result in an
optimal solution with values given in table 4.1.
Sadeghi and Kavianiboroujeni [54] have used the Genetic Algorithm for a 1-D and 2-D
optimization of a Kellog-type ammonia plant, located at Khorasan (Iran). The axial reactor
(Figure 4.6) has four promoted-Fe catalytic fixed beds with a heat exchanger at the top.
Syngas flows vertically upwards in the spaces between the two walls of the reactor, where it
is pre-heated, then turns down through the beds and from the bottom fourth bed again turns
upwards, exiting from the top of the reactor. The independent parameters investigated are the
quench flow and quench temperature. Between the beds, the hot syngas is mixed with quench
streams (shown in three streams between the beds) to control the temperature.
68
The paper uses GA for obtaining optimal temperature distribution, in this nonlinear
optimization problem, resulting from a given quench flow, and subsequently optimal quench
flow given quench temperature. In the optimization problem, the objective function is the
69
ammonia outlet flow-rate, while the constraints are (i) T < 800 K , in the reactor for avoiding
hotspots, (ii) an ascending nitrogen conversion during optimal flow: Z | x < Z | x +x , and (iii)
for the syngas: Tin < Tout .
The flow-chart, Figure 4.8, for this optimization is reproduced from the paper [54] and their
results, in Figure 4.9, give maximum ammonia conversion at a quench temperature of 650 K
and a maximum conversion flow-rate of 47%
70
Figure 4.10 : Optimal and Normal Nitrogen Conversion and Reaction rates
GA used for obtaining optimal temperature distribution has increased the ammonia
production of the Khorasan plant by 3.3% (8,470 tons per year).
When the reactor is isothermal, different catalysts can be loaded to enhance productivity and
when it is non-isothermal i.e. it has temperature gradients, then the catalyst may be non71
uniformly loaded or different catalysts may be used for different temperature regions, to
enhance productivity. Finding the optimal (spatial) distribution of catalyst is crucial to
optimizing the performance. Numerical search can be carried out by dividing the reactor in
zones and assuming uniform values of catalyst material in each zone; this will mostly result
in a sub-optimal solution.
N 2 + 3H 2 2 NH 3
The mass balance equation for this reaction can be written in dimensionless form as:
dy N
= f [ y N , y H , y NH 3 , K a ]
dx
4.1
Where yH , y NH 3 and y N represent the mole fractions of hydrogen, ammonia and nitrogen
respectively while x is the normalized distance along catalyst bed (m).
Mole fractions of hydrogen ( yH ) and ammonia ( y NH 3 ) are related to nitrogen mole fraction
( y N ) as:
o
y NH3 = y NH
+ 2( yNo y N )
3
4.2
73
y H = y Ho 3( y No y N )
4.3
o
Where y NH
, y No and y Ho are initial mole fractions of ammonia, nitrogen and hydrogen
3
respectively.
In equation 4.2 and 4.3, the term ( y No y N ) = z N represents the converted moles of nitrogen
and fractional conversion of nitrogen can be presented as:
y No y N
zN =
y No
4.4
4.5
y H = y Ho 3 y No z N
4.6
Therefore mole fractions of hydrogen and ammonia can be removed from the reactor model
equation and making it only a function of y N
dy N
= f ( y N , K a ( )) f ( y N ( x), ( x))
dx
4.7
Where f ( y N , ) is the rate of reaction equation in terms of nitrogen mole fraction y N and
temperature at any point along the length of reactor such that
at t = 0,
y N = y No ;
x (0,1)
74
( x) is the control variable for which the optimal variation along the length of the reactor is
sought, that maximizes the exit conversion.
Equation 4.4 can be written as:
y N = z N y No y No
y N = y No (1 z N )
4.8
dz N
1 dy
= o N = G ( y N , )
dx
y N dx
M =
1
y No
4.9
dz N
, so we can write
dx
dy
0 dxN dx = 0 G ( y N , )dx
4.10
Now if we consider that the optimal temperature profile that gives the maximum conversion
( M ) is ( x) and consider an infinitesimal variation in ( x) to make it + then y N ( x)
will change to y N + y N and M to M + M . Thus,
1
M + M = [G ( y N , ) +
0
G
G
y N +
]dx
y N
4.11
thus,
G
G
y N +
]dx
y N
0
1
M =
4.12
75
dy N
dz
= y No N = f ( y N ( x), ( x))
dx
dx
4.13
f =
f
f
y N +
y N
4.14
dz
f
dy f
yNo N = N =
yN +
dx
dx yN
f
y f
d N =
y N +
dx y N
4.15
d
x
N
N
4.16
M =
y N +
y N
dx +
y N dx
y
y
d
x
N
N
0
0
4.17
The last term on the right hand side of equation 4.17 is integrated by parts to give:
1
d
d
(y N )dx =y N (1). (1) y N (0). (0) y N
dx
dx
dx
0
1
4.18
If we consider the feed concentration to have a fixed value, then, y N (0) = 0 and we impose
76
the boundary condition on the Lagrange multiplier as (1) = 0 and define the Hamiltonian (
H ) of the system as,
H = . f G
4.19
M =
dx
y N dx +
y
d
x
0
0
1
4.20
For ( x) to be the optimal temperature profile, we must have, M = 0 .Thus the optimality
conditions are:
H
H d
=0
= 0 and
y N dx
4.21
and
(1) = 0
4.22
=0
4.23
Which gives the global maxima for the objective function [155],[180]
From the optimality condition (4.23), it can be shown that the problem reduces simply to that
of finding the temperature profile ( x) that maximizes the net rate of reaction at each point
along the length of the reactor. Since G =
f ( , y N )
terms of f ( , y N ) as follows:
77
yN
H = . f G = . f
1
1 dy N
dz
f = . f o
= . f + N
o
yN
y N dx
dx
Or
H=
dz N
+ . f
dx
4.24
78
The results of Flow rate Sensitivity of dissociation reaction at a pressure of 150 bar and
temperature of 520 oC are shown in figure 4.12. If the mass flow rate of ammonia in stream
79
DIS-IN increases 550 kg/hr, conversion process is not complete and mole fraction of
ammonia in stream DIS-OUT increases.
Figure 4.16 depicts a decrease in molar flow of ammonia in stream PRODNH3 with increase
in temperature while an increase in flash temperature favors increase in mole fraction of
ammonia in product stream (figure 4.17).
82
84
dz
dx
dx
dz
+ 1 f1 + 2 f 2
dx
5.1
Where 1 and 2 are Lagrange multipliers and f1 and f 2 are constraint equations referring to
mass and energy conservation equations.
Equation 5.1 yields the Lagrange multipliers (Co-state equations) as:
d1
=
dx
z
5.2
and
d2
=
dx
T
5.3
85
RA
=0=
u T
T 2 FN0 / A
5.4
RA
R
+ A = 0
T 0
T 0
5.5
Figure 5.1 shows the process gas temperature, the optimal temperature obtained from
equation 5.5, and the equilibrium temperature [1]. The gas temperature T increases rapidly in
the reactor saturating to 780 K while the predicted optimal temperature Topt starts at a high
value, decreases rapidly and saturates to 738 K. The equilibrium temperature Teqm , following
the same trend as Topt saturates to the higher value of 786 K. Best ammonia conversion is
thus achieved by realizing this optimal profile.
86
1000
950
Teqm
Temperature (K)
900
850
800
Topt
750
T
700
650
600
0.5
1.5
2
2.5
Distance (m)
3.5
4.5
Figure 5.1 : Homogeneous reactor with 1-D Model (TEM-TPA) showing gas
temperature T , equilibrium temperature Teqm , and optimal temeprature Topt
The equilibrium temperature, Teqm , is defined as the temperature at which the optimal
concentration would be at equilibrium. Thus, for the synthesis reaction N 2 + 3H 2 2 NH 3 ,
the optimal molar fractions X oi and system pressure P are used to obtain the equilibrium
constant at zero pressure K a 0 from which Teqm is found.
K a0
( X o , NH 3 ) 2
1
.
= 2
P ( X o,H 2 ) 3 ( X o,N 2 )
87
For the equilibrium composition [96], we determine the extent of the reaction, with the
optimal composition taken as the initial composition, from a numerical solution of the
equilibrium relationship
o
(n NH
+ 2 ) 2 (nTo 2 ) 2
3
(n Ho 3 ) 3 (n No )
= K ao (Topt ) P 2 .
The optimal and equilibrium temperatures show a trend, especially at reactor inlet, which
represent a theoretical goal to achieve optimality. It can be seen from Figure 5.1 that there
is a substantial difference between the inlet temperatures, actual and optimal, but this
decreases as the reaction proceeds. Ideally, the inlet gas should be heated to the optimal
temperature and a heat exchanger should gradually remove the heat of the (exothermic)
reaction so that the resulting temperature decreases, rather than increasing, as gas flows in the
reactor. The optimal profile of figure 5.1 is thus in line with the requirement of a high
temperature to favor a high reaction rate at inlet, but as the exothermic ammonia synthesis
reaction proceeds, heat is generated and, according to Le Chateliers principle, the reaction is
driven in the backward direction to favor reactants. Thus optimality requires a gradual
decrease in temperature, to increase the equilibrium constant given by the Vant Hoff
equation, and subsequently increase product formation [93],[96]. The actual temperature, as
shown in figure 5.1 is in sharp contrast to the optimal temperature since the inlet temperature
is limited by process parameters and the limits of the catalyst supplied by the manufacturer.
This work evaluates the approach-to-optimal by the use of inter-bed heat exchangers which
succesively reduce inlet temperatures and permit saturation to the optimal profile, achieving
88
higher conversion, in line with the S-300 Haldor Topse [21] which is a feature of all new
ammonia plants.
vC p
dT
= (H r ) ( x) RA u~ f 2 [ z ( x), T ( x)] u~
dx
5.6
We thus seek heat removal 0 u~ u max which can be found by expressing the Hamiltonian as
=
dz
+ 1 f1 + 2 ( f 2 u )
dx
5.7
f
f
=
= [(1 + 1 ) 1 + 2 2 ]
dx
z
z
z
5.8
and
d2
f
f
=
= [(1 + 1 ) 1 + 2 2 ]
dx
T
T
T
5.9
5.10
89
H
= 0 = 2
u
5.11
5.12
PH3
E
= 1 2 k1 PN 2 2 2
PNH
RT
3
P2
E2 k 2 NH 3
RT 2 PH32
=0
5.13
Solving Eqn. 5.13 is thus analogous to maximizing the ammonia conversion in the reactor.
For equation 5.13, the optimal temperature is found in a compact form:
Topt =
E2 E1
R ln
where
5.14
2
k 20 E 2 PNH 3
.
k10 E1 PH32 PN 2
The effect of heat removal at the exit of the first bed is shown in figure 5.2. The drop in interbed temperature, taken here as 106 K, is arbitrary and can be adjusted according to the power
requirement, but this will have an effect on the entrance temperature for the second bed, and
hence on the saturation length.
90
1000
Temperature (K)
950
900
850
800
Topt
Teqm
750
700
650
0.5
1.5
2
2.5
Distance (m)
3.5
4.5
91
the Reference Design. Clearly, such a temperature profile is difficult to achieve but can serve
Ammonia Mole Fr
0.2
0.15
0.1
0.05
0
0.5
1.5
2.5
3.5
4.5
Distance (m)
(a)
0.8
Mole Fraction
Temperature (K)
800
750
700
650
600
N2
0.4
NH3
0.2
0
H2
0.6
Distance (m)
Distance (m)
(b)
(c)
Figure 5.3 : Homogeneous reactor: (a) ammonia mole fraction, (b) temperature profile,
and (c) hydrogen/nitrogen/ammonia mole fractions.
With two inter-bed heat exchangers the resulting temperature profile, shown in figure 5.4,
yields an enhanced ammonia mole fraction at exit of 0.1817 (2850 kmol h-1) and an energy
availability of 109.02 kJ h-1 (30.28 MWth). The process flow diagram of the energy recovery
plant with propsed process modifications is presented in figure 5.5.
92
1000
950
Teqm
Temperature (K)
900
850
800
Topt
750
T
700
650
600
0.5
1.5
2
2.5
Distance (m)
3.5
4.5
Figure 5.5 : The Proposed Energy Recovery Plant with Process Modifications
93
Figure 5.6 : PFR reactor beds with cooling between beds 1 and 2
The sensitivity of the temperature drop, in the inter-bed heat exchanger E-100, to the
ammonia mole fraction at reactor exit is shown in Fig. 5.8. The value of T1 , arbitrarily set
to 106 K in the previous sections, is seen in Fig. 5.8 to have an optimal value of 205K, for
which the optimal exit mole fraction is 0.223, and the thermal energy availability is 31.5
MWth.
Figure 5.7 shows the Aspen Plus three-bed (reactor) configuration with two inter-bed
(reactor) heat exchangers.
94
0.13 0.14 0.15 0.16 0.17 0.18 0.19 0.2 0.21 0.22 0.23 0.24
-260.0 -240.0 -220.0 -200.0 -180.0 -160.0 -140.0 -120.0 -100.0 -80.0 -60.0
Delta T1
-40.0 -20.0
Figure 5.8 : Effect of temperature drop in the inter-bed heat exchanger, after the first
bed, on the ammonia mole fraction at reactor outlet.
95
With Aspen Plus the results indicate, with inter-bed temperature drops of 106 oC and 86 oC
respectively, an exit ammonia mole fraction of 0.2137. If the first temperature drop is
constant, an optimal is found for the second temperature drop at a value 90 oC, for which the
subsequent exit ammonia mole fraction increases to 0.2143. We now consider a theoretical
maximum by allowing infinite reactor length. For the same temperature drops, we obtain an
exit ammonia mole fraction of 0.2165, which is markedly better than the finite case
0.26
0.25
0.24
0.23
0.27
0.28
previously considered.
-260.0 -240.0 -220.0 -200.0 -180.0 -160.0 -140.0 -120.0 -100.0 -80.0 -60.0
Delta T2 (C)
-40.0 -20.0
Figure 5.9 : Effect of temperature drop in the inter-bed heat exchangers, after the first
and second beds, on the ammonia mole fraction at reactor outlet.
96
In order to obtain the maximum achievable ammonia conversion, and hence a maximum
available thermal energy availability, we consider a sensitivity analysis of two parameters viz
the inter-reactor temperature drops. These are shown in Fig. 5.8 and Fig. 5.9. Figure 5.8
shows an optimal temperature drop of 205oC, as mentioned above, for which the exit
ammonia mole fraction is 0.2230. Similarly, Fig.5.9 shows an optimal at a temperature drop
of 95oC, for which the final exit ammonia mole fraction is 0.2762, and a thermal energy
availability of 45.6 MWth.
feed gas. Another technological option [1] consisting of varying the catalyst concentration
taking advantage of the importance of the beds, has been shown to enable optimal
configuration.
Figure 5.10 shows a steep 65% conversion in the first bed, a slower but increasing 35%
conversion in the second bed, followed by a slight 10% improvement in the third bed. All
beds are taken to be of height 1.5 m. A significant feature of figure 5.10 is the saturation of
the conversion z to a value 0.2534 at the reactor exit. Figure 5.3a shows the increase of
ammonia in the three beds at approximately linear rates with decreasing gradients in
successive beds. The homogeneous catalyst loading indicates that the third bed has a very
small contribution.
0.3
Conversion of N2 (Z)
0.25
0.2
0.15
0.1
0.05
0.5
1.5
2
2.5
3
Distance (m)
3.5
4.5
0.2
Proposed
Design
0.18
0.16
0.14
0.12
0.1
optimal
1.00 1.00 1.00
1.10 1.00 1.00
1.20 1.00 1.00
1.50 1.25 1.00
0.08
0.06
Reference
Design
0.04
0.02
0.5
1.5
2
2.5
Distance (m)
3.5
4.5
Figure 5.11 : Effect of varying spatial composition in reactor beds on the mole fraction
of ammonia in the reactor compared with the reference (homogeneous) design with
spatial concentration [1.00, 1.00, 1.00]
99
In Figure 5.12, detailed results are illustrated for a 50% and 25% concentration increase in
the first and second beds respectively. The nitrogen conversion increases from 0.2534 to
0.2832 while the temperature profile moves closer to the OEM equilibrium for the first and
Conversion of N2 (Z)
second beds.
0.3
0.2
0.1
0.5
1.5
2.5
3.5
4.5
Distance (m)
(a)
0.8
900
Topt
800
Mole Fraction
Temperature (K)
1000
Teqm
700
600
Distance (m)
(b)
H2
0.6
N2
NH3
0.4
0.2
0
Distance (m)
(c)
Figure 5.12 : Effect of varying spatial composition in reactor beds (1.50, 1.25, 1.00); a)
nitrogen conversion, b) actual, optimal and equilibrium temperatures, c) hydrogen,
nitrogen and ammonia mole fractions.
Saturation in the first bed appears in the last 0.30 m of the first bed. The engineering
implications are that, with fixed bed physical dimensions, this space could be utilized for
some other scheme such as pre-heating for the second bed inlet to bring inlet temperature
closer to the optimal. The highest temperature in the first bed increases to 780 K (from 775 K
100
in the homogeneous case) which brings it closer to the maximum permissible catalyst
temperature, and hence a reduction in the reactor safety margin. The ammonia mole fraction
at reactor exit has now increased to 0.1856; equivalent to 1186-MTD. Apart from an increase
in the ammonia production, the heat recovery potential from the first inter-bed heat
exchanger increases to 18.395 MW(th) and 14.277 MW(th) from the second inter-bed heat
exchanger. When the spatial concentration is also increased in the third bed so that the
concentrations are [1.50,1.25,1.25], the nitrogen conversion increases to 0.2901, and the
ammonia production increases to 0.1902 (1210-MTD); the heat recovery is 18.395 MW(th)
and 13.880 MW(th) (total: 32.275 MW(th)).
101
Figure 5.13 presents the temperature profiles in the reactor bed1 with catalyst spatial factors
of 1 and 1.5. It is clear that in case of catalyst spatial facor of 1.5, the temperature value
saturates at reactor length of 0.7m, thereby approaching the optimal temperature profile faster
than in the uniform case; the equilibrium temperature can be achieved before the exit of the
first bed and hence a wider span is available for heat/energy extraction to be used by Solar
Thermal power plant.
102
ammonia production using mass and energy conservation equations with homogeneous as
well as non-uniform catalyst distributions. The momentum conservation equation has been
ignored since the pressure drop in this reactor has been shown [64] to be not more than 2% of
the system pressure. The optimal and equilibrium temperature profiles are then computed in
the reactor and compared with the temperature profile in the homogeneous reactor.
The optimal and equilibrium temperature profiles have been used as the desired profiles by
incorporating process, rather than design, changes in the heat recovery system. This led to a
study of a heterogeneous, or non-uniform, catalyst distribution in the beds.
The results indicated that optimal ammonia conversion requires a high inlet temperature to
favor a high reaction rate as opposed to the comparatively lower inlet temperatures which are
found in industrial reactors. The optimal design, based on the optimal temperature profile,
gives a 15% increase in ammonia yield, from 1082 MTD in the homogeneous configuration
103
to 1246 MTD in the optimal configuration. A non-uniform catalyst distribution can be used
to take advantage of the importance of the first bed, followed by successive beds, thereby
approaching the optimal temperature profile faster than in the uniform case; as a result of the
previous argument, the equilibrium temperature can be achieved before the exit of the first
bed; heterogeneous catalyst distribution, is a strategy which increases the concentration by 50%
in the first bed and 25% in the second bed, brings the temperature profile close to equilibrium
results with a 10% increase in ammonia conversion. A larger number of beds could be used,
in principle, to search for a catalyst distribution which would yield the optimal temperature
profile leading to a 15% increase in ammonia yield.
Finally it is concluded that a one-dimensional model, with mass and energy conservation
equations using the Temkin-Pyzhev activity and pressure-based kinetics rate expressions,
predicted an optimal ammonia conversion of 0.2137 with a thermal energy availability of 20
MWth. A comprehensive process simulation using Aspen Plus predicts an optimal
ammonia conversion of 0.2762 mole fraction at exit, with two inter-bed heat exchangers
having optimal temperature drops of 205K and 95K respectively, and yielding a thermal
availability of 45.6 MWth. The thermal energy availability of a base-load solar thermal plant
can be increased by 15% in the ammonia conversion and over 25% in thermal energy
availability for energy recovery.
104
105
REFERENCES
[1] S. Siddiq, S. Khushnood, Z. U. Koreshi, M. T. Shah and A. H. Qureshi, Optimal Energy
Recovery from Ammonia Synthesis in a Solar Thermal Power Plant, Arabian Journal of
Science and Engineering (AJSE), February 2013. available on-line at
http://link.springer.com/article/10.1007%2Fs13369-013-0552-y# (document) 3.1.2.1, 3.1.2.2, 5.1.2,
5.2
[2] S. Siddiq, Z. U. Koreshi and S. Khushnood, Process Simulation for Enhanced Energy
Recovery in a 10 MW(e) Base-Load Solar Thermal Power Plant, Proceedings of the 20th
International Conference on Nuclear Engineering (ICONE20POWER2012), July 30
August 3, 2012, Anaheim, California, USA. (document) 5.1.2, 5.2
[3] R. Dunn, K. Lovegrove, and G. Burgess, A Review of Ammonia-Based Thermochemical
Energy Storage for Concentrating Solar Power, Proc. IEEE, vol. 100, no. 2, pp. 391-400,
February 2012. (document) 1.7, 2.2, 2.2.1
[4] R. Dunn, P. Hearps, and M. Wright, Molten-salt power towers: Newly commercial
concentrating solar storage, Proc. IEEE, Special Issue on Massive Energy Storage, 2012.
(document) 1.7
[7] AspenTech Process Plant Simulation Suit Reference Guide, 2011. (document) 3.2
[8] BP Statistical Review of World Energy 2011, available on-line at
http://www.bp.com/liveassets/bp_internet/globalbp/globalbp_uk_english/reports_and_public
ations/statistical_energy_review_2011/STAGING/local_assets/pdf/primary_energy_section_
2011.pdf (document) 1.1
[9] D. Laing, C. Bahl, T. Bauer, D. Lehmann, and W. Steinmann, Thermal energy storage for
direct steam generation, Solar Energy, vol. 85, no. 4, pp. 627633, April 2011. (document) 1.7
[10] J. Gosnell, private communication, May 2011, Vice President, Fertilizer and Syngas
Technologies, KBR, 601 Jefferson Street, Houston, TX 77002. (document) 1.5.4.2, 3.1.2.1, 3.1.2.2
[11] K. Lovegrove, G. Burgess, and J. Pye, A new 500 m2 paraboloidal dish solar
concentrator, Solar Energy, vol. 85, no. 4, pp. 620626, April 2011. (document) 1.7
106
(document) 1.5.4.5
[17] A. Meier and A. Steinfeld, Solar thermochemical production of fuels, Adv. Sci.
Technol., vol. 74, pp. 303312, 2010. (document) 1.7
[18] B. Wong, L. Brown, F. Schaube, R. Tamme, and C. Sattler, Oxide based
Thermochemical heat storage, Proc. 16th Solar PACES Conf., Perpignan, France, 2010.
(document) 1.7
(document)
1.5.4.1, 5.1.2
[22] J. Lata, S. Alcalde, D. Fernandez, and X. Lekube, First surrounding field of heliostats
in the world for commercial solar power plantsVGemasolar, Proc. 16th Solar PACES Conf.,
Perpignan, France, 2010. (document) 1.2.2
[23] KBR 2010: A Global Engineering, Construction and Services Company, available on-line
http://www.kbr.com/Technologies/Proprietary-Equipment/KAAP-Ammonia-Synthesisat
Converter (document) 1.5.4.2, 3.1.2.1, 3.1.2.2
[24] KM1/KM1R, Topse Technology A/S, Ammonia Synthesis Catalysts 2010, available online at
http://www.topsoe.com/business_areas/ammonia/processes/~/media/PDF%20files/Ammonia/
Topsoe_ammonia_km1.ashx (document) 1.5.4.1
107
[25] Ministry of Industries and Production, Fertilizer Production page, available on-line at
http://www.moip.gov.pk/fertilizerProduction.html (document) 1.5
[26] M. S. M. Ksasy , F. Areed , S Saraya , Mostafa A. Khalik, Optimal reactor length of an
auto-thermal ammonia synthesis reactor, International Journal of Electrical & Computer
Sciences, IJECS-IJENS, vol. 10, no. 03, pp. 6-15, 2010. (document) 4.1
[27] N. Siegel, C. Ho, S. Khalsa, and G. Kolb, Development and evaluation of a prototype
solid particle receiver: On-sun testing and model validation, ASME J. Solar Energy Eng.,
vol. 132, pp. 021008-1021008-8, May 2010. (document) 1.7
[28] National Institute of Standards and Technology (NIST) Handbook 2010, available on-line
at http://webbook.nist.gov/cgi/cbook.cgi?ID=C1333740&Units=SI&Mask=1 (document) 3.1.1
[29] R. Dunn, A Global Review of Concentrated Solar Power Storage, Solar2010, the 48th
AuSES Annual Conference, 1-3 December 2010, Canberra, ACT, Australia. (document) 1.7
[30] R. McNaughton, S. McEvoy, G. Hart, J. Kim, K. Wong, and W. Stein, Experimental
results of solar reforming on the 200 kW Solar Gas reactor, Proc. 16th SolarPACES Conf.,
Perpignan, France, 2010. (document) 1.7
[31] S. Rodat, S. Abanades, and G. Flamant, Methane decarbonization in indirect heating
solar reactors (1050 kW) for a CO2-free production of hydrogen and carbon black, Proc.
16th SolarPACES Conf., Perpignan, France, 2010. (document) 1.7
[32] Sadaf Siddiq, S. Khushnood, Z. U. Koreshi and M. T. Shah, Solar Thermal Energy
Storage using Liquid Ammonia Systems in Industry, International Conference on Energy
Systems Engineering, ICESE-2010, Oct. 25-27, 2010, Islamabad, Pakistan. (document) 1.7
[33] Sadaf Siddiq, S. Khushnood, Z. U. Koreshi and M. T. Shah, Solar Thermal Energy
Storage using Liquid Ammonia Systems in Industry, NUST Journal of Engineering
Sciences, Vol. 3 No. 01, pp. 52-57, December 2010. (document) 1.7
[34]
The Linde Group, 2010. available on-line at
http://www.lindeengineering.com/en/process_plants/hydrogen_and_synthesis_gas_plants/gas
_products/ammonia/index.html (document) 1.5.4.5
[35]
Topse Technology, Radial Flow Ammonia Synthesis Converters 2010, available online at
http://www.topsoe.com/business_areas/ammonia/processes/~/media/PDF%20files/Ammonia/
Topsoe_radial_flow_converters.ashx (document) 1.5.4.1
[36]
http://www.solarpaces.org/Library/AnnualReports/documents/AnnualReport2009Final_web.
pdf (document) 1.7
[39] Atul Sharma, V.V. Tyagi, C.R. Chen, D. Buddhi, Review on thermal energy storage
with phase change materials and applications, Renewable and Sustainable Energy Reviews,
vol. 13, pp.318345, 2009. (document) 1.7
[40]
on-line
at
[43] John Dascomb, Low-Cost Concentrating Solar Collector for Steam Generation, MS
Thesis, FAMU-FSU College of Engineering, Florida State University, 2009 (document) 1.7
[44] J. Petrasch, P. Osch, and A. Steinfeld, Dynamics and Control of solar thermochemical
reactors, Chem. Eng. J., vol. 145, pp. 362370, 2009. (document) 4.1
[45]
[46] Renewables Global Status Report: 2009 Update (Paris: REN21 Secretariat), copyright
Deutsche Gesselschaft fr Technische Zusammenarbeit (GTZ) GmbH. (document) 1, 1.1
[47] R. Dunn, K. Lovegrove, and G. Burgess, Ammonia Receiver Design for Dish
Concentrators, Solar Thermal Group, ANU, 2009. (document) 1.7
[48] S. Relloso and E. Delgado, Experienceing with molten salt thermal storage in a
commercial parabolic trough plant. Andasol-1 commissioning and operation, Proc. 15th
SolarPACES Conf., Berlin, Germany, 2009, article no. 11396. (document) 1.2.2, 1.3
[49] S. Zunft, M. Hnel, M. Kruger, and V. Dreiigacker, High-temperature heat storage for
air-cooled solar central receiver plants: A design study, Proc. 15th SolarPACES Conf.,
Berlin, Germany, 2009. (document) 1.7
[50] Zhihao Yao, Zhifeng Wang, Zhenwu Lu, Xiudong Wei, Modeling and simulation of the
pioneer 1 MW solar thermal central receiver system in China, Renewable Energy, Vol. 34,
pp. 24372446, 2009. (document) 3.1.2
[51] Doerte Laing and Carsten Bahl, Concrete Storage for Solar Thermal Power Plants and
Industrial Process Heat, IRES III 2008, 3rd International Renewable Energy Storage
Conference, 24-25 November 2008, Berlin. (document) 1.4
[52] G.N. Tiwari, Solar Energy, Fundamentals, Design, Modelling and Applications, Fifth
print, Narosa Publishing House Pvt. Ltd. New Delhi (2008). (document) 1.1
[53] Jared Crawford, Britni Ellifritz and Benjamin Root, Process Design of an Anhydrous
Ammonia Production Facility for Dyno Nobel 2008, available on-line at
109
http://digital.uwyo.edu/Undergraduate_Research_Day_Exhibits/2007023_Crawford_Ellifritz
_Root.pdf (document) 5.1
[54] M. T. Sadeghi and A. Kavianiboroujeni, The Optimization of an Ammonia Synthesis
Reactor using Genetic Algorithm, International Journal of Chemical Reactor Engineering,
Vol. 6, Article A113, 2008. (document) 3.4, 4.1
[55] O. Kusyy, K. Vajen, U. Jordan, Application of Sensitivity Analysis to Parameters of
Large Solar Water Heating Systems, First International Congress on Heating, Cooling and
Buildings, EUROSUN 2008, October 7-9, 2008, Lisbon, Portugal. (document) 4.3
[56] Timothy P. McDowell and Jeff W. Thornton, Simulation and Model Calibration of a
Large-Scale Solar Seasonal Storage System, Proceedings of Third National Conference of
IBPSA-USA Berkeley, California, July 30 August 1, 2008. (document) 3.1.2
[57] C. W. Forsberg, P. F. Peterson, and H. Zhao, High-Temperature Liquid Fluoride Salt
Closed Brayton Cycle Solar Power Towers, Journal of Solar Energy Engineering,
Transactions of ASME, Vol. 129, pp.141-146, May 2007. (document) 1.4
[58] J. Petrasch and A. Steinfeld, Dynamics of a solar thermochemical reactor for steam
reforming of methane, Chem. Eng. Sci., vol. 62, pp. 42144228, 2007. (document) 1.7
[59] K.J. Beers, Numerical Methods for Chemical Engineering Applications in MATLAB,
Cambridge University Press, New York (2007) (document) 5.1, 5.2
[60] Kayvan Khorsand, Mehdi A. Marvast, Narges Pooladian, Madjid, Modeling and
Simulation of Methanation Catalytic Reactor in Ammonia Unit, Petroleum & Coal, vol. 49
no. 1, pp. 46-53, 2007, available on-line at www.vurup.sk/pc . (document) 3.1.2
[61] Kayvan Khorsand and Khadijeh Dehghan, Modeling and Simulation of Reformer
Autothermal Reactor in Ammonia Unit, Petroleum & Coal, Vol. 49 No. 2, pp. 64-71, 2007,
available on-line at www.vurup.sk/pc. (document) 3.1.2
[62] R. Dunn, K. Lovegrove, and G. Burgess, Ammonia-based solar energy storage using
trough concentrators-A study of heat losses, Proc. 45th Annu. Conf. Australian New
Zealand Solar Energy Soc., Alice Springs, N.T., Australia, Oct. 24, 2007. (document) 1.7
[63]
W. L. Luyben, Chemical Reactor Design and Control, John Wiley and Sons, Inc., (2007).
[64] Ali Dashti, Kayvan Khorsand, Mehdi Ahmadi Marvast, Madjid Kakavand, Modeling
and Simulation of Ammonia Synthesis Reactor, Petroleum and Coal, Vol. 48 No.2, pp. 1523, 2006. (document) 3.1.2, 3.4
[65]
B. V. Babu, Process Plant Simulation, Oxford University Press, (2006). (document) 4.1, 5.2
[66] D. Laing, W. Steinmann, R. Tamme, and C. Richter, Solid media thermal storage for
parabolic trough power plants, Solar Energy, vol. 80, no. 10, pp. 12831289, Oct. 2006.
(document) 1.4, 1.7
110
[77] B.V. Babu, R. Angira, and A. Nilekar, "Optimal Design of an Auto-Thermal Ammonia
Synthesis Reactor Using Differential Evolution", Proceedings of The Eighth World MultiConference on Systemics, Cybernetics and Informatics (SCI-2004), Orlando, Florida, USA,
July 18-21, 2004. (document) 5.2
[78] D. Lippmann & Norbert Frisse, First application of the Uhde Dual Pressure Ammonia
Process for the 3300 mtpd Ammonia Plant for SAFCO in Saudi Arabia, IFA Technical
Conference, April 20-23, 2004, Beijing, China. (document) 1.5.4.3
111
[83] Lars Nummedal, Signe Kjelstrup and Monica Costea, Minimizing the Entropy
Production Rate of an Exothermic Reactor with a Constant Heat-Transfer Coefficient: The
Ammonia Reaction, Ind. Eng. Chem. Res., Vol. 42, pp. 1044-1056, 2003. (document) 1.7
[84] Mark E. Davis and Robert J. Davis, Fundamentals of Chemical Reaction Engineering,
First Edition, McGraw-Hill chemical engineering series, 2003. (document) 3.2.1
[85] R. Byron Bird, Warren E. Stewart and Edwin N. Lightfoot, Transport Phenomena,
Second Edition, J. Wiley and Sons, Inc., 2003. (document) 3.1.1
[86] Uhde Technology Profile: Ammonia, Uhde GmbH 2003, available on-line at
http://www.uhde.eu (document) 1.5.4.3
[87] Yu-Ting Wu, Jian-Xun Ren, Zeng-Yuan Guo, Xin-Gang Liang, Optimal Analysis of a
space solar dynamic power system, Solar Energy, Vol. 74, pp. 205-215, 2003. (document) 4.2
[88] J. Pacheco, R. Bradshaw, D. Dawson, W. De la Rosa, R. Gilbert, S. Goods, M. J. Hale, P.
Jacobs, S. Jones, G. Kolb, M. Prairie, H. Reilly, S. Showalter, and L. Vant-Hull, Final test
and evaluation results from the Solar Two Project, Solar Thermal Technology Dept., Sandia
Nat. Lab., Albuquerque, NM, Tech. Report, SAND2002-0120. Available on line at:
http://www.osti.gov/bridge/product.biblio.jsp?osti_id=793226 (document) 1.7
[89] M. Krause, K. Vajen, F. Wiese and H. Ackermann, Investigations on Optimizing Large
Solar Thermal Systems, Solar Energy Vol. 73, No. 4, pp. 217225, 2002. (document) 4.2
[90] Pamela L. Spath, Wade A. Amos, Assessment of Natural Gas Splitting with a
Concentrating Solar Reactor for Hydrogen Production, NREL Technical Report (April
2002), NREL/TP-510-31949 available on-line at http://www.osti.gov/bridge (document) 1.7
[91] Siangsukone P. and Lovegrove K., Modelling of a steam based Paraboloidal Dish
concentrator using the computer source code TRNSYS, Proceedings of Solar 2002 Australian and New Zealand Solar Energy Society. (document) 3.2.1
112
[93] A. Kayode Coker, Modeling of Chemical Kinetics and Reactor Design, Gulf Publishing
Company, Houston, Texas (2001). (document) 3.1.2, 3.1.2.1, 5.1.2
[94] B.E. Poling, J.M. Prausnitz, J.P. OConnell, The Properties of Gases and Liquids, Fifth
edition, McGraw-Hill, New York (2001). (document) 1.5.1
[95] H. Kreetz, K. Lovegrove, and A. Luzzi, Maximizing thermal power output of an
ammonia synthesis reactor for a solar thermochemical energy storage system, ASME J.
Solar Energy Eng., vol. 123, pp. 7582, May 2001. (document) 5.1
[96] K.V. Narayanan, A Textbook of Chemical Engineering Thermodynamics, Prentice-Hall of
India Ltd., New Delhi (2001). (document) 5.1.2
[97] Marc Scheffler, Investigation of the Feasibility of a Parabolic Trough driven Solar
Energy Storage System using Ammonia, Diploma Thesis, The Australian National
University, Sttutgart & Canberra, 30th October 2001. (document) 1.7
[98] Michelle Kenny, Optimization and Control Studies for Ammonia Production, MS
Thesis, Department of Chemical and Materials Engineering, University of Alberta, 2001.
(document) 4.1
[99] P.W. Bach and W.G. Haije, Heat Storage and Transformation, Proceedings of ZAESymposium 2001,Heat and Cold Storage, Munich, 3-5 October 2001. (document) 4.1
[100] T. F. Edgar, D. M. Himmelblau and L. S. Lasdon, Optimization of Chemical Processes,
Second edition McGraw-Hill Chemical Engineering series, (2001). (document) 4.1, 5.2
[101] Ammonia in Australia 2000, available on-line at http://www.chemlink.com.au/ammoniasummary.htm (document) 2.1.1
[102] Dian Phylipsen, Dan Einstein and Nathan Martin, Energy Use and Energy Intensity of
the U.S. Chemical Industry, April 2000, Ernst Worrell, LBNL-44314, University of
California, Berkeley. available on-line at
http://www.energystar.gov/ia/business/industry/industrial_LBNL-44314.pdf
(document) 1.1
[103] M.E. E. Abashar, "Application of Heat Interchange Systems to Enhance the Performance
of Ammonia Reactors", Science Direct, Chemical Engineering Journal, 2000. (document) 5.1
[104] Mary Jane Hale et al., Survey of Thermal Storage for Parabolic Trough Power Plants,
NREL Technical Report (September 2000), NREL/SR-550-27925 available on-line at
http://www.osti.gov/bridge (document) 1.7
[105] A. Luzzi, K. Lovegrove, E. Fillipi, H. Fricker, M. Schmitz-Goeb, M. Chandapillai and S.
Kaneff, Techno-Economic Analysis of a 10 MWe Solar Thermal Power Plant using
113
Ammonia-Based Thermochemical Energy Storage, Solar Energy, Vol. 66 , No. 2, pp. 91101, 1999. (document) 1.7, 1.8, 2.1.1, 2.2.1
[106] H. Kreetz and K. Lovegrove, Theoretical Analysis and Experimental Results of a 1 kW
Ammonia Synthesis Reactor for a Solar Thermochemical Energy Storage System, Solar
Energy, Vol. 67, Nos. 4-6, pp. 287-296, 1999. (document) 1.7, 1.8
[107] Irven Rinard, Material Balance Notes, Revision 3, Department of Chemical
Engineering, City College of CUNY and Project ECSEL, October 1999. (document) 3.1.1
[108] K. Lovegrove, A. Luzzi, and H. Kreetz, A Solar Driven Ammonia Based
Thermochemical Energy Storage System, Solar Energy, Vol. 67 Nos. 4-6, pp. 309316,
1999. (document) 1.7
[109] K. Lovegrov and A. Luzzi, The first ammonia based solar thermochemical energy
storage demonstration, Journal de Physique IV, vol. 9, pp. 581586, 1999. (document) 1.7
[110] M. Appl, Ammonia-Principles and Industrial Practice, Weinheim, Germany: WileyVCH, pp. 172173, (1999). (document) 1.5.1, 1.5.2
[111] O. Hinrichsen, Kinetic simulation of ammonia synthesis catalyzed by ruthenium,
Catalysis Today, vol. 53, pp. 177188, 1999. (document) 1.7
[112] S. Kaneff, A 20 dish solar thermal array providing 2.6 MWe via an existing coal fired
steam driven turbogenerator system, Proc. Int. Solar Energy Soc. Solar World Congr.,
Jerusalem, Israel, 1999. (document) 3.2.1
[113] W. L. Luyben, B. D. Tyrus and M.L. Luyben, Plantwide Process Control, McGraw-Hill
Companies Inc., (1999). (document) 3.1.2
[114] A. Luzzi, K. Lovegrove, E. Filippi, H. Fricker, Schmitz-Goeb, M. Chandapillai, S.
Kaneff, Base-load Solar Power using the Haber-Bosch Process. Final Report, Swiss
Ministry of Energy, 3003 Bern, Switzerland, 1998. (document) 1.7
[115] A. Wrner and R. Tamme, CO2 reforming of methane in a solar driven volumetric
receiver-reactor, Catalysis Today, vol. 46, pp. 165174, 1998. (document) 1.7
[116] Costa, M., D. Buddhi, et al., Numerical Simulation of a Latent Heat Thermal Energy
Storage System with Enhanced Heat Conduction, Energy Conversion Management, Vol. 39
(3/4), pp. 319-330, 1998. (document) 1.4
[117] Kyoto Protocol to the United Nations Framework Convention on Climate Change
(UNFCC), United Nations 1998. Available on-line at
http://unfccc.int/resource/docs/convkp/kpeng.pdf (document) 1.1
[118] M.A. Korobitsyn, New and Advanced Energy Conversion Technologies. Analysis of
Cogeneration, Combined and Integrated Cycles, PhD Thesis, University of Twente, 1998.
(document) 1.1
114
[126] M. Bradford, P. Fanning, and A. Vannice, Kinetics of NH3 decomposition over well
dispersed Ru, J. Catalysis, vol. 172, pp. 479484, 1997. (document) 1.7
[127] S.R. Upreti and K. Deb, "Optimal design of an ammonia synthesis reactor using genetic
algorithms", Computers and Chemical Engineering, Vol. 21, No. 1, pp. 87-92, 20 September
1997. (document) 4.1
[128] A. Luzzi, Solar Thermo-Catalytic Ammonia Dissociation, Ph.D Thesis, Department of
Engineering, Australian National University, Canberra, Australia, 1996. (document) 3.2.1
[129] Bejan, A., Tsatsaronis, G., Moran, M., Thermal Design and Optimization, John Wiley
and Sons Inc, New York, (1996). (document) 4.2
[130] Irving Granet, Thermodynamics and Heat Power, Fifth Edition, Prentice-Hall Inc.,
(1996). (document) 1.6
[131] K. Lovegrove, High Pressure Ammonia Dissociation Experiments for Solar Energy
Transport and Storage, Int. J. Energy Res. Vol. 20, pp. 965978, 1996. (document) 1.7, 3.2.1
[132] K. Lovegrov and A. Luzzi, Endothermic Reactors for An Ammonia based
Thermochemical Solar Energy Storage and Transport System Solar Energy Vol. 56, pp.
361371, 1996. (document) 1.7
115
[133] Pilkington Solar, 1996. Status report on solar thermal power plants. Cologne, Germany,
Pilkington Solar International. (document) 1.2.2
[134] William L. Luyben, Process Modeling, Simulation and Control for Chemical Engineers,
Second Edition, McGraw-Hill Publishing Company, (1996). (document) 3.1.2
[135] C.A. Floudas, Non-linear and Mixed Integer Optimization-Fundamentals and
Applications, Princeton, New Jersey (1995). (document) 4.1, 4.2
[136] G. Johnston, Flux mapping of the 400 m2 Big-Dish at the Australian National
University, ASME J. Solar Energy Eng., vol. 117, pp. 290292, 1995. (document) 1.7
[137] S. Kaneff, Practicable reduction in rate of environmental degradation via mass
utilisation of solar energy based on paraboloidal dish systems, In: Colville, E. (Ed.),
Proceedings of the International Symposium on Energy, Environment and Economics,
Melbourne, Australia, pp. 275282, 1995. (document) 1.7
[138] J. Muir, R. Hogan, R. Skocypec, and R. Buck, Solar reforming of methane in a direct
absorption catalytic reactor on a parabolic dish--Part I: Test and analysis, Solar Energy, Vol.
52, No. 6, pp. 467477, 1994. (document) 1.7
[139] J. Morud and S. Skogestad, The Dynamics of Chemical Reactors with Heat Integration,
AIChE Annual Meeting, St. Louis, November 6, 1993. Paper No. 26e. (document) 3.1.2
[140] K. Lovegrove, Thermodynamic limits on the performance of a solar thermochemical
energy storage system, Int. J. Energy Res., vol. 17, pp. 817829, 1993. (document) 1.6
[141] M. Levy, R. Levitan, H. Rosin, and R. Rubin, Solar energy storage via a closed-loop
chemical heat pipe, Solar Energy, Vol. 50, No. 2, pp. 179189, 1993. (document) 1.7
[142] S. S. E. H. Elnashaie and S. S. Elshishini, Modelling, Simulation and Optimization of
Industrial Fixed Bed Catalytic Reactors, vol. 7, Gordon and Breach Science Publishers,
Amsterdam (1993). (document) 3.1.2 , 3.1.2.2, 3.4, 5.1.3
[143] Bansal, N. K. and D. Buddhi, Performance Equations of a Collector cum Storage
System using Phase Change Materials, Solar Energy, Vol. 48, pp. 185-194, 1992. (document)
1.4
[144] Hoogendoorn, C. J. and G. C. J. Bart, Performance and Modeling of Latent Heat Stores,
Solar Energy, Vol. 48, pp. 53-58, 1992. (document) 1.4
[145] Jotshi, C. K., D. Y. Goswami, et al., Solar Thermal Energy Storage in Phase Change
Materials, Proceedings of Solar 92: The 1992 AM. Solar Energy Society Annual
Conference, pp. 174-179, 1992. (document) 1.7
[146] Bannister P., An Experimental and Analytical Assessment of a Steam Rankine Solar
Thermal System. Ph.D. Thesis, Research School of Physical Sciences and Engineering,
Australian National University, Canberra, Australia, 1991. (document) 1.6
[147] Ghoneim, A. A., S. A. Klein, et al., Analysis of collector-storage building walls using
phase-change materials." Solar Energy, Vol. 47 No.3, pp. 237-242, 1991. (document) 1.4
116
[148] R.G. Compton, Kinetic Models of Catalytic Reactions, Vol. 32, Elsevier Science
Publishing Company, New York (1991). (document) 3.1.2
[149] Farid, M. M. and A. Kanzawa, Thermal Performance of a Heat Storage Module using
PCMs with Different Melting Temperatures: Mathematical Modeling, Journal of Solar
Engineering, Vol. 111, pp. 152-157, 1989. (document) 1.4
[150] Firoz Ahmad, Solar Radiation Studies at Karachi Pakistan, PhD Thesis, Department of
Physics, University of Karachi, Pakistan, 1989. (document) 2.1.1
[151] Yanadori, M. and T. Masuda, Heat Transfer Study on a Heat Storage Container with a
Phase Change Material (Part2. heat transfer in the melting process in a cylindrical heat
storage container), Solar Energy, Vol. 42, pp. 27-34, 1989. (document) 1.4
[152] Yu Yuguo and Wang Changying, Steady-State Simulation of Ammonia Synthesis
Loop, Journal of Chemical Industry and Engineering (China), Vol. 4, No. 2, 1989. (document)
3.1.2, 3.4
[153] Bansal, N. K. and D. Buddhi, Solar Thermal Storage Systems using Phase Change
Materials, International Journal of Energy Research, Vol. 12, pp. 547-555, 1988. (document)
1.7
[154] Richardson J., Paripatyadar S. and Shen J., Dynamics of a sodium heat pipe reforming
reactor, AIChE J., vol. 34, pp. 743752, 1988. (document) 1.7
[155] J. S. Buchanan and S. Sundaresan, Optimal Catalyst Distribution and Dilution in
Nonisothermal Packed Bed Reactors, Chem. Eng. Comm., Vol. 52, pp. 33-51, 1987. (document)
4.4.2
[156] P. Carden, Direct Work Output from Thermochemical Energy Transfer System,
International Journal of Hydrogen Energy, Vol. 12 No.1, pp. 1322, 1987. (document) 3.1.1
[157] Bengt Mansson and Bjarne Andresen, Optimal Temperature Profile for an Ammonia
Reactor, Ind. Eng. Chem. Process Des. Dev., Vol. 25, pp. 59-65, 1986. (document) 5.1.2
[158] Ralph W. Pike, Optimization for Engineering Systems, Louisiana State University, Van
Nostrand Reinhold, New York, (1986). (Open Library) (document) 4.2
[159] Eftekhar J., A. Haji-Sheikh, et al., Heat Transfer Enhancement in a Paraffin Wax
Thermal Storage System, Solar Energy Engineering, Vol. 106, pp. 203-210, 1984. (document)
1.4
[160] S. Nandy and T. Lenz, Observations on the catalytic decomposition of ammonia at high
temperatures and pressures, Amer. Inst. Chem. Eng. J., vol. 30, no. 3, pp. 504507, 1984.
(document) 2.2.1
[161] Richard B. Bannerot, John R. Howell, and Gary C. Vliet, Solar-Thermal Energy Systems,
Analysis and Design, McGraw-Hill, Inc., (1982). (document) 1.7
[162] O. Williams, Ammonia Thermochemical energy transport in a distributed collector solar
thermal power plant, Solar Energy, vol. 27, no. 3, pp. 205214, 1981. (document) 1.7
117
[163] J. Wright and T. Lenz, Solar energy collection using the reversible ammonia
dissociation, Proc. 15th Intersoc. Energy Conv. Eng. Conf., Fort Collins, CO, 1980, pp.
140144, 1980. (document) 1.7
[164] John A. Duffie, William A. Beckman, Solar Engineering of Thermal Processes, Second
edition, John Wiley & Sons Inc., New York (1980). (document) 1.6
[165] M. Zander and W. Thomas, Some thermodynamic properties of liquid ammonia: PVT
data, vapor pressure, and critical temperature, J. Chem. Eng. Data, vol. 24, no. 1, pp. 12,
1979. (document) 1.5.1, 2.2
[166] O. Williams and P. Carden, Energy storage efficiency for ammonia/hydrogen-nitrogen
thermochemical energy transfer system, Int. J. Energy Res., vol. 3, pp. 2940, 1979.
(document) 1.7
[167] O. Williams and P. Carden, Ammonia dissociation for solar thermochemical absorbers,
Int. J. Energy Res., vol. 3, pp. 129142, 1979. (document) 1.7
[168] Frank Kreith and Jan F. Kreider, Principles of Solar Engineering, Hemisphere Publishing
Corporation, New York, (1978). (document) 1.1
[169] Michaels, I. A., An overview of the USA Program for the Development of Thermal
Energy Storage for Solar Energy Applications, Solar Energy, Vol. 27, pp. 159-167, 1978.
(document) 1.2.2
[170] Morrison, D. J. and S. I. Abdel-Khalik, Effects of Phase Change Energy Storage on the
Performance of Air-Based and Liquid-Based Solar Heating Systems, Solar Energy, Vol. 20,
pp. 57-67, 1978. (document) 1.4
[171] P. Carden and O. Williams, The efficiencies of thermochemical energy transfer, Int. J.
Energy Res., vol. 2, pp. 389406, 1978. (document) 1.7
[172] Rajagopal, D., Krishnajwamy, et al., A Simulation Study of Phase Change Energy
Store, Proceedings of the Int. Solar Energy Society Congress (1978), New Delhi, India.
(document) 1.4
[173] L. D. Gaines, Optimal Temperatures for Ammonia Synthesis Converters, Ind. Eng.
Chem. Process Des. Dev., Vol. 16, No.3, pp. 381-389, 1977. (document) 5.1.1
[174] P. Carden, Energy Corradiation using the Reversible Ammonia Reaction, Solar Energy
Vol. 19, pp. 365378, 1977. (document) 1.7
[175] Aden B Meinel and Marjorie P. Meilen, Applied Solar Energy, An Introduction, AddisonWesley Publishing Company, Inc. Philippines, third edition, 1976. (document) 1.1, 1.7
[176] L. W. Brantley, Thermal energy storage system, IRE Transactions Elect Computers,
Vol. 147-149, pp. 1-10, November 1976. (document) 1.4
[177] P. Carden, A large scale solar plant based on the dissociation and synthesis of
ammonia, Dept. Eng. Phys., RSPhysS, Australian Nat. Univ., Canberra A.C.T. Australia,
Tech. Rep. EC-TR-8, 1974. (document) 1.7
118
[178] C. K. Lee, Critical mass minimization of a cylindrical geometry reactor by two group
diffusion equation, J. Kor. Nuc. Soc. Vol. 5, No. 2, pp. 115-131, 1973. (document) 5.2
[179] A. Murase, H. L. Roberts, and A. O. Converse, "Optimal Thermal Design of an
Autothermal Ammonia Synthesis Reactor", Industrial and Engineering Chemistry Process
Design Development, Vol. 9, No. 4, pp. 503-513, 1970. (document) 5.1
[180] Kirk, D.E., Optimal Control Theory: An Introduction, Prentice Hall, Inc., Englewood
Clifffs, New Jersey (1970). (document) 4.2, 4.4.2, 5.2
[181] M.M. Denn, Optimization by Variational Methods, McGraw-Hill Book Company, New
York (1970). (document) 4.2
[182] Sagan Hans, Introduction to the Calculus of Variations, McGraw Hill Book Co., New
York (1969). (document) 4.2
[183] D.C. Dyson and J.M. Simon, Industrial and Engineering Chemistry Fundamentals, Vol.7,
ACS Publications, Washington D.C. (1968) (document) 3.1.2.2
[184] Crider J.E. and Foss A.S., An Analytic Solution for the Dynamics of a Packed Adiabatic
Chemical Reactor, AIChE Journal, Vol. 14, No. 1, pp. 77-84, 1968. (document) 3.1.2
[185] Forray, M. J., Variational Calculus in Science and Engineering, McGraw-Hill Book
Company, New York, (1968). (document) 4.2
[186] Nielsen, A., An Investigation on Promoted Iron Catalysts for the Synthesis of Ammonia,
3rd edition., Jul. Gjellerups Forlag, (1968). (document) 1.7
[187] D.C. Dyson, "Optimal Design of Reactors for single Exothermic Reversible Reactions",
Ph.D. thesis, London University, 1965. (document) 4.1
[188] R.F. Baddour, P. L. T. Brian, B. A. Logeais, J. P. Eymery, "Steady-State Simulation of an
Ammonia Synthesis Converter", Chemical Engineering Science, Vol. 20, pp. 281-292,1965.
(document) 3.1.2
[189] A. Nielsen, J. Kjaer, and B. Hansen, Rate equation and mechanism of ammonia
synthesis at industrial conditions, J. Catalysis, vol. 3, pp. 6879, 1964. (document) 1.7
[190] Rutherford Aris, The Optimal Design of Chemical Reactors- A Study in Dynamic
Programming, Academic Press Inc. Ltd. London (1961). (document) 4.1
[191] A. Ozaki and Hugh Taylor, Kinetics and Mechanism of the Ammonia Synthesis,
Proceedings of the Royal Society, Vol. 258, pp. 47-62, 1960. (document) 3.1.2
[192] Aris R. and Amundson N. R., An Analysis of Chemical Reactor Stability and Control,
Chem. Engg. Science, Vol. 07, No. 03, pp. 121-155, 1958. (document) 4.1
[193] D.Annable, "Application of the Temkin Kinetic Equation to Ammonia Synthesis in the
Large-Scale Reactors", Chemical Engineering Science, July 1952. (document) 3.1.2.2
[194] Klaus Fuchs, Pressure Dependence of the Equilibrium Constant of Ammonia,
Proceedings of the Royal Society, Vol. 179, pp. 433-438, 1942. (document) 3.1.2.2
119
120
APPENDIX A.
Critical Point*
Substance
Nitrogen
Hydrogen
Ammonia
Tc
Pc
MPa
126.192
33.145
405.4
3.3958
1.2964
11.333
kg / m 3
31.3
31.263
225.0
121
Boiling Point
K
77.355
20.369
239.823
Name
SSATS
Functions Called
Description
ACTVT(P(IS),T(IS),x(1),x(2),x(4))
EQNCN(T(IS))
ETA(P,T,Z)
RTCNT(T(IS),R_un)
RRATE(kArh,Ka,aH2,aN2,aNH3)
SPCHT(T(IS),P(IS))
Solves 2
equations in
one zone; RK4
method
SSEqmProg
None
RunSSoptim
SSoptim
SSATS_NonUnif
MansonOneEqn
ACTVT(P(IS),T(IS),x(1),x(2),x(4))
EQNCN(T(IS))
ETA(P,T,Z)
RTCNT(T(IS),R_un)
RRATE(kArh,Ka,aH2,aN2,aNH3)
SPCHT(T(IS),P(IS))
OptimalT
122
Computes eqm
mol fractions,
extent and K
Solves 3
equations from
Babu; counter
flow
feed/reacting
Gas and
temperature
Same as
SSATSexcept it has 3
zones allowing
user variable
catalyst
activity
Solves one
equation with
optimal
temperature
found from
numerical
solution of
Hamiltonian
Remarks
SSATS
Last
Update:
2010
APRIL 2011
tic
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% INPUT
% System Pressure (atm)
% Temp (K)
% Total Mass Flow Rate (kg/hr) =
% Mole fractions (H,N,Ar,Amm,Met) [x] =
% Area = 20.0 ; % cross-section area of catalyst m^2
% Length of converter Lmax (m)
% OUTPUT
% graph of mol fractions of H, N, Amm vs length
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% program parameters
NS = 10; % number of streams
NC = 5;
= %3.0f \n',NS);
123
kJ/(mol-K)\n',R_un);
1 : H2
2: N2
3: Ar
4: Ammonia
5:Methane
Name
Mol Wt (kg/kmol)\n');
fprintf (resl,'\n 1
Hydrogen
%8.4f ',MW(1));
fprintf (resl,'\n 2
Nitrogen
%8.4f ',MW(2));
fprintf (resl,'\n 3
Argon
%8.4f ',MW(3));
fprintf (resl,'\n 4
Ammonia
%8.4f ',MW(4));
fprintf (resl,'\n 5
Methane
%8.4f ',MW(5));
1 : H2
Dashti p.20
Dashti p.20
2: N2
3: Ar
4: Ammonia
5:Methane
124
%
% stream computation.......................................
MWt(IS) = 0.0; % average molecular weight of stream
xT = 0.0; % total mol fr. this is should add up to 1.0
for i = 1:NC
MWt(IS)=MWt(IS)+x(i)*MW(i);
xT
= xT
+x(i);
end
RR(IS) = R_un/MWt(IS); % gas constant for this stream (gas)
%------------------------------% mfrT = 0.0; % total mass flow rate/hr
%
for j=1:NC
mfr(j)=mfm(j)*MW(j); % kg/hr
% end
% MolarFlRateMix(IS) = mfrT/MWt(IS); % moles per hr
%-------------------------------MolarFlRateMix(IS) = TotMassFlRate(IS)/MWt(IS); % in kmols/hr
mfrT=0.0;
for jk=1:NC
mfr(jk) = x(jk)*MolarFlRateMix(IS);
mfrT = mfrT + mfr(jk);
mfm(jk) = mfr(jk)/MW(jk);
end
% end of stream computation...............................
%
125
% STREAM OUTPUT
fprintf (resl,'\n ----------------------------------------------------\n');
fprintf (resl,'\n STREAM No: %3.0f \n',IS);
fprintf (resl,'\n NC
Mole Fr
fprintf (resl,'\n
kg-mols/hr
kg/hr\n');
for i=1:NC
fprintf (resl,'\n %2.0f
',i,x(i),mfm(i),mfr(i))
%8.4f
%8.4f
%8.4f
end
fprintf (resl,'\n \n Total
%6.4f
%12.4f\n',xT,mfrT);
kg/kmol
kJ/(kmol-K)
= 0.0;
Cp
kJ/(kmol-K) kJ/(kg-K)\n');
fprintf (resl,'\n 1
Hydrogen
fprintf (resl,'\n 1
Nitrogen
fprintf (resl,'\n 1
Argon
fprintf (resl,'\n 1
Ammonia
126
fprintf (resl,'\n 1
Methane
= RMix
+ Rg(i)*mfr(i)/mfrT;
CpMix
CvMix
%12.4e
RMix
%8.2f
% compressor work
n=1;
P(2) = 1.5 * P(1); % discharge pressure
PressRatio = P(2)/P(1);
[Ws]=COMPR(n,T(1),RMix,P(1),P(2),GammaMix); % gives Work in kJ/kmol of
gas
PowerComp = Ws * MolarFlRateMix(1); % kJ/hr
PowerComp = (1./(60.*60.))*PowerComp; % kW
fprintf (resl,'\n Compressor Power \n');
fprintf (resl,'\n Reciprocating Compressor\n')
fprintf (resl,'\n No of stages = %2.0f ',n);
fprintf (resl,'\n Suction
= %6.2f
\n\n',PressRatio);
= %12.4e kJ/kmol
= %12.4e kW
\n',Ws);
\n',PowerComp);
127
%[Ws]=COMPR(1,300,8.314,1,10,1.3);
%PowerComp = Ws * 1.114e-3;
%fprintf (resl,'\n Compressor Work
= %12.4e kW
\n',PowerComp);
1 : H2
2: N2
Dashti p.20
3: Ar
4: Ammonia
5:Methane
%
% stream computation.......................................
MWt(IS) = 0.0; % average molecular weight of stream
xT = 0.0; % total mol fr. this is should add up to 1.0
for i = 1:NC
MWt(IS)=MWt(IS)+x(i)*MW(i);
xT
= xT
+x(i);
end
128
Mole Fr
Temperature = %8.2f
fprintf (resl,'\n
Mass flow
kmoles/hr
kg/hr\n');
for i=1:NC
fprintf (resl,'\n %2.0f
%8.4f
',i,x(i),MolFlRate(i),MassFlRate(i))
%8.2f
%8.2f
end
fprintf (resl,'\n \n
Total %6.4f
%12.4f
%12.4f\n',xT,sumMol,sumMas);
MWt(%2.0f) = %8.2f
kg/kmol
kJ/(kmol-K)
129
% SECTION BEGINS
=====================================================
130
end
fprintf (resl,'\n\n Mixture Cp kJ/kg-K');
fprintf (resl,'\n CpMix = %6.2f KJ/kg-K',CpMix);
[HtReact]= DeltaH(P(IS),T(IS));
% X is the height from the top of the catalyst (m) and StepX is the
% increment in X
fprintf (resl,'\n Test Section output begins ...\n');
fprintf (resl,'\n Pressure = %6.2f
atm
Temp = %6.2f',P(IS),T(IS));
X = 0.0; StepX=0.5;
fprintf (resl,'\n X = %6.2f m
StepX = %6.2f',X,StepX);
x(2)=%8.4f
x(4)=%8.4f
dZ/dx
dT/dx
=
=
%12.4e
%12.4e
meter
\n',dTdX);
% now use the above gradients to find new values for moles of H, N,
Ammonia
131
Area * StepX
Z = %6.2f
T = %6.2f K \n',Znew,Tnew);
xnew(ik)
= 0.0;
end
% new totals
TotMolarFlRateOld(IS)=TotMolarFlRate(IS);
TotMolarFlRateNew(IS)=0.0;
TotMoleFrOld=0.0;
TotMoleFrNew=0.0;
TotMassFlRateOld(IS)=TotMassFlRate(IS);
TotMassFlRateNew(IS)=0.0;
MolFlRateNew(1) = MolFlRateOld(1) - 3.0* delta; % H2
MolFlRateNew(2) = MolFlRateOld(2) - 1.0* delta; % N2
MolFlRateNew(3) = MolFlRateOld(3);
% Argon
132
% CH4
= TotMassFlRateNew(IS)
+ MassFlRateNew(ik2);
end
for ik11 = 1:NC
xnew(ik11)
= MolFlRateNew(ik11)/TotMolarFlRateNew(IS);
end
for ik12 = 1:NC
TotMoleFrOld = TotMoleFrOld + xold(ik12);
TotMoleFrNew = TotMoleFrNew + xnew(ik12);
end
BEFORE
fprintf (resl,'\n
i
MolFlRate
MolFlRate
mol fr
MassFlRate');
fprintf (resl,'\n
kmol/hr
CONVERSION
mol fr
kmol/hr
kg/hr');
MassFlRate
kg/hr
for ik3=1:NC
fprintf (resl,'\n %3.0f %15.4e %8.4f %12.4e %20.4e %8.4f %12.4e
',ik3,MolFlRateOld(ik3),xold(ik3),MassFlRateOld(ik3),MolFlRateNew(ik3),x
new(ik3),MassFlRateNew(ik3));
end
fprintf
(resl,'\n %21.4e %8.4f %12.4e %21.4e %9.4f %13.4e',TotMolarFlRateOld(IS)
,TotMoleFrOld,TotMassFlRateOld(IS),TotMolarFlRateNew(IS),TotMoleFrNew,To
tMassFlRateNew(IS));
% how much energy is given off in this volume?
% mass flow rate is the same before or after so can use either
Power = TotMassFlRateOld(IS)*CpMix*(Tnew-Told); % (kg/hr)*(kJ/kg-K)*(K)
= kJ/hr
133
Power = Power/(60*60); % kW
fprintf (resl,'\n Power given off in synthesis of ammonia in this vol
element = %12.4e kW\n',Power);
fprintf (resl,'\n Test Section ends.............\n\n\n');
%SECTION ENDS
=======================================
[Eta1]=ETA(P(IS),T(IS),Z);%
fprintf (resl,'\n\n Pressure = %8.2f atm
\n',P(IS),T(IS));
%fprintf (resl,'\n
aN2
aNH3
Temp
Ka
phiH2
kArh
Temperature = %8.2f
phiN2
phiNH3
RNH3\n');
aH2
%fprintf
(resl,'\n %6.1f %10.2e %10.2e %10.2e %10.2e %10.2e %10.2e %10.2e %10.2e
%10.2e\n',T(IS),phiH2,phiN2,phiNH3,aH2,aN2,aNH3,Ka,kArh,RNH3);
%---------------------------------------------------------% begin RK 4th order for 2 1st-order coupled ODEs
fprintf (resl,'\n\n R-K method \n\n');
%Area is defined above
FoverA = MolFlRate(2)/Area; % molar flow rate for Nitrogen at inlet
fprintf (resl,'\n FoverA = %8.3f kmols per hr per m^2\n',FoverA);
Z = 0.0;
T = T(IS);
P = P(IS);
%LL = [0 ; 0.50; 1.00; 1.50; 2.00; 2.50; 3.00; 3.50; 4.00; 4.50; 5.00];
ZZ(1)=0.0; % initial value of conversion percentage
TT(1)=T;
Lmin =0.0;
Lmax= HghtReactor; % height of the convtr in meters
NPTS = 20;
h = (Lmax-Lmin)/NPTS;
LL(1)=Lmin;
134
for i = 2: NPTS
LL(i) = LL(i-1)+h;
end
LL
L = LL(1);
i = 1 ;
% component ID:
1 : H2
Hmoles(i) =
MolFlRate(1);
Nmoles(i) =
MolFlRate(2);
Rmoles(i) =
MolFlRate(3);
Amoles(i) =
MolFlRate(4);
Mmoles(i) =
MolFlRate(5);
2: N2
3: Ar
4: Ammonia
5:Methane
x(1)
x(2)
x(4)
%
Toptimal(i) = 800.0;
NPTS1=NPTS-1;
while (i <= NPTS1) %---------------------------------- RK4 LOOP BEGINS
i
fprintf
(resl,'\n %3.0f %8.4f %8.4f %8.4f %15.4e',i,x(1),x(2),x(4),TotalMoles(i)
);
135
%%%%%%%%%%%%%%%%%%%%%%%%%%%
k1_z
k1_T
%%%%%%%%%%%%%%%%%%%%
% first function
% evaluate RHS of mass conservation equation FUNC1
[Eta1]=ETA(P,T,Z);
[phiH2,phiN2,phiNH3,aH2,aN2,aNH3]=ACTVT(P,T,x(1),x(2),x(4));
[Ka] = EQNCN(T);
[kArh]= RTCNT(T,R_un);
[RNH3]=RRATE(kArh,Ka,aH2,aN2,aNH3);
FUNC1 = Eta1*RNH3/(2.0*FoverA);
k1_z
= FUNC1;
% second function
% evaluate RHS of energy conservation equation FUNC2
[CpH2,CpN2,CpNH3,CpCH4,CpAr] = SPCHT(T,P);
Cp(1) = CpH2; Cp(2) = CpN2; Cp(3) = CpAr; Cp(4)=CpNH3; Cp(5)=CpCH4;
jj=1;
for j= NC+1:2*NC
Cp(j) = Cp(jj)/MW(jj); % kJ/(kg-K)
jj=jj+1;
end
CpMix = 0.0;
for ii = 1:NC
CpMix = CpMix + Cp(ii+5)*MassFlRate(ii)/TotMassFlRate(IS);
end
[HtReact]= DeltaH(P,T);
FUNC2 = ( HtReact * Eta1 * RNH3 ) / ((TotMassFlRate(IS)/Area) * CpMix );
k1_T
= -FUNC2;
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
k2_z
k2_P
LL(i) + h/2. ;
% first function
[Eta1]=ETA(P,T,Z);
136
[phiH2,phiN2,phiNH3,aH2,aN2,aNH3]=ACTVT(P,T,x(1),x(2),x(4));
[Ka] = EQNCN(T);
[kArh]= RTCNT(T,R_un);
[RNH3]=RRATE(kArh,Ka,aH2,aN2,aNH3);
FUNC1 = Eta1*RNH3/(2.0*FoverA);
k2_z
= FUNC1;
% second function
[CpH2,CpN2,CpNH3,CpCH4,CpAr] = SPCHT(T,P);
Cp(1) = CpH2; Cp(2) = CpN2; Cp(3) = CpAr; Cp(4)=CpNH3; Cp(5)=CpCH4;
jj=1;
for j= NC+1:2*NC
Cp(j) = Cp(jj)/MW(jj); % kJ/(kg-K)
jj=jj+1;
end
CpMix = 0.0;
for ii = 1:NC
CpMix = CpMix + Cp(ii+5)*MassFlRate(ii)/TotMassFlRate(IS);
end
[HtReact]= DeltaH(P,T);
FUNC2 = ( HtReact * Eta1 * RNH3 ) / ((TotMassFlRate(IS)/Area) * CpMix );
k2_T
= -FUNC2;
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
k3_z
k3_P
% first function
[Eta1]=ETA(P,T,Z);
[phiH2,phiN2,phiNH3,aH2,aN2,aNH3]=ACTVT(P,T,x(1),x(2),x(4));
[Ka] = EQNCN(T);
[kArh]= RTCNT(T,R_un);
137
[RNH3]=RRATE(kArh,Ka,aH2,aN2,aNH3);
FUNC1 = Eta1*RNH3/(2.0*FoverA);
k3_z
= FUNC1;
% second function
[CpH2,CpN2,CpNH3,CpCH4,CpAr] = SPCHT(T,P);
Cp(1) = CpH2; Cp(2) = CpN2; Cp(3) = CpAr; Cp(4)=CpNH3; Cp(5)=CpCH4;
jj=1;
for j= NC+1:2*NC
Cp(j) = Cp(jj)/MW(jj); % kJ/(kg-K)
jj=jj+1;
end
CpMix = 0.0;
for ii = 1:NC
CpMix = CpMix + Cp(ii+5)*MassFlRate(ii)/TotMassFlRate(IS);
end
[HtReact]= DeltaH(P,T);
FUNC2 = ( HtReact * Eta1 * RNH3 ) / ((TotMassFlRate(IS)/Area) * CpMix );
k3_T
= -FUNC2;
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
k4_z
= LL(i) + h;
= ZZ(i) + k3_z * h;
= TT(i) + k3_T * h;
k4_P
% first function
[Eta1]=ETA(P,T,Z);
[phiH2,phiN2,phiNH3,aH2,aN2,aNH3]=ACTVT(P,T,x(1),x(2),x(4));
[Ka] = EQNCN(T);
[kArh]= RTCNT(T,R_un);
[RNH3]=RRATE(kArh,Ka,aH2,aN2,aNH3);
138
FUNC1 = Eta1*RNH3/(2.0*FoverA);
k4_z
= FUNC1;
% second function
[CpH2,CpN2,CpNH3,CpCH4,CpAr] = SPCHT(T,P);
Cp(1) = CpH2; Cp(2) = CpN2; Cp(3) = CpAr; Cp(4)=CpNH3; Cp(5)=CpCH4;
jj=1;
for j= NC+1:2*NC
Cp(j) = Cp(jj)/MW(jj); % kJ/(kg-K)
jj=jj+1;
end
CpMix = 0.0;
for ii = 1:NC
CpMix = CpMix + Cp(ii+5)*MassFlRate(ii)/TotMassFlRate(IS);
end
[HtReact]= DeltaH(P,T);
FUNC2 = ( HtReact * Eta1 * RNH3 ) / ((TotMassFlRate(IS)/Area) * CpMix );
k4_T
= -FUNC2;
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
i = i + 1;
ZZ(i) = ZZ(i-1) + (h/6.)*(k1_z + 2.0*k2_z + 2.0*k3_z + k4_z);
TT(i) = TT(i-1) + (h/6.)*(k1_T + 2.0*k2_T + 2.0*k3_T + k4_T);
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% update mole fractions
% component ID:
1 : H2
2: N2
3: Ar
4: Ammonia
ConvertedMolesOfN = ZZ(i)*MolFlRate(2);
Hmoles(i) =
139
5:Methane
Rmoles(i) =
MolFlRate(3);
Amoles(i) =
Mmoles(i) =
MolFlRate(5);
%
TotalMoles(i) = Hmoles(i) + Nmoles(i) + Rmoles(i) + Amoles(i) +
Mmoles(i);
AmolesPC(i) = Amoles(i)/TotalMoles(i);
% mole fractions
HmoleFr(i) = Hmoles(i)/TotalMoles(i);
NmoleFr(i) = Nmoles(i)/TotalMoles(i);
AmoleFr(i) = Amoles(i)/TotalMoles(i);
Power(i-1) = TotMassFlRate(IS)*CpMix*(TT(i)-TT(i-1)); %
(kg/hr)*(kJ/kg.K)*K=kJ/hr
Power(i-1) = Power(i-1)/(60*60); % kW
% now to go back to the beginning of the loop, set new local parameters
% P,T,Z. and also need P, T, x(1), x(2), x(4) for next iteration step
x(1) = Hmoles(i)/TotalMoles(i);
x(2) = Nmoles(i)/TotalMoles(i);
x(4) = Amoles(i)/TotalMoles(i);
MolFlowRate(2) = Nmoles(i); % this is the N2 inlet for the next volume
element
FoverA = MolFlRate(2)/Area; % molar flow rate for Nitrogen at inlet
% Pressure remains same
P=P;
T=TT(i);
Z=ZZ(i);
% now go to find optimal temp at this point --------------------- 10 may
2011
% scan between 500 and 800
Tchk=495;
fprintf (resl,'\n Temp (K)
diff=fLHS-fRHS');
140
= -( (20.523e3)/Tchk^2 ) * FatT;
141
if (Topt==0)
Toptimal(i)=800.0;
end
%----------------------------------------------------------------
% now go back
end %
-------------------------------------
RK4
LOOP ENDS
fprintf
(resl,'\n %3.0f %8.4f %8.4f %8.4f %15.4e',i,x(1),x(2),x(4),TotalMoles(i)
);
Moles
H2
N2
Ar
Toptimal\n');
NH3
for i = 1: NPTS
fprintf
(resl,'\n %3.0f %6.4f %8.2f %8.2f
%8.2f %8.2f %8.2f
%10.2f %8.4
f %8.2f %8.2f',i,LL(i),Hmoles(i),Nmoles(i),Rmoles(i),Amoles(i),Mmoles(i
),TotalMoles(i),ZZ(i),TT(i),Toptimal(i));
end
% Power available from exothermic reactions
fprintf (resl,'\n\n\n\n
Power (kW)\n');
sumPower =0.0;
for i = 1: NPTS1
fprintf (resl,'\n
%3.0f
%12.4e
',i,Power(i));
sumPower=sumPower+Power(i);
end
fprintf (resl,'\n total exothermic energy avaiable is %12.4e kW
',sumPower);
ThisPlot=4;
142
if (ThisPlot==1)
plot (LL,ZZ,'-k')
xlabel ('Distance (m)')
ylabel ('Conversion of N_2
(Z)')
143
plot (LL,ZZ,'-k')
xlabel ('Distance (m)')
ylabel ('Conversion of N_2
%
(Z)')
plot (LL,TT,'-k')
hold on
% now plot the optimal temp on this
plot (LL,Toptimal,'--k');
xlabel ('Distance (m)')
ylabel ('Temperature (K)')
h = legend('Temp','Topt',2);
grid on
%
title 'Temperature'
subplot(2,2,4)
%plot (LL,Hmoles,'-k')
plot (LL,HmoleFr,'-k')
hold on
%plot (LL,Nmoles,'-.k')
plot (LL,NmoleFr,'-.k')
hold on
%plot (LL,Amoles,'--k')
plot (LL,AmoleFr,'--k')
xlabel ('Distance (m)')
%ylabel ('Molar Flow Rate (kmols/hr)')
ylabel ('Mole Fractions')
grid on
h = legend('H_2','N_2','NH_3',2);
144
ACTVT
ACTIVITY CALCULATION OF H2, N2 & NH3
%
% C:\MATLAB7\work\Ammonia\ACTVT.m
% Author: Engr. Sadaf Siddiq (sdfabd2001@gmail.com)
% Written: JULY
2010
% Pressure in atm
% Temp
in K
A=(-3.8402*T^0.125)+0.541;
B=(-0.1263*T^0.5)-15.98;
C=(-0.011901*T)-5.941;
% Fugacity Coefficients
tt1 = exp(A)*P; tt2 = exp(B)*P^2; tt3 = exp(C)*exp(-P/300); % check
last term sign again
phiH2=exp(tt1-tt2 +300*tt3);
phiN2=0.93431737+((0.2028538E-3)*T)+((0.295896E-3)*P)-((0.270727E6)*T^2)+(0.4775207E-6*P^2);
phiNH3=0.1438996+((0.2028538E-2)*T)-((0.4487672E-3)*P)-((0.1142945E5)*T^2)+((0.2761216E-6)*P^2);
% Activities
aH2=phiH2*yH2*P;
aN2=phiN2*yN2*P;
aNH3=phiNH3*yNH3*P;
function[Ws]=COMPR(n,T,RMix,P1,P2,gamma)
145
% Ws
% r
% n
% T
% RMix
% P1
% P2
tt1 = gamma/(gamma-1.0);
tt2 = 1./tt1;
ratio = (P2/P1)^(1./n);
tt3 = tt1 * RMix * T;
tt4 = (1.0 - ratio^tt2);
Ws=
n* tt3 * tt4 ;
function[HtReact]= DeltaH(P,T)
% heat of reaction in kJ/kmol
% DASHTI
tt1 = 0.54526 + 846.609/T + 459.734e6/T^3;
tt2 = -0.2525e-3*T^2 + 1.69197e-6*T^3-9157.09;
HtReact = 4.184*( -tt1*P - 5.34685*T + tt2 );
function[Ka] = EQNCN(T)
% equilibrium constant
% T in K
Ka=10^(-(2.691122*log10(T))-(5.519265E-5*T)+(1.848863E7*(T^2))+(2001.6/T)+2.689);
function[Eta1]= ETA(P,T,Z)
% eta is the catalyst activity factor
% P units of atm
if (P <= 150)
b0 = -17.539096; b1=0.07697849; b2=6.900548; b3= -1.08279e-4;
b4 = -26.42469;
b5=4.927648e-8; b6=38.937;
end
if ((P > 150)&(P<=250))
b0 = -8.2125534; b1=0.03774149; b2=6.190112; b3= -5.354571e-5;
b4 = -20.86963;
b5=2.379142e-8; b6=27.88;
146
end
if (P > 250)
b0 = -4.6757259; b1=0.2354872; b2=4.687353; b3= -3.463308e-5;
b4 = -11.28031;
b5=1.540881e-8; b6=10.46;
end
Eta1 = b0 + b1*T + b2*Z + b3*T^2 + b4*Z^2
+ b5*T^3 + b6*Z^3;
function[delHr]=RCTHT(T,P)
delHr=(-(0.54526+(846.609/T)+(459.734E6/T^3))*P-5.34685*T-(0.2525E3*T^2)+(1.069197E-6*T^3)-9157.09);
function[RNH3]=RRATE(kArh,Ka,aH2,aN2,aNH3)
% reaction rate; units:
tt1 = aH2^1.5;
RNH3 = 2.0 * kArh *
( Ka^2*
function[kArh]= RTCNT(T,R)
% rate constant
k0 = 8.849e14;
% 1 J = 2.389x10-4 kcal
% E = 40765 kcal/kmol
E
= 40765 / 2.389e-4; %
= 1.0e-3*E ;
J/kmol
% kJ/kmol
kArh = k0*exp(-E/(R*T));
function[CpH2,CpN2,CpNH3,CpCH4,CpAr] = SPCHT(T,P)
% specific heat capacities
% cp in kJ/(kmol-K);
% T in K
% P in atm
CpH2=6.952-(0.04567E-2*T)+(0.09563E-5*T^2)-(0.2079E-9*T^3);
CpH2=4.184*CpH2;
CpN2=6.903-(0.03753E-2*T)+(0.1930E-5*T^2)-(0.6861E-9*T^3);
CpN2=4.184*CpN2;
% this expression from Dashti does not give results matching with nist
% a simple model from VKN
%CpNH3a=6.5846-(0.61251E-2*T)+(0.23663E-5*T^2)-(1.5981E-9*T^3);
147
%CpNH3b=(96.1678-0.067571*P+(0.2225+1.6847E-4*P)*T+(1.289E-4-1.0095E7*P)*T^2);
%CpNH3 = 4.184*(CpNH3a+CpNH3b);
% use Shomate equations from NIST 298-1400 K
A=19.99563; B=49.77119; C=-15.37599; D=1.921168; E=0.189174;
t = T/1000;
CpNH3=A + B*t + C*t^2 + D*t^3 + E/t^2;
CpCH4=4.75+(1.2E-2*T)+(0.303E-5*T^2)-(2.63E-9*T^3);
CpCH4=4.184*CpCH4;
CpAr=4.9675;
CpAr=4.184*CpAr;
148
(resl,'\n
(resl,'\n
(resl,'\n
(resl,'\n
(resl,'\n
(resl,'\n
ID
1
2
3
4
5
Name
Hydrogen
Nitrogen
Ammonia
Argon
Methane
Mol Wt (kg/kmol)
Moles\n');
%8.4f %21.4f',MW(1),n(1));
%8.4f %21.4f',MW(2),n(2));
%8.4f %21.4f',MW(4),n(3));
%8.4f %21.4f',MW(3),n(4));
%8.4f %21.4f',MW(5),n(5));
149
% deg C
for i = 1:NT
temp = temp + 50.0;
Temp = temp +273.15 % K
%temp = 675-273.15; Temp=temp+273.15;
% STEP 3 evaluate K(T,P)
%[Ka] = EQNCN(Temp); % Dashti expression
% Ka from Narayanan p.417 Eq. 9.58
lnKa = 79201/(R_un*Temp) - (48.8/R_un)*log(Temp) + (17.38e-3/R_un)*Temp +
14.169;
Ka = (exp(1))^lnKa;
% STEP 4 calc eps
alpha = sqrt( 27.0 * Ka * Pressure^2 );
beta = alpha + 4.0;
tt1 = 1.0 - alpha/beta;
eps = 1.0e23;
if (tt1>=0)
tt2 = sqrt(tt1);
eps1 = 1.0 + tt2;
eps2 = 1.0 - tt2;
end
%fprintf (resl,'\n eps1 = %12.4f
=
=
=
=
=
temp; % deg C
Temp; % Kelvin
eps; % extent of reaction
log10(Ka); % log10 of eqm const
2*eps/(4 - 2*eps);
150
% STEP 5
PlotExtent = 0;
PlotNH3eqm = 1;
PlotEqmConst = 0;
if (PlotExtent == 1)
for plotP = 1:NP
for k = 1:NT
X(k) = ttt(plotP,k); % temp deg C
Y(k) = eee(plotP,k); % extent of reaction
% Y(k) = kkk(plotP,k); % eqm const
end
plot(X,Y,'-k')
hold on
end
xlabel (' Temp (^oC)','Fontsize',16)
ylabel ('Extent (\epsilon ) ','Fontsize',16)
grid off
text(400,0.15,'50 ','Fontsize',12)
text(560,0.35,'300','Fontsize',12)
text(530,0.90,'\bf Pressure','Fontsize',12)
text(450,0.85,'50,100,150,200,250,300 atm','Fontsize',12)
end % end of plot of extent reaction
if (PlotNH3eqm == 1)
for plotP = 1:NP
for k = 1:NT
X(k) = ttt(plotP,k); % temp deg C
Y(k) = aaa(plotP,k); % mol fraction of ammonia in eqm mixture
% Y(k) = kkk(plotP,k); % eqm const
end
plot(X,Y,'-k')
hold on
end
xlabel (' Temp (^oC)','Fontsize',16)
ylabel ('NH_3 in Eqm. Mix. (mol. fr.) ','Fontsize',16)
grid on
text(320,0.15,'50 ','Fontsize',12)
text(480,0.35,'300','Fontsize',12)
text(530,0.90,'\bf Pressure','Fontsize',12)
text(450,0.85,'50,100,150,200,250,300 atm','Fontsize',12)
end % end of plot of ammonia in eqm mixture
if (PlotEqmConst == 1)
for plotP = 1:NP
for k = 1:NT
X(k) = ttt(plotP,k); % temp deg C
151
152
% ammonia moles
AmmMolesInit = 0.0029;
NMolesInit = 0.0251;
Amm = AmmMolesInit + 2*( NMolesInit - Y(:,3));
PlotTemp = 1;
PlotComp = 0;
PlotBoth = 0;
153
toc
fclose(resl);
function dy = SSoptim(t,y)
dy = zeros(3,1);
% a column vector
%
% last modified 28 May 2011
%
% MATLAB commands to run this program
%
options = odeset('RelTol',1e-6,'AbsTol',[1e-8 1e-8 1e-8]);
%
[t,Y] = ode15s(@SSoptim,[0 8],[700 700 701.2],options);
%
plot(t,Y(:,1),'-',t,Y(:,2),'-.',t,Y(:,3),'.')
Cpf=3.0 ; % kJ/(kg-K) cold feed gas
Cpg=3.1 ; % kJ/(kg-K) hot reacting gas flowing downwards
U=140.0;
% heat transfer coefficient kW/(m^2-K)
154
s1=2.*3.14159*7.9/1000;
% surface area of cooling tubes per length of
reactor
W=1.08; % mass flow rate kg/s
f=1.0;
% catalyst effectiveness or concentration
H=-100000.0;% kJ/(kmol N_2)
R= 8.314472;
% universal gas constant kJ/(kmol-K)
Press=150; % system pressure atm
s2=3.14159*7.9*7.9*1.0e-6;
% cross-section area of catalyst zone
% Moles kmol/h-m^2 at Feed
% component ID:
1 : H2
2: N2
3: Ar
4: Ammonia
5:Methane
xFeed= [ 0.6567006; 0.2363680; 0.0202874; 0.026930; 0.059714]; % mole
fractions
TotalFeed = 0.1062; % kmols / hr
H2F
= xFeed(1) * TotalFeed;
% kmol/h
N2F
= xFeed(2) * TotalFeed ;
% kmol/h
NH3F
= xFeed(4) * TotalFeed;
% kmol/h
InertsF
= (xFeed(3) + xFeed(5)) * TotalFeed; % kmol/h
%fprintf (resl,'\n Total Feed = %12.4f moles/h-m^2 \n',TotalFeed);
%
dy(1)
is dTf
dy(2) is dTg
dy(3) is dN
155
[Ka] = EQNCN(T);
[kArh]= RTCNT(T,R);
[RNH3]=RRATE(kArh,Ka,aH2,aN2,aNH3);
dy(3) = -f* s2* RNH3/2.0 ;
156
INPUT
System Pressure (atm)
Temp (K)
Total Mass Flow Rate (kg/hr) =
Mole fractions (H,N,Ar,Amm,Met) [x] =
Area = 20.0 ; % cross-section area of catalyst m^2
Length of converter Lmax (m)
% OUTPUT
% graph of mol fractions of H, N, Amm vs length
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% program parameters
NS = 10; % number of streams
NC = 5; % number of components, H2,N2,NH3,Ar,CH4
fprintf (resl,'\n No. of Streams
= %3.0f \n',NS);
fprintf (resl,'\n No. of Components = %3.0f \n',NC);
%%%%%%%%%%%%%%%%%%%%%%%%% DATA **********************
R_un = 8.314472; % universal gas const J/(mol-K)
%R_un = 1545.349 ; % lbf.ft/lbmol.R
%R_un = 1545.349;
fprintf (resl,'\n Universal Gas Const = %12.6f kJ/(mol-K)\n',R_un);
% chemical data from http://wwwjmg.ch.cam.ac.uk/tools/magnus/PeriodicTable.html
% component ID:
1 : H2
2: N2
3: Ar
4: Ammonia
5:Methane
MW1=2.0*1.0079759; MW2=2.0*14.0067231; MW3= 39.9476613;
MW4=(14.0067231+3.0*1.0079759); MW5 = (12.0110369+4.0*1.0079759);
MW = [ MW1;MW2;MW3;MW4;MW5 ];
fprintf (resl,'\n ID
Name
Mol Wt (kg/kmol)\n');
fprintf (resl,'\n 1 Hydrogen %8.4f ',MW(1));
fprintf (resl,'\n 2 Nitrogen %8.4f ',MW(2));
fprintf (resl,'\n 3 Argon
%8.4f ',MW(3));
fprintf (resl,'\n 4 Ammonia
%8.4f ',MW(4));
fprintf (resl,'\n 5 Methane
%8.4f ',MW(5));
fprintf (resl,'\n ----------------------------\n');
% STREAM 1: SYN GAS ENTERING C-1 ******************************************
IS=1;
fprintf (resl,'\n Stream No: %3.0f \n',IS);
% STREAM INPUT
157
% component ID:
1 : H2
2: N2
3: Ar
4: Ammonia
5:Methane
x= [ 0.6567006; 0.2363680; 0.0202874; 0.026930; 0.059714]; % mole
fractions
% x= [ 0.78; 0.20 ; 0.0 ; 0.02; 0.0]
Area = 3.14159 * (1.58e-2)^2 ; % cross-section area of catalyst m^2
fprintf (resl,'\n Area = %12.4e m^2',Area);
HghtReactor = 0.8; % meters
VolCatalyst = Area * HghtReactor;
fprintf (resl,'\n Vol of catalyst = %12.4e m^3 \n',VolCatalyst);
%x= [ 0.7426; 0.2475; 0.0099; 0.0; 0.0]; % mole fractions
%mfm = [ 750.0 ; 250.0 ;
10.0; 0.0; 0.0]; % kg-mols/hr
%
% stream computation.......................................
MWT(IS) = 0.0; % average molecular weight of stream
xT = 0.0; % total mol fr. this is should add up to 1.0
for i = 1:NC
MWT(IS)=MWT(IS)+x(i)*MW(i);
xT
= xT
+x(i);
end
RR(IS) = R_un/MWT(IS); % gas constant for this stream (gas)
%------------------------------% mfrT = 0.0; % total mass flow rate/hr
% for j=1:NC
%
mfr(j)=mfm(j)*MW(j); % kg/hr
%
mfrT = mfrT + mfr(j);
% end
% MolarFlRateMix(IS) = mfrT/MWT(IS); % moles per hr
%-------------------------------MolarFlRateMix(IS) = TotMassFlRate(IS)/MWT(IS); % in kmols/hr
mfrT=0.0;
mfmT=0.0;
for jk=1:NC
mfr(jk) = x(jk)*MolarFlRateMix(IS); % units kmol/hr
mfrT = mfrT + mfr(jk);
mfm(jk) = mfr(jk)*MW(jk);
mfmT = mfmT + mfm(jk);
end
% end of stream computation...............................
158
%
% STREAM OUTPUT
fprintf (resl,'\n ----------------------------------------------------\n');
fprintf (resl,'\n STREAM No: %3.0f \n',IS);
fprintf (resl,'\n NC
Mole Fr
Molar flow rate
Mass flow rate');
fprintf (resl,'\n
kg-mols/hr
kg/hr\n');
for i=1:NC
fprintf (resl,'\n %2.0f
%8.4f
%8.4f
%8.4f
',i,x(i),mfr(i),mfm(i))
end
fprintf (resl,'\n \n Total %6.4f
%8.4f
%8.4f\n',xT,mfrT,mfmT);
fprintf (resl,'\n Mol Wt of mixture
MWt( %2.0f ) = %8.4f kg/kmol
',IS,MWT(IS));
fprintf (resl,'\n Gas Const of mixture RR ( %2.0f ) = %8.4f kJ/(kmol-K)
',IS,RR(IS));
fprintf (resl,'\n Molar Flow Rate of Stream %3.0f is %8.2f kmoles / hr
',IS,MolarFlRateMix(IS));
fprintf (resl,'\n ----------------------------------------------------\n');
% COMPRESSOR WORK FOR STREAM 1
% make the mixture Cp, Cv and gamma
CpMix = 0.0;
RMix = 0.0;
% find the Cp values at this temp T1 and press P(1)
[CpH2,CpN2,CpNH3,CpCH4,CpAr] = SPCHT(T(1),P(1)); % kJ/(kmol-K)
Cp(1) = CpH2; Cp(2) = CpN2; Cp(3) = CpAr; Cp(4)=CpNH3; Cp(5)=CpCH4;
jj=1;
for j= NC+1:2*NC
Cp(j) = Cp(jj)/MW(jj);
jj=jj+1;
end
fprintf (resl,'\n -----------------------------------------\n');
fprintf (resl,'\n Cp values from function SPCHT at T = %8.2f K and P =
%6.2f atm\n',T(1),P(1));
fprintf (resl,'\n Component
Cp kJ/(kmol-K) kJ/(kg-K)\n');
fprintf (resl,'\n 1 Hydrogen %12.4e %12.4e ',Cp(1),Cp(6));
fprintf (resl,'\n 1 Nitrogen %12.4e %12.4e ',Cp(2),Cp(7));
fprintf (resl,'\n 1 Argon
%12.4e %12.4e ',Cp(3),Cp(8));
fprintf (resl,'\n 1 Ammonia
%12.4e %12.4e ',Cp(4),Cp(9));
fprintf (resl,'\n 1 Methane
%12.4e %12.4e ',Cp(5),Cp(10));
fprintf (resl,'\n ------------------------------------------\n');
for i = 1:NC
% individual gas constants
Rg(i) = R_un/MW(i); % kJ/(kmol-K) * kmol/kg = kJ/(kg-K)
%RMix = RMix + Rg(i)*mfm(i)/mfmT; % based on mass fl rates
RMix = RMix + R_un *mfr(i)/mfrT; % based on molar fl rates
CpMix = CpMix + Cp(i)*mfr(i)/mfrT; % based on molar flow rates
end
CvMix = CpMix - RMix; % molar basis
GammaMix = CpMix/CvMix;
fprintf (resl,'\n Mixture properties (based on molar ratios)\n');
fprintf (resl,'\n
CpMix (kJ/(kmol-K) CvMix
RMix
GammaMix\n');
fprintf (resl,'\n %12.4e
%12.4e
%12.4e
%8.2f
\n',CpMix,CvMix,RMix,GammaMix);
159
% compressor work
n=1;
P(2) = 1.5 * P(1); % discharge pressure
PressRatio = P(2)/P(1);
[Ws]=COMPR(n,T(1),RMix,P(1),P(2),GammaMix); % gives Work in kJ/kmol of gas
PowerComp = Ws * MolarFlRateMix(1); % kJ/hr
PowerComp = (1./(60.*60.))*PowerComp; % kW
fprintf
fprintf
fprintf
fprintf
fprintf
fprintf
fprintf
fprintf
(resl,'\n
(resl,'\n
(resl,'\n
(resl,'\n
(resl,'\n
(resl,'\n
(resl,'\n
(resl,'\n
160
161
Area * StepX
Z = %6.2f
T = %6.2f K \n',Znew,Tnew);
162
for ik =1:NC
MolFlRateOld(ik) = MolFlRate(ik);
MassFlRateOld(ik) = MassFlRate(ik);
MolFlRateNew(ik) = 0.0; % need to compute this now
MassFlRateNew(ik)= 0.0; % need to compute this now
xold(ik)
xnew(ik)
end
% new totals
TotMolarFlRateOld(IS)=TotMolarFlRate(IS);
TotMolarFlRateNew(IS)=0.0;
TotMoleFrOld=0.0;
TotMoleFrNew=0.0;
TotMassFlRateOld(IS)=TotMassFlRate(IS);
TotMassFlRateNew(IS)=0.0;
= MolFlRateNew(ik11)/TotMolarFlRateNew(IS);
163
164
LL(1)=Lmin;
for i = 2: NPTS+1
LL(i) = LL(i-1)+h;
end
LL
L = LL(1);
i = 1 ;
% component ID:
1 : H2
2: N2
3: Ar
4: Ammonia
5:Methane
Hmoles(i) = MolFlRate(1);
Nmoles(i) = MolFlRate(2);
Rmoles(i) = MolFlRate(3);
Amoles(i) = MolFlRate(4);
Mmoles(i) = MolFlRate(5);
TotalMoles(i) = Hmoles(i) + Nmoles(i) + Rmoles(i) + Amoles(i) + Mmoles(i);
HmolesFr(i) = Hmoles(i)/TotalMoles(i); % for plotting, instead of mole fl
rates
NmolesFr(i) = Nmoles(i)/TotalMoles(i);
AmolesFr(i) = Amoles(i)/TotalMoles(i);
AmolesPC(i) = Amoles(i)/TotalMoles(i);
%
%%%%%%%%%%%%%%% patch added 18 May 2011 %%%%%%% for printout only
Tsend = T;
TotMassSend = TotMassFlRate(IS);
[MWtMixture,CpMixKg,CpMixMo,TotMolarFlRateMix,Moles,masses]=CpSummary(Tsend
,P,x,MW,TotMassSend);
CpKg(i) = CpMixKg; % kJ/(kg-K)
CpMo(i) = CpMixMo; % kJ/(kmol-K)
MWmix(i)= MWtMixture; % kg/kmol
MdotCpKT(i) = ((TotMassFlRate(IS))/3600)*CpKg(i)*Tsend; % kg/s * kJ/(kg-K)
* K = kW
TMFMix(i)=TotMolarFlRateMix;
hhh(i)=Moles(1); nnn(i)=Moles(2); rrr(i)=Moles(3); amm(i)=Moles(4);
ch4(i)=Moles(5);
massh(i)=masses(1); massn(i)=masses(2); massr(i)=masses(3);
massa(i)=masses(4); massc(i)=masses(5);
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% end of patch 18 May 2011 %%%%%%%%
%%%%%%%%%%%%%% patch added 15 May 2011
% now find, at this point as an initial condition, the equilibrium position
Epsilon=0.0;
i=1;
[Epsilon] = EquilibriumC (P,T,Hmoles(i),Nmoles(i),Amoles(i),TotalMoles(i));
HmolesEq(i) = Hmoles(i) - 3.0*Epsilon ;
NmolesEq(i) = Nmoles(i) - Epsilon ;
RmolesEq(i) = Rmoles(i) ;
AmolesEq(i) = Amoles(i) + 2.0*Epsilon ;
MmolesEq(i) = Mmoles(i) ;
%
TotalMolesEq(i) = HmolesEq(i) + NmolesEq(i) + RmolesEq(i) + AmolesEq(i) +
MmolesEq(i);
165
AmolesPCEq(i) = AmolesEq(i)/TotalMolesEq(i);
TTeps(1) = Epsilon;
% now find equilibrium temp
[Teqm] = EquilibriumT (x,P,T);
TTeqm(i)=Teqm;
% what if Teqm is not found? set it to max
if (Teqm==0)
TTeqm(i)=800.0;
end
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
EachZoneHgt = Lmax/NZONES;
LBDRY(1) = 0.0;
for ibdry = 2:NZONES+1
LBDRY(ibdry)=LBDRY(ibdry-1)+EachZoneHgt;
end
LBDRY
%%%%%%%%%%%%%%%%%%%%%%%%% CATALYST LOADING %%%%%%%%%%%%%%%%%%
fprintf (resl,'\n No of catalyst zones = %2.0f \n',NZONES);
frac = [1.5;1.25;1.0];
fprintf (resl,'\n Zone
LBDRY Fraction of Catalyst');
for icat = 1:NZONES
fprintf (resl,'\n %2.0f %6.2f %6.2f ',icat,LBDRY(icat+1),frac(icat));
end
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
CatFrac = frac(1); % start with the fraction of zone 1
fprintf (resl,'\n
i
x(1)
x(2)
x(3)
x(4)
Mole Fl Rate');
fprintf (resl,'\n %3.0f %8.4f %8.4f %8.4f %8.4f %8.4f
%15.4e',i,x(1),x(2),x(3),x(4),x(5),TotalMoles(i));
x(5)
Toptimal(i) = 896.0;
NPTS1=NPTS-1;
PZ1 = 0; PZ2 =0; PZ3 = 0;
% limits of i in zones
% in zone 1
i goes from
1
to
%
2
i
NPTZ+1
to
%
3
i
2*NPTZ+1 to
iLIM1 = NPTZ+1; iLIM2 = 2*NPTZ+1; iLIM3
NPTZ+1
2*NPTZ+1
3*NPTZ+1
= 3*NPTZ+1;
166
Total
LastZone = thisZone;
%
PZ1 = PZ1 +1; % this counter runs from 1 to last value of PZ1=NPTZ
fprintf (resl,'\n PZ1 = %3.0f ',PZ1);
TMB(1,PZ1)=TT(i);
LMB(1,PZ1)=LL(i);
end
if ((i>=iLIM1)&(i<=iLIM2))
thisZone = 2;
if (LastZone==1)
TT(i)=TT(3);
LastZone = thisZone;
end
%
PZ2 = PZ2 +1; % this counter runs from 1 to last value of PZ2 (20)
fprintf (resl,'\n PZ2 = %3.0f ',PZ2);
TMB(2,PZ2)=TT(i);
LMB(2,PZ2)=LL(i);
end
if ((i>=iLIM2)&(i<=iLIM3))
thisZone = 3;
if (LastZone==2)
%
TT(i)=TT(2);
LastZone = thisZone;
end
PZ3 = PZ3 +1; % this counter runs from 1 to last value of PZ3
fprintf (resl,'\n PZ3 = %3.0f ',PZ3);
TMB(3,PZ3)=TT(i);
LMB(3,PZ3)=LL(i);
end
CatFrac = frac(thisZone);
%%%%%%%%%%%%%%%%%%%%%%%%%%%
k1_z
k1_T %%%%%%%%%%%%%%%%%%%%
% first function
% evaluate RHS of mass conservation equation FUNC1
[Eta1]=ETA(P,T,Z);
[phiH2,phiN2,phiNH3,aH2,aN2,aNH3]=ACTVT(P,T,x(1),x(2),x(4));
[Ka] = EQNCN(T);
[kArh]= RTCNT(T,R_un);
[RNH3]=RRATE(kArh,Ka,aH2,aN2,aNH3);
FUNC1 = Eta1*CatFrac*RNH3/(2.0*FoverA);
k1_z = FUNC1;
% second function
% evaluate RHS of energy conservation equation FUNC2
[CpH2,CpN2,CpNH3,CpCH4,CpAr] = SPCHT(T,P);
167
168
[Ka] = EQNCN(T);
[kArh]= RTCNT(T,R_un);
[RNH3]=RRATE(kArh,Ka,aH2,aN2,aNH3);
FUNC1 = Eta1*CatFrac* RNH3/(2.0*FoverA);
k3_z = FUNC1;
% second function
[CpH2,CpN2,CpNH3,CpCH4,CpAr] = SPCHT(T,P);
Cp(1) = CpH2; Cp(2) = CpN2; Cp(3) = CpAr; Cp(4)=CpNH3; Cp(5)=CpCH4;
jj=1;
for j= NC+1:2*NC
Cp(j) = Cp(jj)/MW(jj); % kJ/(kg-K)
jj=jj+1;
end
CpMix = 0.0;
for ii = 1:NC
CpMix = CpMix + Cp(ii+5)*MassFlRate(ii)/TotMassFlRate(IS);
end
[HtReact]= DeltaH(P,T);
FUNC2 = ( HtReact * Eta1 * CatFrac* RNH3 ) / ((TotMassFlRate(IS)/Area) *
CpMix );
k3_T = -FUNC2;
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
k4_z
k4_P
L
Z
T
= LL(i) + h;
= ZZ(i) + k3_z * h;
= TT(i) + k3_T * h;
% first function
[Eta1]=ETA(P,T,Z);
[phiH2,phiN2,phiNH3,aH2,aN2,aNH3]=ACTVT(P,T,x(1),x(2),x(4));
[Ka] = EQNCN(T);
[kArh]= RTCNT(T,R_un);
[RNH3]=RRATE(kArh,Ka,aH2,aN2,aNH3);
FUNC1 = Eta1*RNH3/(2.0*FoverA);
k4_z = FUNC1;
% second function
[CpH2,CpN2,CpNH3,CpCH4,CpAr] = SPCHT(T,P);
Cp(1) = CpH2; Cp(2) = CpN2; Cp(3) = CpAr; Cp(4)=CpNH3; Cp(5)=CpCH4;
jj=1;
for j= NC+1:2*NC
Cp(j) = Cp(jj)/MW(jj); % kJ/(kg-K)
jj=jj+1;
end
CpMix = 0.0;
for ii = 1:NC
CpMix = CpMix + Cp(ii+5)*MassFlRate(ii)/TotMassFlRate(IS);
end
[HtReact]= DeltaH(P,T);
169
4: Ammonia
5:Methane
170
171
%xEq(1) = HmolesEq(i)/TotalMolesEq(i);
%xEq(2) = NmolesEq(i)/TotalMolesEq(i);
%xEq(4) = AmolesEq(i)/TotalMolesEq(i);
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% end of patch added
on May 13, 2011
%%%%%%%%%%%%% patch entered on 17 may 2011
% compute new mass fractions since Cp changes
% stream computation.......................................
%%%%%%%%%%%%% end of patch 17 may 2011 %%%%%%%%%%%%%%%%%%
end %
-------------------------------------
RK4
fprintf (resl,'\n\n i
Toptimal
Tequilibrium
for i2 = 1:NPTS+1
fprintf (resl,'\n %3.0f %8.2f %8.2f
%12.4e',i2,Toptimal(i2),TTeqm(i2),TTeps(i2));
end
LOOP ENDS
Epsilon');
172
LMB;
TMB;
for ibed = 1: 3
fprintf (resl,'\n Bed no: %2.0f ',ibed);
fprintf (resl,'\n j
Length
Temp ');
for ip1 = 1:NPTZ+1
fprintf (resl,'\n %3.0f %9.3f
%9.3f',ip1,LMB(ibed,ip1),TMB(ibed,ip1));
end
end
for ip1=1:NPTZ+1
LMB1(ip1) = LMB(1,ip1);
LMB2(ip1) = LMB(2,ip1);
LMB3(ip1) = LMB(3,ip1);
TMB1(ip1) = TMB(1,ip1);
TMB2(ip1) = TMB(2,ip1);
TMB3(ip1) = TMB(3,ip1);
end
% Power available from exothermic reactions
fprintf (resl,'\n\n\n\n
i
Power (kW)\n');
sumPower =0.0;
for i = 1: NPTS1
fprintf (resl,'\n %3.0f
%12.4e ',i,Power(i));
sumPower=sumPower+Power(i);
end
fprintf (resl,'\n total exothermic energy available is %12.4e kW
',sumPower);
Power = TotMassFlRateOld(IS)*CpMix*(Tnew-Told); % (kg/hr)*(kJ/kg-K)*(K) =
kJ/hr
Power = Power/(60*60); % kW
fprintf (resl,'\n Power given off in synthesis of ammonia in this vol
element = %12.4e kW\n',Power);
% Energy Available between 1st and 2nd bed
TempBed1 = TMB(1,NPTZ+1);
fprintf(resl,'\n Exit Temp from 1st Bed = %8.2f K\n',TempBed1);
fprintf(resl,'\n i
Cp kJ/(kg-K)
Mass Fl Rate(i) kg/hr');
CpMix1 = 0.0;
for ii = 1:NC
CpMix1 = CpMix1 + Cp(ii+5)*MassFlRate(ii)/TotMassFlRate(IS);
fprintf(resl,'\n %3.0f %8.2f
%8.2f',ii,Cp(ii+5),MassFlRate(ii));
end
fprintf(resl,'\n Total Mass Flow Rate = %12.2f kg/hr',TotMassFlRate(IS));
fprintf(resl,'\n Cp Mixture = %8.2f kJ/kg-K',CpMix1);
HeatValue1 = (1./3600)*TotMassFlRate(IS)*CpMix1*TempBed1 ;
fprintf (resl,'\n Power Value 1 = %12.4e kW',HeatValue1);
TempBed2 = TMB(2,1);
fprintf(resl,'\n\n Exit Temp from 2nd Bed = %8.2f K\n',TempBed2);
fprintf(resl,'\n i
Cp kJ/(kg-K)
Mass Fl Rate(i) kg/hr');
CpMix2 = 0.0;
for ii = 1:NC
CpMix2 = CpMix2 + Cp(ii+5)*MassFlRate(ii)/TotMassFlRate(IS);
173
174
plot (LL,NmolesFr,'-k')
hold on
%plot (LL,Amoles,'--k')
plot (LL,AmolesFr,'-k')
xlabel ('Distance (m)')
% ylabel ('Molar Flow Rate (kmols/hr)')
ylabel ('Molar Fraction)')
h = legend('H_2','N_2','NH_3',2);
%title 'Molar flow rate of H_2, N_2 and NH_3 in convertor'
title 'Molar fractions in convertor'
end
if (ThisPlot==4)
subplot(2,2,1:2)
%
plot (LL,AmolesPC,'-k')
%
xlabel ('Distance (m)')
%
ylabel ('Ammonia Mole Fr')
%
grid on
% title 'Mole % NH_3'
plot (LL,ZZ,'-k')
xlim([0 HghtReactor])
% ylim([0 0.301])
grid on
xlabel ('Distance (m)')
ylabel ('Conversion of N_2 (Z)')
% title 'Conversion of N_2 in the synthesis convertor'
subplot(2,2,3)
% plot (LL,TT,'-k')
plot (LMB1,TMB1,'-k')
hold on
plot(xSt12,ySt12,'-k')
hold on
plot (LMB2,TMB2,'-k')
hold on
plot(xSt23,ySt23,'-k')
hold on
plot (LMB3,TMB3,'-k')
hold on
% now plot the optimal temp on this
plot (LL,Toptimal,'-k');
hold on
plot (LL,TTeqm,'--k')
grid on
text (0.3,750,'T_{opt}');
text (0.5,850,'T_{eqm}');
xlim([0 HghtReactor])
%ylim([600 1000])
xlabel ('Distance (m)')
ylabel ('Temperature (K)')
%
title 'Temperature'
subplot(2,2,4)
%plot (LL,Hmoles,'-k')
plot (LL,HmolesFr,'-k')
hold on
175
%plot (LL,Nmoles,'-.k')
plot (LL,NmolesFr,'-.k')
hold on
%plot (LL,Amoles,'--k')
plot (LL,AmolesFr,'--k')
grid on
xlim([0 HghtReactor])
xlabel ('Distance (m)')
% ylabel ('Molar Flow Rate (kmols/hr)')
ylabel ('Molar Fraction')
h = legend('H_2','N_2','NH_3',2);
%title 'Molar flow rate of H_2, N_2 and NH_3 in convertor'
%title 'Molar fractions in convertor'
end
if (ThisPlot==5)
subplot(2,1,1)
% plot (LL,TT,'-k')
plot (LMB1,TMB1,'-k')
hold on
plot(xSt12,ySt12,'-k')
hold on
plot (LMB2,TMB2,'-k')
hold on
plot(xSt23,ySt23,'-k')
hold on
plot (LMB3,TMB3,'-k')
hold on
% now plot the optimal temp on this
plot (LL,Toptimal,'-k');
hold on
plot (LL,TTeqm,'--k')
grid on
text (0.15,810,'T_{opt}');
text (0.62,870,'T_{eqm}');
xlim([0 HghtReactor])
%ylim([600 1000])
xlabel ('Distance (m)')
ylabel ('Temperature (K)')
%
title 'Temperature'
subplot(2,1,2)
%plot (LL,Hmoles,'-k')
plot (LL,HmolesFr,'-k')
hold on
%plot (LL,Nmoles,'-.k')
plot (LL,NmolesFr,'-.k')
hold on
%plot (LL,Amoles,'--k')
plot (LL,AmolesFr,'--k')
grid on
xlim([0 HghtReactor])
xlabel ('Distance (m)')
% ylabel ('Molar Flow Rate (kmols/hr)')
ylabel ('Mole Fraction')
h = legend('H_2','N_2','NH_3',2);
176
177
178
Toptimal(1)=780.0;
end
T=Toptimal(1);
TT(1)=T; % for plotting
Teqm=0;
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% patch added May 13 2011
% now find equilibrium temp
[Teqm] = EquilibriumT (x,P,T);
TTeqm(1)=Teqm;
% what if Teqm is not found? set it to max
if (Teqm==0)
TTeqm(1)=780.0;
end
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% end of patch added
on May 13, 2011
Area = 20.0 ; % cross-section area of catalyst m^2
fprintf (resl,'\n Area = %6.2f m^2',Area);
HghtReactor = 4.50; % meters
VolCatalyst = Area * HghtReactor;
fprintf (resl,'\n Vol of catalyst = %6.3f m^3 \n',VolCatalyst);
% stream computation.......................................
MWt = 0.0; % average molecular weight of stream
xT = 0.0; % total mol fr. this is should add up to 1.0
for i = 1:NC
MWt=MWt+x(i)*MW(i);
xT
= xT
+x(i);
end
RR = R_un/MWt; % gas constant for this stream (gas)
MolarFlRateMix = TotMassFlRate/MWt; % in kmols/hr
TotMolarFlRate = TotMassFlRate/MWt; % kmoles per hr
mfrT=0.0;
mfmT=0.0;
for jk=1:NC
mfr(jk) = x(jk)*MolarFlRateMix;
mfrT = mfrT + mfr(jk);
mfm(jk) = mfr(jk)*MW(jk);
mfmT = mfmT + mfm(jk);
end
% end of stream computation...............................
%
% STREAM OUTPUT
fprintf (resl,'\n ----------------------------------------------------\n');
fprintf (resl,'\n NC
Mole Fr
Molar flow rate
Mass flow rate');
fprintf (resl,'\n
kg-mols/hr
kg/hr\n');
for i=1:NC
fprintf (resl,'\n %2.0f
%8.4f
%8.4f
%8.4f
',i,x(i),mfr(i),mfm(i))
end
fprintf (resl,'\n \n Total %6.4f
%12.4f %12.4f\n',xT,mfrT,mfmT);
fprintf (resl,'\n Mol Wt of mixture
MWt = %8.4f kg/kmol
\n',MWt);
fprintf (resl,'\n Gas Const of mixture RR = %8.4f kJ/(kmol-K) \n',RR);
fprintf (resl,'\n Molar Flow Rate of Stream is %8.2f kmoles / hr
\n',MolarFlRateMix);
179
180
181
x(4)
182
183
% now go back
T=Toptimal(i);
TT(i)=T; % for plotting
T
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% patch added May 13 2011
% now find equilibrium temp
[Teqm] = EquilibriumT (x,P,T);
TTeqm(i)=Teqm;
% what if Teqm is not found? set it to max
if (Teqm==0)
TTeqm(i)=800.0;
end
% now find, at this point as an initial condition, the equilibrium position
%HmolesInit=Hmoles(i)
%NmolesInit=Nmoles(i)
%AmmMolesInit=Amoles(i)
%TotMoles=TotalMoles(i)
Epsilon=0.0;
[Epsilon] = EquilibriumC (P,T,Hmoles(i),Nmoles(i),Amoles(i),TotalMoles(i))
TTeps(i) = Epsilon;
HmolesEq(i) = Hmoles(i) - 3.0*Epsilon ;
NmolesEq(i) = Nmoles(i) - Epsilon ;
RmolesEq(i) = Rmoles(i) ;
AmolesEq(i) = Amoles(i) + 2.0*Epsilon ;
MmolesEq(i) = Mmoles(i) ;
%
TotalMolesEq(i) = HmolesEq(i) + NmolesEq(i) + RmolesEq(i) + AmolesEq(i) +
MmolesEq(i);
AmolesPCEq(i) = AmolesEq(i)/TotalMolesEq(i);
NmolesPCEq(i) = NmolesEq(i)/TotalMolesEq(i);
% now to go back to the beginning of the loop, set new local parameters
% P,T,Z. and also need P, T, x(1), x(2), x(4) for next iteration step
%xEq(1) = HmolesEq(i)/TotalMolesEq(i);
%xEq(2) = NmolesEq(i)/TotalMolesEq(i);
%xEq(4) = AmolesEq(i)/TotalMolesEq(i);
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% end of patch added
on May 13, 2011
end %
-------------------------------------
RK4
fprintf (resl,'\n\n i
Toptimal
Tequilibrium
for i2 = 1:NPTS+1
fprintf (resl,'\n %3.0f %8.2f %8.2f
%12.4e',i2,Toptimal(i2),TTeqm(i2),TTeps(i2));
end
LOOP ENDS
Epsilon');
Toptimal
TTeqm
fprintf (resl,'\n\n\n Summary of RK numerical solution');
fprintf (resl,'\n
Moles
% of N \n');
184
Conversion
fprintf (resl,'\n
i
L
H2
N2
Ar
NH3
CH4
Total
Z
T \n');
for i = 1: NPTS+1
fprintf (resl,'\n %3.0f %6.4f %8.2f %8.2f
%8.2f %8.2f %8.2f
%10.2f %8.4f
%8.2f',i,LL(i),Hmoles(i),Nmoles(i),Rmoles(i),Amoles(i),Mmoles(i),TotalMoles
(i),ZZ(i),TT(i));
end
%------------------- sept 4 2011 ---------------------LLHom =
[0;0.15;0.30;0.45;0.60;0.75;0.90;1.05;1.20;1.35;1.50;1.65;1.80;1.95;2.10;2.
25;2.40;2.55;2.70;2.85;3.00;3.15;3.30;3.45;3.60;3.75;3.90;4.05;4.20;4.35;4.
50];
NmolesHom =
[0.2364;0.2349;0.2332;0.2312;0.2289;0.2262;0.2233;0.2202;0.2174;0.2153;0.21
42;0.2132;0.2121;0.2109;0.2097;0.2085;0.2073;0.2062;0.2051;0.2041;0.2032;0.
2025;0.2020;0.2015;0.2012;0.2009;0.2008;0.2007;0.2006;0.2005;0.2005];
fprintf (resl,'\n Comparison of Optimal, Equilibrium from this program, and
Normal from SSATS_NonUnif');
fprintf (resl,'\n
i
L
Nopt
Neq ');
for izzz = 1:NPTS+1
fprintf (resl,'\n %3.0f %6.4f %8.4f
%8.4f',izzz,LL(izzz),NmolesPC(izzz),NmolesPCEq(izzz));
end
fprintf (resl,'\n
i
L
Nhom');
for izzz = 1:31
fprintf (resl,'\n %3.0f %6.4f %8.4f
',izzz,LLHom(izzz),NmolesHom(izzz));
end
%%%%%%%%%%---------------------------------------------ThisPlot=5;
if (ThisPlot==1)
plot (LL,ZZ,'-k')
xlabel ('Distance (m)')
ylabel ('Conversion of N_2 (Z)')
title 'Conversion of N_2 in the synthesis convertor'
end
if (ThisPlot==2)
plot (LL,TT,'-k')
xlabel ('Distance (m)')
ylabel ('Temperature (K)')
title 'Temperature in synthesis convertor'
end
if (ThisPlot==3)
plot
hold
plot
hold
plot
(LL,Hmoles,'-k')
on
(LL,Nmoles,'-.k')
on
(LL,Amoles,'--k')
185
186
plot (LL,NmolesFr,'-.k')
hold on
%plot (LL,Amoles,'--k')
plot (LL,AmolesFr,'--k')
xlabel ('Distance (m)')
%ylabel ('Molar Flow Rate (kmols/hr)')
ylabel ('Optimal Mole Fraction')
h = legend('H_2','N_2','NH_3',2);
grid on
%
end
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
if (ThisPlot==5)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%
% these are the results for runs below
%run C:\MATLAB7\work\Ammonia\SSATS_NonUnif_2Sept2011
% cat distribution 1 1 1
Length =
[0;0.1500;0.3000;0.4500;0.6000;0.7500;0.9000;1.0500;1.2000;1.3500;1.5000;1.
6500;1.8000;1.9500;2.1000;2.2500;2.4000;2.5500;2.7000;2.8500;3.0000;3.1500;
3.3000;3.4500;3.6000;3.7500;3.9000;4.0500;4.2000;4.3500;4.5000];
NmolesFr1 =
[0.2364;0.2349;0.2332;0.2312;0.2289;0.2262;0.2233;0.2202;0.2174;0.2153;0.21
42;0.2132;0.2121;0.2109;0.2097;0.2085;0.2073;0.2062;0.2051;0.2041;0.2032;0.
2026;0.2019;0.2013;0.2006;0.2000;0.1993;0.1986;0.1979;0.1973;0.1966];
AmolesFr1 =
[0.0269;0.0325;0.0392;0.0470;0.0560;0.0664;0.0780;0.0900;0.1009;0.1089;0.11
33;0.1172;0.1215;0.1261;0.1307;0.1354;0.1401;0.1446;0.1488;0.1526;0.1560;0.
1585;0.1610;0.1635;0.1661;0.1687;0.1714;0.1740;0.1766;0.1792;0.1817];
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%
% 1.10 1.00 1.00
NmolesFr2
=[0.2364;0.2348;0.2329;0.2306;0.2279;0.2249;0.2215;0.2183;0.2157;0.2143;0.2
137;0.2128;0.2116;0.2105;0.2093;0.2081;0.2069;0.2058;0.2047;0.2038;0.2030;0
.2023;0.2017;0.2010;0.2003;0.1997;0.1990;0.1983;0.1977;0.1970;0.1964];
AmolesFr2
=[0.0269;0.0331;0.0405;0.0494;0.0598;0.0717;0.0848;0.0974;0.1073;0.1129;0.1
152;0.1189;0.1233;0.1278;0.1325;0.1371;0.1417;0.1461;0.1503;0.1539;0.1571;0
.1596;0.1621;0.1647;0.1672;0.1698;0.1725;0.1751;0.1777;0.1802;0.1827];
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%
% 1.20 1.00 1.00
NmolesFr3
=[0.2364;0.2346;0.2325;0.2299;0.2269;0.2234;0.2198;0.2166;0.2146;0.2138;0.2
135;0.2126;0.2114;0.2102;0.2090;0.2078;0.2066;0.2055;0.2045;0.2036;0.2028;0
.2022;0.2015;0.2009;0.2002;0.1995;0.1989;0.1982;0.1975;0.1969;0.1963];
AmolesFr3
=[0.0269;0.0337;0.0420;0.0519;0.0638;0.0773;0.0916;0.1040;0.1118;0.1150;0.1
187
159;0.1196;0.1241;0.1287;0.1334;0.1381;0.1427;0.1471;0.1511;0.1546;0.1576;0
.1601;0.1626;0.1652;0.1678;0.1704;0.1730;0.1756;0.1782;0.1807;0.1832];
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%
% 1.50 1.25 1.00
NmolesFr4
=[0.2364;0.2341;0.2313;0.2277;0.2234;0.2188;0.2153;0.2138;0.2135;0.2134;0.2
134;0.2122;0.2107;0.2091;0.2076;0.2061;0.2049;0.2038;0.2030;0.2024;0.2021;0
.2015;0.2008;0.2002;0.1995;0.1988;0.1982;0.1975;0.1969;0.1962;0.1956];
AmolesFr4
=[0.0269;0.0356;0.0467;0.0606;0.0773;0.0952;0.1090;0.1148;0.1160;0.1162;0.1
162;0.1210;0.1271;0.1332;0.1392;0.1448;0.1497;0.1538;0.1569;0.1591;0.1606;0
.1628;0.1654;0.1679;0.1705;0.1732;0.1758;0.1783;0.1808;0.1833;0.1856];
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%
% optimal ammonia concentration
plot (LL,AmolesPC,'-k')
hold on
% equilibrium ammonia concentration
%plot (LL,AmolesPCEq,'-k')
%hold on
plot (Length,AmolesFr1,'--k')
hold on
plot (Length,AmolesFr2,':k')
hold on
plot (Length,AmolesFr3,'-.k')
hold on
plot (Length,AmolesFr4,'+k')
hold on
xlabel ('Distance (m)')
ylabel ('Mole Fraction NH_3')
% title 'Optimal NH_3 in the synthesis convertor'
% text (3.1,0.24,'{N_2}_{,hom}');
% text (2.1,0.21,'{N_2}_{,opt}');
% text (1.1,0.19,'{N_2}_{,eqm}');
h = legend('optimal','1.00 1.00 1.00','1.10 1.00 1.00','1.20 1.00
1.00','1.50 1.25 1.00',2);
%
%
end
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
if (ThisPlot==6)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%
% these are the results for runs below
%run C:\MATLAB7\work\Ammonia\SSATS_NonUnif_2Sept2011
% cat distribution 1 1 1
Length =
[0;0.1500;0.3000;0.4500;0.6000;0.7500;0.9000;1.0500;1.2000;1.3500;1.5000;1.
188
6500;1.8000;1.9500;2.1000;2.2500;2.4000;2.5500;2.7000;2.8500;3.0000;3.1500;
3.3000;3.4500;3.6000;3.7500;3.9000;4.0500;4.2000;4.3500;4.5000];
NmolesFr1 =
[0.2364;0.2349;0.2332;0.2312;0.2289;0.2262;0.2233;0.2202;0.2174;0.2153;0.21
42;0.2132;0.2121;0.2109;0.2097;0.2085;0.2073;0.2062;0.2051;0.2041;0.2032;0.
2026;0.2019;0.2013;0.2006;0.2000;0.1993;0.1986;0.1979;0.1973;0.1966];
AmolesFr1 =
[0.0269;0.0325;0.0392;0.0470;0.0560;0.0664;0.0780;0.0900;0.1009;0.1089;0.11
33;0.1172;0.1215;0.1261;0.1307;0.1354;0.1401;0.1446;0.1488;0.1526;0.1560;0.
1585;0.1610;0.1635;0.1661;0.1687;0.1714;0.1740;0.1766;0.1792;0.1817];
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%
% 1.10 1.00 1.00
NmolesFr2
=[0.2364;0.2348;0.2329;0.2306;0.2279;0.2249;0.2215;0.2183;0.2157;0.2143;0.2
137;0.2128;0.2116;0.2105;0.2093;0.2081;0.2069;0.2058;0.2047;0.2038;0.2030;0
.2023;0.2017;0.2010;0.2003;0.1997;0.1990;0.1983;0.1977;0.1970;0.1964];
AmolesFr2
=[0.0269;0.0331;0.0405;0.0494;0.0598;0.0717;0.0848;0.0974;0.1073;0.1129;0.1
152;0.1189;0.1233;0.1278;0.1325;0.1371;0.1417;0.1461;0.1503;0.1539;0.1571;0
.1596;0.1621;0.1647;0.1672;0.1698;0.1725;0.1751;0.1777;0.1802;0.1827];
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%
% 1.20 1.00 1.00
NmolesFr3
=[0.2364;0.2346;0.2325;0.2299;0.2269;0.2234;0.2198;0.2166;0.2146;0.2138;0.2
135;0.2126;0.2114;0.2102;0.2090;0.2078;0.2066;0.2055;0.2045;0.2036;0.2028;0
.2022;0.2015;0.2009;0.2002;0.1995;0.1989;0.1982;0.1975;0.1969;0.1963];
AmolesFr3
=[0.0269;0.0337;0.0420;0.0519;0.0638;0.0773;0.0916;0.1040;0.1118;0.1150;0.1
159;0.1196;0.1241;0.1287;0.1334;0.1381;0.1427;0.1471;0.1511;0.1546;0.1576;0
.1601;0.1626;0.1652;0.1678;0.1704;0.1730;0.1756;0.1782;0.1807;0.1832];
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%
% 1.50 1.25 1.00
NmolesFr4
=[0.2364;0.2341;0.2313;0.2277;0.2234;0.2188;0.2153;0.2138;0.2135;0.2134;0.2
134;0.2122;0.2107;0.2091;0.2076;0.2061;0.2049;0.2038;0.2030;0.2024;0.2021;0
.2015;0.2008;0.2002;0.1995;0.1988;0.1982;0.1975;0.1969;0.1962;0.1956];
AmolesFr4
=[0.0269;0.0356;0.0467;0.0606;0.0773;0.0952;0.1090;0.1148;0.1160;0.1162;0.1
162;0.1210;0.1271;0.1332;0.1392;0.1448;0.1497;0.1538;0.1569;0.1591;0.1606;0
.1628;0.1654;0.1679;0.1705;0.1732;0.1758;0.1783;0.1808;0.1833;0.1856];
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%
% optimal nitrogen concentration
plot (LL,NmolesPC,'-k')
hold on
% equilibrium nitrogen concentration
%plot (LL,NmolesPCEq,'-k')
%hold on
plot (Length,NmolesFr1,'--k')
hold on
plot (Length,NmolesFr2,':k')
189
hold on
plot (Length,NmolesFr3,'-.k')
hold on
plot (Length,NmolesFr4,'+k')
hold on
grid on
xlabel ('Distance (m)')
ylabel ('Mole Fraction N_2')
% title 'Optimal N_2 in the synthesis convertor'
% text (3.1,0.24,'{N_2}_{,hom}');
% text (2.1,0.21,'{N_2}_{,opt}');
% text (1.1,0.19,'{N_2}_{,eqm}');
h = legend('opt','1','2','3','4',2);
end
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
toc
fclose(resl);
function [Topt] = OptimalT (x,P)
% DATA
% P, x(1), x(2), x(4)
% gives Topt
% scan between 500 and 1000
scanTlow = 500; scanTup=1000.0;
scanDel = 2.0;
Tchk = scanTlow-scanDel;
scanT = (scanTup-scanTlow)/scanDel;
% fprintf (resl,'\n Temp (K)
diff=fLHS-fRHS');
for iTchk = 1:scanT
Tchk = Tchk+scanDel;
[phiH2,phiN2,phiNH3,aH2,aN2,aNH3]=ACTVT(P,Tchk,x(1),x(2),x(4));
[Ka] = EQNCN(Tchk);
FatT = Ka^2*aN2*aH2^1.5/aNH3 - aNH3/aH2^1.5;
fRHS = -( (20.523e3)/Tchk^2 ) * FatT;
% now find deriv at this point
T1=Tchk-1; T2=Tchk+1;
[phiH2,phiN2,phiNH3,aH2,aN2,aNH3]=ACTVT(P,T1,x(1),x(2),x(4));
[Ka] = EQNCN(T1);
FatT1 = Ka^2*aN2*aH2^1.5/aNH3 - aNH3/aH2^1.5;
[phiH2,phiN2,phiNH3,aH2,aN2,aNH3]=ACTVT(P,T2,x(1),x(2),x(4));
[Ka] = EQNCN(T2);
FatT2 = Ka^2*aN2*aH2^1.5/aNH3 - aNH3/aH2^1.5;
fLHS = 0.5*(FatT2-FatT1);
diff=fLHS-fRHS;
rootT(iTchk) = Tchk;
rootY(iTchk) = diff;
% fprintf(resl,'\n %3.0f %6.2f %12.4e',iTchk,rootT(iTchk),rootY(iTchk));
end
Topt=0;
for jTchk = 1:scanT-1
jT1=jTchk+1;
190
if ((rootY(jTchk)>0)&(rootY(jT1)<0))
Topt = rootT(jTchk+1);
end
end
for jTchk = 1:scanT-1
jT1=jTchk+1;
if ((rootY(jTchk)<0)&(rootY(jT1)>0))
Topt = rootT(jTchk+1);
end
end
191