MScEng - Dissertation For Jean-Baptiste Mbuyamba (586572) - 2
MScEng - Dissertation For Jean-Baptiste Mbuyamba (586572) - 2
MScEng - Dissertation For Jean-Baptiste Mbuyamba (586572) - 2
DESIGN OF SUPERSONIC
NOZZLES FOR COLD GAS
DYNAMIC SPRAYING
USING MATLAB AND
ANSYS FLUENT
Jean-Baptiste Mulumba Mbuyamba
A dissertation submitted to the Faculty of Engineering and the Built Environment, University of the Witwatersrand, Johannesburg, in fulfilment of the
requirements for the degree of Master of Science in Engineering.
Declaration
I declare that this dissertation is my own, unaided work, except where otherwise acknowledged. It is being submitted for the degree of Master of Science in
Engineering in the University of the Witwatersrand, Johannesburg. It has not
been submitted before for any degree or examination at any other university.
Signed this
day of
20
ii
Acknowledgments
I want to thank a few special people who made this dissertation possible:
My brother Emmanuel Tshibanda and my furthers wife Rita Shimba for their
constant support, encouragement, and understanding.
iii
Abstract
One of the most daunting challenges in the Cold Gas Dynamic Spray (CGDS)
process is the calculation and design of the nozzles that are used to accelerate the gas and the powder particles at supersonic speeds and so promote
the deposition process. Past research into this area resulted in a wealth of
knowledge but unresolved problems still exist. The actual calculations and designs of the CGDS nozzles are considered large, complex, and time consuming.
Consequently, this dissertation develops a new software that focuses on the
simulation of the gas and particles velocities for a large variety of CGDS process parameters. However, in order to achieve this, an unified mathematical
model of various cold spray parameter was developed. Thereafter, a new software using MATLAB was developed to generate practical graphs for the CGDS
process and generate the 2D recommended nozzle contour, and the Computational Fluid Dynamics (CFD) software was used to calculate and visualize
the gas flow. Then, the results obtained using the two developed technologies
were compared with data from the peer reviewed journal papers and it was
found that the results obtain using the new MATLAB software and ANSYS
Fluent were very similar with data found in the literature survey. The dissertation ends with conclusions about the new approach for the calculation and
design of the CGDS nozzles, and finally highlights its theoretical and practical
implications.
iv
Contents
Declaration
Abstract
iv
Contents
List of Figures
List of Tables
xiii
List of Abbreviations
xiv
List of Symbols
xv
1 INTRODUCTION
1.1
1.2
1.3
Research Problem . . . . . . . . . . . . . . . . . . . . . . . . . .
1.4
Delimitation of Scope . . . . . . . . . . . . . . . . . . . . . . . .
1.5
1.6
Contributions . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1.7
1.8
Conclusion . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2 LITERATURE SURVEY
2.1
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2.2
Background . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2.3
2.3.1
2.3.2
2.3.3
2.3.4
Isentropic relations . . . . . . . . . . . . . . . . . . . . . 11
2.3.5
2.3.6
2.4
2.3.7
2.3.8
Particle velocity . . . . . . . . . . . . . . . . . . . . . . . 18
2.3.9
Theoretical background . . . . . . . . . . . . . . . . . . . 20
2.4.2
2.4.3
vi
2.4.3.1
2.4.3.2
2.4.3.3
2.5
2.6
2.7
Conclusion . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
3 METHODOLOGY
31
34
3.1
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
3.2
3.3
3.4
Test diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
3.5
Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
4.2
GUI Development . . . . . . . . . . . . . . . . . . . . . . . . . . 42
4.3
Calculation Process . . . . . . . . . . . . . . . . . . . . . 45
4.3.2
4.3.3
Test 1 . . . . . . . . . . . . . . . . . . . . . . . 52
vii
4.4
4.5
4.3.3.2
Test 2 . . . . . . . . . . . . . . . . . . . . . . . 56
4.3.3.3
Test 3 . . . . . . . . . . . . . . . . . . . . . . . 60
GUI interface . . . . . . . . . . . . . . . . . . . . . . . . 66
4.4.2
4.4.3
. 72
4.4.3.1
4.4.3.2
Simulation . . . . . . . . . . . . . . . . . . . . 74
4.4.3.3
Analysis of results . . . . . . . . . . . . . . . . 77
Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78
79
5.1
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79
5.2
5.3
5.4
Research Implications . . . . . . . . . . . . . . . . . . . . . . . . 81
5.5
Research Limitations . . . . . . . . . . . . . . . . . . . . . . . . 81
5.6
Further Research . . . . . . . . . . . . . . . . . . . . . . . . . . 82
REFERENCES
83
BIBLIOGRAPHY
86
viii
APPENDICES
87
Appendix A - Glossary . . . . . . . . . . . . . . . . . . . . . . . . . . 87
Appendix B - CGDS operating parameters according to MIL-STD-3021 89
Appendix C - Matlab Code for De Laval nozzle . . . . . . . . . . . . 90
Appendix C1 - Code for Construction the GUI . . . . . . . . . . 90
Appendix C2 - Code for Testing Plot Results . . . . . . . . . . . 100
Appendix C21 - Code for Test 1 . . . . . . . . . . . . . . 100
Appendix C22 - Code for Test 2Variation of pressure . . 102
Appendix C23 - Code for Test 2Variation of Temperature104
Appendix D - Matlab Code for MOC Nozzle . . . . . . . . . . . . . . 106
Appendix D1 - Code to the curved part of the MOC nozzle . . . 106
Appendix D2 - Code GUI for MOC nozzle . . . . . . . . . . . . 113
ix
List of Figures
2.1
2.2
2.3
Variation of the gas Mach number with the nozzle expansion ratio 16
2.4
2.5
2.6
2.7
Prandtl-Meyer Expansion . . . . . . . . . . . . . . . . . . . . . 22
2.8
2.9
3.1
3.2
3.3
Lines details. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
3.4
Test diagram. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
4.1
Property Inspector. . . . . . . . . . . . . . . . . . . . . . . . . . 43
4.2
4.3
Main interface. . . . . . . . . . . . . . . . . . . . . . . . . . . . 44
4.4
4.5
4.6
4.7
4.8
4.9
xi
xii
List of Tables
4.1
4.2
4.3
4.4
Comparative table between the reference and this work for par-
57
4.6
5.1
Operating parameters . . . . . . . . . . . . . . . . . . . . . . . . 89
xiii
List of Abbreviations
CGDS
CFD
CS
Cold Spray
GUI
MOC
Method of Characteristic
PM
Prandtl Meyer
SI
System International
xiv
List of Symbols
A
Ae
Ap
Ai
CD
drag coefficient
Cp
Cv
Gg
Gp
F1
F2
Mach number
Me
Nu
Nusselt number
pressure (P a)
xv
Pa
ambiante pressure (P a)
Pe
Pg
gas pressure (P a)
Po
stagnation pressure (P a)
Ps
shock pressure (P a)
Pshock
Pr
Prandtl number
Re
Reynolds number
temperature (K)
Tp
Tm
Ti
Tg
Te
To
volume (m3 )
xvi
cp
ap
cg
diameter (m)
dp
mass (kg)
m
v
mp
rp
time (s)
velocity (m/s)
vcrit
vg
vp
distance (m)
T S
density (kg/m3 )
xvii
Subscripts
coating
nozzle exit
gas
stagnation
particle
Superscripts
nozzle throat
xviii
1 INTRODUCTION
1.1
Upon impact with a target surface, the solid particles deform and bond together, and rapidly build up a layer of deposited material. As a result, the
inherent problems found during the traditional thermal spraying processes,
such as oxidization, particle melting, grain growth, and residual tensile stress,
to name only a few, can be avoided [25]. However, the coating final properties,
such as micro structure, strength, and porosity are directly affected by Cold
Spray process parameters such as particle properties, gas pressure, and gas
temperature.
1.2
Critical Velocity is the lowest impact velocity for a particle of a specific material to be deposited. However, many times, CGDS experiments were carried
out using process parameters obtained from similar published literature, using
ad hoc and untested software developed for example in Microsoft Excel, or
using the try and error approach. Therefore, the optimization of the nozzles
geometry considering its influence upon powder particles became critically imperative. Consequently, the development of a new software that will allow the
simulation of the gas and particles velocities for a large variety of CGDS process parameters will avoid important waste of equipment setup time, avoid
the premature degradation of the CGDS equipment, and also avoid a waste of
important quantity of expensive powder.
1.3
Research Problem
Essentially, it is argued that the nozzle design must be calculated and verified
using advanced computerized tools such as MATLAB and ANSYS, and that,
in order to do this, an in depth knowledge of fluid dynamics is necessary.
1.4
Delimitation of Scope
The dissertation research proposes and develops the practical technologies for
the design, testing, and analysis of the nozzles used in the CGDS process. The
dissertation aims to:
develop a MATLAB software capable to generate practical graphs for
the CGDS process and generate the 2D recommended nozzle contour,
1.5
1.6
Contributions
1.7
1.8
Conclusion
This chapter has laid the foundations for the dissertation. It introduced the
research problem and research issues, and also presented its aims and its limitations. Then, the methodologies were briefly described and justified, the
contributions briefly highlighted and finally, the dissertation was outlined. On
these foundations, the dissertation can proceed with a detailed literature survey.
2 LITERATURE SURVEY
2.1
Introduction
This chapter contains the literature survey related to the calculation and design
of the internal profile of the De Laval and MOC nozzles used in the CGDS
process.
2.2
Background
The design of the nozzle plays a critical role in the success of the CGDS process.
For example, it was demonstrated that, if the coldspray nozzle is designed in
such a way that at each axial location the acceleration of the powder particles
is maximized, a significant increase in the average velocity of the particles at
the nozzle exit can be obtained [13]. In the same context, the mechanism of
attachment of the particles on the substrate advocated that the speed of the
powder particles at nozzle exit must be maximized. While, in general, this
could be accomplished by increasing the inlet pressure of the carrier gas, for
practical and economic reasons, it is desirable to maximize the particle impact
velocity at a given level of the carrier gas inlet pressure by properly selecting the
type of the carrier gas and its inlet temperature, and by optimizing the shape
of the convergingdiverging cold-spray nozzle [13]. A schematic illustrating
the CGDS principle is presented in the Figure 2.1.
In order to determine the Mach number in a known section of the divergent part
of the nozzle, and then, with the Mach number known, other parameters such
as gas pressure, temperature, speed, and density to be determined, Dykhuizen
6
and Smith [7] developed a one dimensional theory they called the Gas Dynamic Principles of Cold Spray. Their theory provided a starting point for a
more detailed experimental or numerical determination of an optimal nozzle.
However, their theory did not provide a way to determine the internal profile
shape of the divergent part of the nozzle.
Consequently, Al-Ajlouni [1] suggested an automatic method for the determination of the supersonic convergent-divergent nozzle profile. In his socalled
MOC approach, a unit model matrix for each Mach number was initially created. Then, a Visual Basic program was developed to automatically determine
the profile of the nozzle by multiplying the unit model matrix by a scale factor that is calculated according to the working requirements. However, the
development provided by Al-Ajlouni was limited to Mach numbers less than
or equal to 2.5.
Also, in a later study, Khine et al. [17] developed a numerical approach for the
determination of the supersonic nozzle flow pattern. Their approach assumed
the gas being inviscid, ideal, shockfree, and nonrotational. With these assumptions, and focusing only on the calculation of the flow properties inside
the divergent section of the nozzle, they predicted the performance of the nozzle by calculating the loads induced by the aerodynamic flow. Then, in order
to verify the structural integrity of the nozzle, the temperature distribution in
the nozzle wall was calculated.
Furthermore, Karimi et al. [16] used Khines method to predict the pressure
on the nozzle wall, and compared these values to the available experimental
data. They used the Computational Fluid Dynamic (CFD) model to simulate
the gas dynamic flow field and particle trajectories within and outside of an
ovalshaped supersonic cold spray nozzle, and analyzed the particles before
and after the impact with the substrate.
Finally, from the above, it could be seen that, over the years, various researchers have attempted to develop various computerized tools to calculate,
visualize, and better understand the CGDS process. However, there is still insufficient information on the calculation and design of CGDS nozzles in general,
and also there are no commercially available computational tools to calculate
and design the internal profile of the De Laval and MOC nozzles used in the
CGDS process.
2.3
2.3.1
In order to develop the flow equations that will allow the design of a CGDS nozzle, the following assumptions and simplifications are considered [14],[23],[12]:
The gas flow is assumed to be quasionedimensional. This refers to a
flow where the cross sectional area 0 A0 of the nozzle, the gas pressure
Pg , the velocity of gas vg , and the gas density g are varying along one
direction, say x, and a linear nozzle geometry is used.
The model assumes an isentropic flow. This refers to an adiabatic flow
(no heat transfer) which is frictionless (ideal or reversible). With the
isentropic approach, the presence of the boundary layer in the region
adjacent to the nozzle wall is not considered, consequently, the calculated
velocity of the gas flow is slightly higher than if obtained in practice.
The gas is treated as a perfect (ideal) gas, which is expressed by the
equation of state:
Pg = g RTg
(2.1)
Cp
Cv
2
1
=
T2
T1
1
(2.2)
Expansion of the gas occurs in a uniform manner, thus the flow is continuous and shockfree.
The gas conditions are not influenced by the condition of gasparticle
twophase flow.
The onedimensional analysis is limited to the application of the model
to regions away from the jet impingement on the substrate.
9
2.3.2
The gas used in the CGDS process is assumed to come from a chamber with
a stagnation condition. The stagnation state is defined as a state that would
be attained by the fluid if it is conveyed to rest in isentropic state and without
work. The properties at the stagnation state are refereed to as stagnation properties or total properties, and are designated by the subscript 0 00 [12]. Thus, the
gas condition is defined by the gas stagnation pressure (Po ), the gas stagnation
temperature (To ) and the mass flow rate of the gas (m).
All these parameters
are set by the user.
Generally, the cost and safety of the CGDS process are affected by the choice
of the gas used. Ideally, in order to transfer sufficient momentum to the powder, the gas must have a high sonic velocity and mass [38].
1. Helium,
2. Nitrogen (N2 ),
3. air, or
4. a mixture of the above.
The two main gases used in cold spray are Helium with a specific heat ratio
of = 1.66 and Nitrogen with = 1.4. Both Helium and Nitrogen are inert
gases. Helium has a high sonic velocity that is approximately three times
that of the Nitrogen, but it is more expensive. However, this penalty can be
overcome by using a gas recycling system but which also increases the price of
the CGDS system. Finally, the sonic velocity of air (a diatomic gas) is slightly
less than that of pure Nitrogen, but this option remains the cheapest CGDS
process gas available [38].
10
2.3.3
The most important parameter in the analysis of the compressible flow is the
Mach Number defined by:
v
c
0 0
0 0
where v is the local flow velocity and c is the local speed of sound.
M=
(2.3)
(2.4)
where 0 0 is the specific heat ratio and 0 T 0 is the absolute fluid temperature.
The Mach Number can be used to characterize the different regimes of flow
[12]. These include:
incompressible flow, where the Mach Number is very small compared to
the unit (M <0.3)
subsonic flow, where the Mach Number is less than unity, but large
enough so that compressible flow properties are present (0.3<M <1).
sonic flow, where the Mach Number is at unity (M = 1).
transonic flow, the Mach Number is very close to the unity (0.8<M <1.2).
supersonic flow, where the Mach Number is larger than the unity (M > 1).
hypersonic flow, where the Mach Number is larger than five (M > 5).
2.3.4
Isentropic relations
Lets consider the stagnation point with vo equal zero and Po equal to the total
pressure in the flow. At a point in the duct where the flow is undisturbed,
and considering the basic fluid dynamics and thermodynamic relations for
compressible flow, the energy equation is given by:
1
cp Tg + vg2 = cp To
2
11
(2.5)
which implies
vg2
To
=1+
Tg
2Cp Tg
Furthermore, because R = Cp Cv and =
Cp
,
Cv
(2.6)
these can be developed to get
Cp as:
Cp =
R
1
To
1 vg 2
=1+
Tg
2 RTg
(2.7)
Substituting (2.3) and (2.4) into the above expression, the new equation can
be expressed as function of gas local Mach Number:
To
1
=1+
M2
Tg
2
(2.8)
and
1
1
Po
2
= 1+
M
Pg
2
(2.9)
1
1
o
1
2
= 1+
M
g
2
(2.10)
Finally, using the equations above, Anderson [34] produced plots for
P
Po
and
T
To
as a function of position along the nozzle (Figure 2.2). At the throat condition,
the values of
P
Po
= 0.528 and
T
To
1.
2.3.5
T
2
=
To
+1
P
=
Po
2
+1
12
(2.11)
1
(2.12)
=
o
vg =
c
=
co
2
+1
1
1
(2.13)
q
RTg
2
+1
13
(2.14)
12
(2.15)
vg A
(2.16)
where
m
is mass flow rate as the flux per unit throat area,
c is the speed of sound,
is gas density (kg/m3 ) at the throat of the nozzle,
A is nozzle throat cross-sectional area (m2 ),
R is the gas constant.
Also, equation (2.14) explains why Helium is a better carrier of gas than air.
Helium has low molecular weight, so R is large. Helium is also monoatomic,
so is large, therefore T becomes high. As a result, Helium velocity is high
compared to that for air.
Finally, when the conditions at the throat are known, it is possible to determine
gas conditions along the diverging section of the nozzle.
2.3.6
Nozzle areaMach number relation and gas conditions at the nozzle exit
When the quantities change at the nozzle throat, the Mach number or the
nozzle cross sectional area, must be determined along the divergent section.
Therefore, the continuity relation of Fluid Mechanics is involved that gives the
following relation:
m
= vA = v A
(2.17)
A
v
c
o c
o 1
=
=
=
=
A
v
v
o v
o M
14
(2.18)
Also, using the isentropic relations and after some algebra, the area-Mach
number relation is obtained as follows:
+1
1 2 1
A
1
2
1+
M
= 2
A
M +1
2
(2.19)
However, it must be noted that the above equations reflect the gas conditions at
the nozzle exit only if a normal shock does not take place inside the nozzle. In
addition, the nozzle exit condition needs to be specified in order to complete
the gas dynamic calculation. Therefore, Equations (2.8), (2.9), (2.10), and
(2.14) could be adapted for the nozzle exit conditions and so become:
(1)
Pe
+1
(2.20)
=
P
2 + ( 1)M 2
To
1 2
=1+
M
Te
2
ve = M
o
=
e
p
RTe
1
1 2 (1)
M
1+
2
(2.21)
(2.22)
(2.23)
(2.24)
where k1 and k2 are functions of the specific heat ratio and with values given
by a non-linear polynomial regression analysis as
k1 = 218.0629 243.5764 + 71.7925 2
(2.25)
k2 = 0.122450 + 0.281300
(2.26)
15
Figure 2.3: Variation of the gas Mach number with the nozzle expansion ratio
and the gas specific-heat ratio [14].
2.3.7
A shock wave is a thin region where the transition from supersonic velocity
with low pressure state to low velocity with high pressure state occurs [40].
When the flow velocity exceeds the speed of sound, adjustments in the flow
take place at these discontinuous regions. This is reflected by oscillations of
vg near the nozzle exit. In practical situations, the shock waves that occur at
right angles to the flow path are termed a normal shock, whilst a shock wave
that occurs at an angle to the flow path is termed an oblique shock. Figure 2.4
shows a example of normal shock wave.
To determine whether the normal shock will take place inside the nozzle, it is
recommended to compare the ambient pressure with the shock pressure given
by Equation (2.27) [7]:
Ps
2
1
=
Me2
Pe
+1
+1
16
(2.27)
However, for operating conditions in CGDS, the shock pressure Ps is maintained above the ambient pressure, so no shock occurs inside the nozzle and
Pe is defined by Equation (2.20). Also, Pe is generally lower than the ambient
pressure in order to increase the exit velocity of the gas and consequently, the
average velocity of the feed powder particles.
In addition, a certain length of divergent section of nozzle could not be exceeded, otherwise a normal shock occurs inside. Furthermore, increasing the
nozzle length downstream of the nozzle throat, the boundary layer thickness
also increases. This leads to a decrease of the effective nozzle crosssectional
area in comparison to the geometrical crosssectional area, and consequently,
gas velocity decreases at the nozzle exit in comparison to the ideal gas flow
velocity [2].
17
2.3.8
Particle velocity
Once the gas conditions and velocity are characterized, the particles are analyzed using a particle motion model. To calculate the particle velocity vp ,
Alkimov et al. used the simple particles motion equation as follows [2]:
dvp
(v vp )2
mp vp
= CD
Smid
dz
2
(2.28)
v vp
(2.29)
c
(v vp ) dp
(2.30)
Rep =
along the nozzle axis, CD is the drag coefficient, is the gas density, v is the
gas velocity, Smid is the cross-sectional area of the particle, Mp is the particle
Mach number, c is the gas sound speed, Rep is the particle Reynolds number,
dp is the particle diameter and is the viscosity. Note that the gas parameters
are taken near the axis and the drag coefficient is calculated using Henderson
approximation [2].
dp
L
0.5
p vg2
Po
0.5
(2.31)
(2.32)
vg
q q
2
1 + 0.85 Dx pPvog
18
(2.33)
2.3.9
In cold spraying, Critical Velocity is the lowest impact velocity for a particle
of a specific material to be deposited. In CGDS, the critical velocities of most
metals and alloys were reported to be in range 500 700 m/s [18]. However,
preheating the particles leads to an increase ductility of the particle, and so
decreases the critical velocity required for deposition.
According to Schmidt et al. [27] the critical velocity could be calculated using
the formula:
s
th,mech
vcrit
F1 .4.T S .(1
Ti TR
)
Tm TR
+ F2 .cp .(Tm Ti )
(2.34)
th,mech
where vcrit
is the critical velocity with mechanical and the thermal cal-
Finally, comparing critical velocities obtained by calculations and experimentations, it was found that equation (2.34) is accurate for most materials (Figure
2.6).
2.4
2.4.1
The MOC nozzle is the nozzle obtained using the method of characteristic.
However, in order to understand the process of designing such a nozzle, there
is a need for a good understanding of two dimensional gasdynamics theory
and understanding of the flow properties inside the nozzle. The method of
20
One dimensional flow analysis, in many cases, gives good accuracy for predicting the flow field in the nozzle. However, for real conditions, nozzle flows
are never rightfully one-dimensional. As a result, onedimensional theory is
insufficient for the analysis of real nozzle flow. Therefore, neglecting the influence of the wall, the twodimensional flow model can be used for analyzing
the flow in the nozzle. However, the wall boundary layer affects the entire area
of nozzle exit. Therefore, as stated by Khine et al. [17] two-dimensional flow
analysis is required to simulate the gas flow and to predict the performance
characteristic of a two-dimensional nozzle.
2.4.2
When a supersonic flow is turned away from itself, an expansion wave is formed
and this is a antithesis of shock wave. So, referring to Figure 2.7 and 2.8,
Anderson stipulated the flow aspects through an expansion wave as follows
[34] (P,v in the text are referred to p and V on the figures):
M2 > M1 , the expansion corner increases the flow Mach number and the
pressure, density and temperature decrease through an expansion wave.
The expansion region as presented is composed of an infinite number of
Mach waves, and each marking the Mach angle with the local flow
direction; 1 for downstream flow and 2 upstream flow. Furthermore,
because the expansion through the wave takes place across a continuous succession of Mach waves and ds = 0 for each Mach wave, it was
concluded that the expansion is isentropic.
The quantitative problem of Prandtl-Meyer expansion wave consists in
determination of M2 , P2 and T2 for a given M1 , P1 , T1 and 2 . The
starting point of analysis is considering the infinitesimal changes across a
very weak wave (essentially a Mach wave) produced by an infinitesimally
small flow deflection, d (Figure 2.8).
21
Figure 2.8: Geometric construction for the infinitesimal changes across a Mach
wave; for use in the derivation of the Prandtl-Meyer function. Note that the
change in velocity across the wave is normal to the wave [34].
dv/v
tan
22
(2.35)
= sin1
1
M
1
tan =
M2 1
(2.36)
(2.37)
Furthermore, considering the equations (2.35) and (2.37), the governing differential equation for Prandtl-Meyer flow is given by the Equation (2.38)
dv
d = M 2 1
(2.38)
v
The resolution of Equation (2.38) leads to PrandtlMeyer function, and represented by symbol .
r
(M ) =
+1
tan1
1
1
(M 2 1) tan1 M 2 1
+1
(2.39)
The inverse of PrandtlMeyer function is complicated to find, but the estimation in Equation 2.40 [4] gave good results for most engineering purposes.
1 + Ay + By 2 + Cy 3
(2.40)
1 + Dy + Ey 2
6 1 , the maximum turning angle. For
= 2
M=
where y =
2/3
and
2.4.3
2.4.3.1
stable flow field properties at discrete points in the space as shown in Figure
2.9.
If vi,j is the velocity at the point (i, j) ( where i denotes the x component
of velocity), then the velocity vi+1,j at point (i + 1, j) can be found using a
Taylors series as follow:
vi+1,j = vi,j +
v
x
x +
i,j
2v
x2
i,j
(x)2
+ ...
2
(2.41)
An optimum value (x)opt , at which maximum accuracy is obtained considering all the numerical errors, exists.
The second term can be neglected; and in the remaining expression,
v
x
must
(2.42)
= 0 (2.43)
1 2
c
x
x2
c2 y
y 2 c2 x y xy
24
called the velocity potential equation, where c is the speed of sound and can be
determined as follows:
1
c 2 = a0 2
2
2
+
2
+
2 !
(2.44)
2.4.3.2
The general procedure to solve the two dimensional velocity potential equation
flow using the MOC method, can be summarized in three steps as follows [34]:
1. find the characteristic lines,
2. find the compatibility equations; these are ordinary differential equations
along the characteristic lines, that are obtained from a combination of
partial differential equation, and
3. solve the compatibility equations step by step along the characteristic
lines; a starting point can be where initial condition are given.
A system of three equations, (i) Equation (2.43), (ii) the differential of vx
(dvx ) and (iii) the differential of vy (dvy ) is formed, and using Cramers rule,
the solution of
2
xy
(2.45)
Considering the relation (2.45), when D = 0 characteristic lines can be developed after algebraic trigonometric manipulation; in fact the Mach line is the
line that makes a Mach angle with respect to the streamline direction at a
given point. This line is also the line along which the derivative of vx is indeterminate and across which can be discontinuous. Moreover the derivatives
of the other flow variables, such as P , , T , vy , etc., are also indeterminate
along this line. So, Anderson determined the slope of the characteristic lines
as follows:
where
dy
dx char
dy
dx
= tan ( )
(2.46)
char
26
dv
(2.47)
d = M 2 1
v
After integration and considering Prandtl-Meyer flow, the Equation (2.47) can
be developed to form:
+ (M ) = constant = K
(2.48)
(M ) = constant = K+
(2.49)
and
Finally, the unit process is a series of specific computations to solve compatibility equations point by point along the characteristic lines. These points can
be internal to the flowfield or on the free boundary. The process is simplified
as follows [34]:
Considering the internal steady flow (Figure 2.11), the knowledge of flowfield
conditions of two points (1 and 2) can help to determine conditions at the
third point (3) located by intersection of characteristic lines passing by the
two points.
Consider i , i , i , (K )i and (K+ )i flowfield conditions related to point i.
Note that the compatibility equations are the equation that describes the variation of
27
1
[(K )1 + (K+ )2 ]
2
1
[(K )1 (K+ )2 ]
2
So, the flow conditions at point 3 are determined, and knowing 3 and 3 , all
3 =
RT3 . And,
v3 = M3 c3 .
To determine the exact location of point 3, an approximate but sufficiently accurate procedure is used. This involves the determination of the slopes of C
and C+ , and assuming that characteristic the lines are straight-line segments
28
If the conditions at a point near the wall are known and using Figure 2.11
(with point 4 near the wall and point 5 on the wall) the flow variables at the
wall can be determined as follows:
(K )4 = 4 + 4
and considering that the point 4 and the point 5 are on the same line,
(K )4 = (K )5 = 5 + 5
As the shape is known, the flow is tangent to the wall, and consequently, 5 is
known. Thus 5 can be determined by:
5 = 4 + 4 5
Finally, for this study, the starting point for nozzle calculation is taken on the
sonic line that is assumed to be a straight line.
29
2.4.3.3
Finally, the equations of gas motion assuming the minimum length nozzle
can be solved graphically and step by step.
30
2.5
There have been many efforts in the direction of improving the quality of the
CGDS deposition process. However, in this respect, the development of the
nozzle design has offered the best results [20], where especially the method of
characteristics (MOC), was used to develop new nozzle designs that provided a
significantly more homogeneous particle acceleration than that of the standard
nozzle [11].
Figure 2.14 illustrates the comparison between the flow fields of the free gas
jets of a standard type nozzle and one designed using the MOC method. Furthermore, Figure 2.15 shows the impact velocities of a 20 m copper particle
as function of gas inlet temperature for the trumpetshaped standard nozzle
and the bell-shaped MOCdesigned nozzle, using Nitrogen process gas and a
pressure of 30 bar. The arrows indicate the increase of particle velocity when
using a MOC nozzle.
Figure 2.14: Comparison between the gas jets generated by a standard and a
MOC nozzle [19].
Finally, as Francois [8] indicated, the rate of deposition in CGDS process were
better for MOC nozzles compared to other types of nozzles (Figure 2.16).
31
2.6
of changing the nozzle crosssection shape, the particle size, and process gas
type on the gas flow characteristics through the nozzle. Also, they used the
CFD technique to assess the powder particle velocity at the nozzle exit, assess
the spray distribution, and to compare all the CFD results with the practical
experiments. In addition, the CFD was used to model the turbulence and the
multi-phase flows [22].
Furthermore, ANSYS Fluent is a CFD software which operates after the flow
field has been divided into a few hundred thousand finite volume cells. Then,
the flow is evaluated using the Navier-Stokes equations and other scalar equations for each cell and taking into account the flow heat conduction, the turbulence, and the frictional losses [29]. The advantages of using CFD computational method are the detailed information obtained about the gas temperature
and velocity fields, and the details about the trajectories, temperatures, and
velocities of the particle throughout the nozzle and the free jets [29]. Consequently, it was concluded that CFD Software could become an important tool
for the CGDS research [11].
2.7
Conclusion
This chapter reviewed the relevant literatures related to the calculation and
design of supersonic nozzles for CGDS using Matlab and Ansys Fluent. Also,
the gas dynamics theories involved in the De Laval nozzle design and MOC
nozzle design have been analyzed, and so, it was provided the background
knowledge for the calculation and design of the nozzles that will be carried out
Chapter 4.
33
3 METHODOLOGY
3.1
Introduction
Chapter 2 reviewed the relevant literature related to the calculation and design
of supersonic nozzles for CGDS process. This chapter describes the methodologies used to answer the main research question presented in chapter 1. Chapter
3 is also the starting point of the development of a new software using MATLAB highlevel language.
3.2
De Laval nozzle is the typical nozzle used in the CGDS process. Therefore, it
is critically important to know the performance of a specific De Laval nozzle
that uses specific input parameters.
Step 1: select the working gas; the gas constant R and the gas specific heat
ratio should be automatically provided by the program.
35
Step 7: compute gas throat density , then determine the throat pressure P .
Step 12: compute the Mach number of the gas at the nozzle exit Me .
Step 13: compute the exit pressure of the gas Pe , then determine gas exit
36
temperature Te , the exit gas velocity ve , and finally gas exit density e .
Step 17: verify if vp is greater than vcrit ; if vp is not greater then vcrit , the
user have to increase/decrease one of the input parameters; for cost considerations recommended order to change the input parameters is Po , To , dp , gas,
and finally the nozzle; if vp is greater then vcrit , then go to the next stage.
Step 18: verify if the difference (ve - vp ) equals about the speed of sound i .
Step 19: verify that a shock wave is not present inside the nozzle; if Ps < Pa
the user must increase/decrease one or more then one of the input parameters
as in the previous step; if Ps > Pa , the calculated vp could be considered as a
value that meets the CGDS deposition requirements.
3.3
Calculations have shown that a relative velocity between the gas and the particle for
Mach number equals to the square of 2, allows to be achieved a density and velocity that
maximizes the acceleration of the particles. Experiments have shown that the gasparticle
relative velocity must be maintained at about the speed of sound and that this value corresponds to a Mach number equal to 1[8].
37
is followed by a straight barrel section where the speed of the particle is increased due to larger contact time between the gas and particles. As a result,
the quality of the CGDS deposition will increase.
Consequently, this dissertation will develop a new GUI software using MATLAB that will have the possibility to take as input a planned Mach number,
the gas specific heat, the nozzles throat diameter, and plot the internal profile
of the MOC nozzle. Also, in order to improve the flow of the gas, the software
will verify the shockwave at the exit of the nozzle.
Step 6: calculate of the Prandtl Meyer function for Mach number given in
the first step using the inverse of Prandtl Meyer function.
Step 7: calculate the max angle of the duct wall wall max with respect to
the x direction. Note that the x direction represents the flow direction.
The total corner angle wall max at the throat can be determined as followed
(M )
(3.1)
2
Note that (M ) is the Prandtl-Meyer function corresponding to the designed
wall max =
exit Mach number. The expansion fan is replaced by the finite number of right
running characteristics starting from point 1, in such a way that the flow, as
it crosses these n characteristic lines, turns from 0 to wall max .
Step 8: calculate .
Each characteristic line turns the flow direction by
wall max
=
n
(3.2)
39
Step 10: calculate of Prandtl Meyer angles on a oblique line x using the
Prandtl Meyer constants.
Step 11: calculate the angle of duct wall on a oblique line x using the
Prandtl Meyer constants.
Step 12: calculate the Mach number M as a function of Prandtl Meyer angles
on a oblique line x.
40
3.4
Test diagram
3.5
Summary
Chapter 3 focused on the methodologies that need to be followed for the development of the new software using MATLAB. These methodologies included
all the necessary steps for the calculation and design of the De Laval and the
MOC nozzles, and also the necessary steps for testing the results. In addition, chapter 3 represented the starting point in the development of the new
MATLAB software. Consequently, the next chapter will focus on the new GUI
construction and its testing.
41
4 SOFTWARE DEVELOPMENT
AND ANALYSIS OF DATA
4.1
Introduction
This section presents the software development for the calculation and design
of the internal profile of the nozzle. Then, the new software will be tested and
the results compared with the data found in the published literature.
The new software is developed in MATLAB. The De Laval nozzle one dimensional approach calculations are compared with those achieved using the
ANSYS Fluent software. Furthermore, the results for the two dimensional approach used for the MOC nozzle design that is also developed in MATLAB
will be compared with the CFD Ansys Fluent results.
4.2
GUI Development
MATLAB GUI development is very important because it contains all the input
values of the user, all important calculated results, and all the resulted designs
of the internal profile of the nozzle.
The GUI was developed using Graphic User Interface DEveloper (GUIDE) in
MATLAB [39], and each component included in GUIDE was connected with
one or more user defined routines known as callbacks. When a user pushes a
42
When the Editor is saved, two files with the same name but different extensions, are automatically created. These two files are: .fig, used to enter the
inputs into the program, and .m file used to call the callback structure. An
example of a m-file is shown in Figure 4.2.
Also, Figure 4.3 shows the main interface of the developed GUI with its two
button: Simulation Parameters De Laval nozzle and Contour Design MOC
nozzle.
Finally, when the GUI was developed a number of other software literature
43
recommendations were applied. These include aspects such as: the reason for
creating a GUI, the consideration related to the user (his mental capacity),
a simple userfriendly interface [32], and the possibility to easily add new
functionalities to the software.
44
4.3
4.3.1
Calculation Process
Stagnation conditions
Stagnation temperature To (K) = 593
Stagnation pressure Po (M P a) = 2.5
Nozzle geometry
Throat diameter d (mm) = 2.7
Exit diameter de (mm) = 8.1
Divergent length nozzle x (mm) = 90
Powder Particles
Copper
Diameter of particle dp (m) = 15
Tensile strength T S (M P a) = 210
Particle material density p (kg/m3 ) = 7870
Particle heat capacity cp (J/kg K) = 390
45
Calculated Data
Throat Temperature
T =
593
= 494.3 K
1 + 1.41
2
Throat Velocity
v =
Stagnation Density
o =
2.5 106
= 14.2 kg/m3
296.8 593
= 14.2
2
1.4 + 1
1
1.41
= 9 kg/m3
2
1.4 + 1
2
+1
1
1
1
1.41
453.2
V A 3600
3.14 0.00272
4
3600 = 6 m3 /hour
Mach number
The Mach number at the exit of the nozzle can be calculated using the constants k1 (Equation 2.25) and k2 (Equation 2.26) as follows:
k1 = 218.0629 243.5764 1.4 + 71.7925 1.42 = 17.77
k2 = 0.122450 + 0.281300 1.4 = 0.27137
Me = (17.77 9 + (1 17.77))0.27137 = 3.8461
46
Exit Pressure
Pe = 1.32
1.4 + 1
2 + (1.4 1) 3.84612
1.4
( 1.41
)
= 0.02025 M P a
Exit Temperature
Te =
1+
593
= 149.804 K
3.84612
1.41
2
e =
1+
1.41
2
1
1.41
3.84612
= 0.455 kg/m3
1
1.41
Particle Velocity
959.57
vp =
1 + 0.85
15106
90103
= 603.2 m/s
7870959.572
2.5106
Critical Velocity
s
th,mech
vcrit
293.15293.15
1535293.15
+ 0.3 390 (1535 293.15)
= 522.855 m/s
Shock Pressure
Ps = 0.02025
2 1.4
1.4 1
3.84612
1.4 + 1
1.4 + 1
= 0.346 M P a
Following the verification algorithm presented above, the GUI for the new
software was possible to be developed.
4.3.2
The developed GUI simulation window is presented in Figure 4.4 and its associated code could be found in Appendix C1.
47
After the user clicks on the button Simulation Parameters De Laval Nozzle
in the MainInterface (Figure 4.3), the MATLAB file DeLavalNozzle.m is
opened. Then, by selecting the Run button, the Interface shown in Figure
4.4 is displayed and the following areas could be identified:
Specifications button
For a better understanding of the use of GUI, the user should click the Specifications button that contains the following data:
The m-files for Helium.m and Nitrogen.m gases; and Copper.m, Aluminum.m, Nickel.m, Titanium.m and Steel316L.m files for powder particles. Note: if required, additional m-files could be added using the
MainDeLavalNozzleSimulation file and the Propriety Inspector window.
The mass flow to be used that varies from 0 m3 /hour to 100 m3 /hour. For
a stagnation temperature of 273.15 K, this limits the maximum pressure
for Helium at 1.5 MPa and at 4.6 MPa for Nitrogen. Note: the limitations
of the actual CGDS system should be considered.
All input data must be entered using the units shown on the GUI interface.
Input Nozzle this section contains the geometrical parameters of the nozzle. These are:
throat diameter: Throat Dia., mm
exit diameter: Exit Dia., mm
length of divergent part: x, mm
area ratio:
Input Gas this section contains the carrier-gas parameters. These are:
type of gas: Select gas (selected from the popup menu)
48
Input Particle this section contains input data for the particle. These are:
the particle material: Select Particle (selected from the popup menu)
the particle diameter: Particle Diameter, micron
the impact temperature: Impact Temp.,(293.15K)
the impact temperature: Impact Temp.,(373.15K)
Output Velocities this section contains the calculated velocities and the
gas exit Mach number. These are:
the Mach number: Mach number
the critical velocity: Critical Velocity,m/s (2 values)
the particle velocity: Particle Velocity,m/s
Shock Pressure this section contains the calculated shock pressure: Shock
Pressure,MPa
Atm Pressure, MPa this is the atmospheric pressure in MPa
Atm Temperature, K this is the atmospheric temperature in K
Gas Flow Rate, m3 /hour this is the gas flow rate in m3 /hour
Figure 4.4: Main window of the tool used to simulate the De Laval nozzle.
50
To test the new GUI Software, the same parameters used in section Calculation Process are entered and the same result are achieved (Figure 4.5).
51
4.3.3
Previews research have demonstrated that the CFD results are quite accurate when compared with the experimental results. Therefore, in order to test
the MATLAB and GUI calculations, a number of tests were conducted. Furthermore, the calculated results were compared with data from the published
literature. MATLAB calculations were also compared with those obtained
using CFD simulation. Finally, for an easy analysis, all the results were presented in a table and statistical errors for each case were performed using the
Variance of Interpolation Error and the Maximum Difference.
4.3.3.1
Test 1
This test was conducted using data from Li and Li [21]. The characteristics
of the De Laval nozzle are as follows: throat diameter equals 2 mm; exit diameter equals 5 mm; and the divergent length equals 40 mm. Other parameters
include: Nitrogen at a pressure of 2 MPa; Copper particles dp of 5, 10, 20, 30, 40
and 50 m; and gas temperatures of 300.15, 423.15, 573.15, 723.15 and 873.15 K.
Then, using the same operating parameters, the results from Li and Li [21]
were compared with those obtained using the present developed software. The
results of this comparison is shown in Table 4.1 where particle velocity from
Li and Li [21] were estimated from Figure 4.6. Furthermore, the comparative
results from Table 4.1 are plotted in Figure 4.7. The MATLAB code used to
perform this test could be found in Appendix C21.
52
Table 4.1: Comparative results between the reference and this work for Cu
particle velocity, and N2 at 2 M P a at different temperatures.
53
Figure 4.7: Comparison between the particle velocities in reference and this
work for Cu powder, using N2 at a pressure of 2 MPa.
Figure 4.8: Effect of N2 pressure on the velocity of particles with different sizes
at a temperature of 300 [21].
Table 4.2: Comparative results between the reference and this work for Cu
particle velocity, and N2 at 573.15 K at different pressures.
in [6]. Note: the analytical method will give a gas velocity greater than
the real conditions; the CFD results are closer to the real conditions
because simulation conditions are made to be closer to real conditions;
the maximum difference between each set of two curves in the two analyzed cases is less than 96 m/s and this figure agrees with the previous
experimentation presented by Champagne et al. [5].
for better simulation results the particle diameter should be 8 m or
higher,
the maximum difference between the curves from Ansys Fluent and from
55
Figure 4.9: Comparison between particle velocities in reference and this work
for Cu powder, using N2 at a temperature of 573.15 K.
the new software increases with the increase of the temperature for a
fixed pressure, and the maximum difference between the curves from
Ansys Fluent and the new software increases with the increase of the
pressure and a fixed temperature; this difference should be kept low
when using analytical method; a small particle diameter gives a small
difference between 2 curves plotted with the same conditions.
4.3.3.2
Test 2
This test was conducted using data from Stoltenhoff et al. in [29]. The characteristics of the De Laval nozzle used for tests are as follows: throat diameter
equals 2.7 mm; exit diameter equals 8.1 mm; and the divergent length equals
90 mm. Other parameters include Nitrogen at a temperature of 593 K; Copper
particles dp of 15 m; and gas pressure of 1.5, 2, 2.5, 3 and 3.5 M P a.
56
Then, using the same operating parameters, the results from Stoltenhoff et
al. in [29] were compared with those obtained using the present developed
software. The results of this comparison is shown in Table 4.3 where the
particle velocity from Stoltenhoff et al. in [29] were estimated from Figure 4.10.
Furthermore, the comparative results from Table 4.3 are plotted in Figure 4.11.
The MATLAB code used to perform this test could be found in Appendix C22.
Table 4.3: Comparative table between reference and this work for particle
velocity for Cu powder of 15 m, using N2 at a temperature of 593 K and at
different pressures.
In addition, a comparison between particles velocities in the reference was
performed, for different temperatures (293, 393, 493, 593, 693 and 793 K), using Nitrogen at a pressure of 2.5 M P a and Copper particles with dp equal
to 15 m. The curves from Figure 4.12 were estimated and their coordinates
recorded in Table 4.4 together with the results obtained using the developed
software. Figure 4.13 represents the results in Table 4.4. The Matlab code
57
Figure 4.11: Comparative between particle velocities in reference and this work
for Cu powder of 15 m, using N2 at a temperature of 593 K and at different
pressures.
Finally, by analyzing the Figures 4.11 and 4.13, similar conclusions with the
conclusions in test 1 could be drawn. However, it is important to remark
that, the results for the test 2 give a difference between the curves of less than
60 m/s.
Table 4.4: Comparative table between the reference and this work for particle
velocity for Cu powder of 15 m, using N2 at a pressure of 2.5 M P a and at
different temperatures.
58
Figure 4.13: Comparison between the particle velocities in reference and this
work for Cu powder of 15 m, and using N2 at a Pressure of 2.5 MPa.
59
4.3.3.3
Test 3
This test was conducted considering a De Laval nozzle used in the Integrated
Supersonic Spray Technology Laboratory at Wits University. The characteristics of this nozzle are as follows: throat diameter equals 2 mm; exit diameter
equals 6 mm; divergent length equals 136.8 mm, input diameter equals 9.7 mm;
convergent length equals 3.8 mm, and the length of the barrel at input equals
27 mm. Nitrogen was selected as the carrier gas at 1.48296 MPa, the powder
was Aluminum particles with dp equals 27 m, and the selected working temperature was 550 K.
Particle velocity vp in m/s was determined using the developed software. The
results of these calculations are presented in the GUI format in Figure 4.14.
Also, vp was determined with vg obtained using ANSYS Fluent software and
then, the two results were compared and discussed.
Note: The following data represents the parameters for vg calculation using
ANSYS Fluent software.
Mesh generation
In order to analyze the flow in the nozzle, a mesh was created automatically
using the Quadrilaterals method in the Ansys software. Figure 4.15 presents
the resultant mesh with the following details:
97172 nodes, binary.
173 nodes, binary.
3357 2D wall faces, zone 1, binary.
189396 2D interior faces, zone 2, binary.
126 2D pressure-inlet faces, zone 6, binary.
45 2D pressure-outlet faces, zone 7, binary.
95580 quadrilateral cells, zone 3, binary.
60
61
Simulation
Based on the above settings, Figure 4.16 gives the simulation result for the
velocity (m/s); Figure 4.17 gives the simulation result for the static pressure
(Pascal), Figure 4.18 gives the simulation result for static temperature (Pascal), and Figure 4.19 gives the simulation result for the Mach number.
Figure 4.16: Contours for the velocity (m/s) using N2 with To = 550 K and
Po = 1.48296 MPa for De Laval Nozzle, Area ratio = 9,d = 2 mm.
63
Figure 4.17: Contours for the static pressure (Pascal) using N2 with To =
550 K and Po = 1.48296 MPa for De Laval nozzle, Area ratio = 9,d = 2 mm.
Figure 4.18: Contours for the static temperature (Kelvin) using N2 with To =
550 K and Po = 1.48296 MPa for De Laval nozzle, Area ratio = 9,d = 2 mm.
64
Figure 4.19: Contours for the Mach number for De Laval nozzle, Area ratio =
9,d = 2 mm, using N2 with To = 550 K and Po = 1.48296 MPa.
In addition, using data from Figure 4.16 and Alkimovs Equation 2.33, vp was
determined as follows:
779
vp =
1 + 0.85
27106
136.8103
= 557 m/s
27127792
1.482960106
Finally, comparing the results for the vp obtained using the developed software
and vp from vg determined using the ANSYS software, it is concluded that:
the difference of 71 m/s between the vp determined using the new GUI
(vp = 628 m/s) and the vp determined using vg from ANSYS Fluent (vp =
557 m/s) could be due to the fact that analytical method used selected
parameters while the CFD method used more realistic conditions. (the
CFD method considers the boundary layer condition)
the value of 2.46 for the exit Mach number found in Figure 4.19 is less
than the one found in the GUI tool. This could also be explained by the
fact that the CFD method considers more realistic conditions; in fact, the
CFD method considers the boundary layer condition. Furthermore, the
65
Finally, it should be noted that, for all the above tests, the difference between
th,mech
vcrit
as estimated by the developed software and the results presented by
Schmidt et al. [27], could be justified by the very specific condition in Schmidts
experiment which includes aspects such as the tensile strength (T S ) and heat
capacity (cp ) of the particle material, as well as the difference between the
powder particle size used in calculation and the actual particle used in the
experiment.
4.4
4.4.1
GUI interface
The new GUI was developed using MATLAB. Figure 4.20 shows the input
parameters, output calculations, curved section of the MOC nozzle, and the
whole divergent section of the MOC nozzle. Also, Figure 4.21 shows a practical
use of the GUI interface. The associated GUI code can be found in Appendix
D2.
In order to operate this new interface, the user has to select the button Contour Design Moc Nozzle in the MainInterface (Figure 4.3) That will open the
MocNozzle.m file. Then, the user must run the file that will display the GUI
Interface as shown Figure 4.20 and with the following areas:
66
Input Parameters
Mach Number as planned
Specific Heat
Constant of Perfect Gas, R (J/KgK)
Diameter Throat (mm)
Divergent Length (mm)
Output Results
Max angle duct wall (radians)
Length Curve Section (mm)
Exit Diameter (mm)
Area Ratio
Exit Mach Number (at Curve part)
Curve Section MOC Nozzle this displays the curve section of the nozzle
and the coordinates of the points in the plot can be read under X,mm and
Y,mm.
Divergent Section MOC Nozzle this displays the entire internal profile
of the nozzle.
Computer and Plot it runs the calculations and displays the plotting results.
Note: In order to enter a new set of data, the interface must be closed.
67
Figure 4.20: Main window for the MOC nozzle contour simulation.
68
Figure 4.21: Contour of the MOC nozzle for = 1.4, dthroat = 2.7 mm, M = 3,
Length = 150 mm.
69
4.4.2
The plots of the results from Table 4.5 are presented in Figure 4.22. Also,
analyzing Table 4.5 and Figure 4.22, the following could be highlighted:
the maximum difference between the planned Mach number and the
Mach number obtained at the exit of the curved part of the nozzle is
equal to 0.00154
the minimum difference between the planned Mach number and the Mach
number at the exit of curved part of nozzle is equal to 0.00016
this difference increases with the Mach number, however the maximum
achieved difference of 0.00154 is enough accurate. This accuracy shows
that the number of 10 characteristic lines retained to build the program
are acceptable for the design of the MOC nozzle with a maximum Mach
number equals to 3 (see Appendix B).
70
Table 4.5: Mach Number comparative table for MOC nozzle design, with
radius at the throat equal to 1, using N2 ( = 1, R = 296.15K).
71
Finally, the exit diameter, and consequently the area ratio, the length of curve
part, and the maximum angle of the duct wall increase with the planned Mach
number. Furthermore, it could be concluded that for the same conditions the
area ratio of a MOC nozzle is higher that the area ratio of a De Laval nozzle.
4.4.3
The CFD simulation can be used for a proper characterization of the gas
flow in the CGDS process. The CFD procedure uses a number of equations,
simplifications and assumptions, and a meshing tool to transform the physical
domain into a computational domain. The CFD package used in this work is
Ansys Fluent 12.0.16. The calculation was limited only to the gas jets of the
72
MOC nozzle but Equation 2.33 could be used to link vg and vp . In addition,
it should be mentioned that the CFD investigation presented in this section
is limited to the simulation of the gas flow in the divergent part of the MOC
nozzle, the evaluation of the gas velocity and its Mach number, pressure, and
temperature at the exit of the nozzle.
4.4.3.1
In this section, the geometry of the nozzle in Figure 4.21 is used. Therefore, M ach number = 3, = 1.4, R = 296.15J/Kg K, T hroat diameter =
2.7 mm, and Divergent Length = 150 mm. Note that the T hroat diameter =
2.7 mm was selected as smallest cross section for the acceleration of Copper
powder according with the previous study [11].
Using the above parameters, the (x,y) coordinates that will define the MOC
nozzle wall profile are presented in Table 4.5. Note that these values could be
found in Figure 4.21.
xcoordinate ycoordinate
0
1.35
2.75898
2.62943
3.74985
3.03765
4.41038
3.2607
5.17061
3.48115
6.05283
3.69594
7.08513
3.90026
8.30304
4.08679
9.75185
4.24468
11.4896
4.35805
13.5911
4.40366
150
4.40366
Table 4.6: Coordinates (x,y) for the MOC Nozzle wall profile with the following properties: M ach number = 3, = 1.4, R = 296.15J/Kg K,
T hroat diameter = 2.7 mm and Divergent Length = 150 mm.
73
Then, in order to generate the nozzle shape in ANSYS, the coordinates from
Table 4.6 were entered manually in the Ansys Design Modeler tool (DM).
With this data, the mesh was created automatically using the Mapped Face
Meshing and the Quadrilaterals method. Figure 4.23 presents the meshing
result on a portion of the nozzle length with that has the followed values:
4.4.3.2
Simulation
In order to simulate the gas flow within the MOC nozzle, the parameters from
Figure 4.24 were used. These are as follows:
74
75
for the Solver selected, chose Type as DensityBased, Velocity Formulation as Absolute, Time as Steady and 2D Space as Planar.
for the Model, make sure that Energy Equation is clicked in the
Energy window, and the standard K turbulence model was chosen
for the simulation.
for the Materials, air was selected with properties of IdealGas.
the Operating Pressure in the Operating Conditions window was set
to 0.
for the Boundary Conditions, in the window Pressure Inlet, the
Gauge Total Pressure (pascal) equals 2000960 and the Supersonic/Initial
Gauge Pressure (pascal) equals 1057070, the Total Temperature (Kelvin)
equals 416.667, the Gauge Pressure (Pascal) equals 51838.8 and the
Backflow Total Temperature (Kelvin) equals 176.06. The wall was set
to wall boundary type.
for the Solution Methods the flow was selected to Second Order
Upwind.
for the Solution Initialization, as Reference Frame, Relative to Cell
Zone was selected. And as Initial Values, Gauge Pressure (Pascal)
was selected to 1057070, Axial Velocity (m/s) was selected to 416.093,
Radial Velocity (m/s) was selected to 0 and the Temperature (Kelvin)
was selected to 416.667.
the Convergence Criteria, the solution was iterated until the residual
for the equations falls bellow 1e 6.
the Number of Iterations was fixed to 4500.
Based on the above settings, Figure 4.25 gives the simulation result of the
contours of velocity magnitude (m/s).
Also, using the Alkimovs equation (Equation 2.33) vp can be calculated as
follows:
741
vp =
1 + 0.85
15106
150103
76
= 560 m/s
78707412
2106
Figure 4.25:
4.4.3.3
Analysis of results
the straight gas flow at the exit of the MOC nozzle and the reduced
or eliminated shock waves inside of the MOC nozzle, will improve the
quality of the CGDS deposition process (Figure 2.14).
4.5
Summary
There is a need to predict the correct particle deposition parameters used in the
CGDS process before any practical experimentation is performed. Therefore,
this chapter presented the development of a new computational tool using
MATLAB that is capable to calculate the performance of an existing De Laval
nozzle, and also is capable to calculate and design the internal profile of high
performance (high gas speed with no or reduced shock waves) MOC nozzles.
In addition, in order to test the new developed software, a number of tests were
conducted. The results of the tests showed that the new software developed in
MATLAB are very similar to those found in the peer reviewed and published
literature.
78
5.1
Introduction
This dissertation has been organised into five chapters which were structured,
unified, and focused on solving one research problem. The first chapter set
the scene by introducing the core research problem and outlined the path
that the reader will travel towards its conclusion. Chapter 2 identified from
the existing body of knowledge issues related to the calculation and design
of the nozzles used in CGDS process, and unified this knowledge into a new
mathematical model. Then, Chapter 3 presented the methodologies used to
answer the research question and Chapter 4 used these methods to develop
a new software for nozzle calculations and design. Finally, Chapter 5 briefly
summarised the previous chapters, and then, prior to making conclusions about
the research, it explains how the new and the old pieces fit to make the whole
picture clear.
5.2
79
In order to find the answer to the research problem, the literature survey focused on the issues of the De Laval nozzle calculation and design, but also
considered the complex and multifaceted issues of the MOC nozzle calculation
and design.
As a result of this research, it has been found that the CGDS process requires
a supersonic high velocity stream of gas to accelerate the powder particles at
velocities exceeding particles critical velocity. However, many times, CGDS
experiments were carried out using inadequate process parameters and so wasting unnecessary time and money. Therefore, the optimization of the nozzles
geometry and the simulation of the CGDS process parameters were considered
critically imperative.
Consequently, this dissertation developed a new software that allows the simulation of the gas and particles velocities for a large variety of CGDS process parameters. Software development used a number of established techniques that
included the MATLAB software that was used to generate practical graphs for
the CGDS process and generate the 2D recommended nozzle contour and the
Computational Fluid Dynamics (CFD) software that was used to calculate and
visualize the gas flow. Finally, the results obtained using the two developed
technologies were compared with data from the peer reviewed journal papers
and it was found that the results obtain using the new MATLAB software and
ANSYS Fluent were very similar with data found in the literature survey.
5.3
5.4
Research Implications
The research performed in this dissertation has theoretical and practical implications.
The implication for theory refers to the development of a unified cold gas dynamic spray process mathematical model focused on the nozzle design that
was used to develop the MATLAB software and the ANSYS tests.
The implications for practice include benefits, which combined could improve
not only the productivity, consistency, clarity, accuracy, and quality of the cold
gas dynamic spray process itself, but also improve various related activities
such as production lead-time, production scheduling, and capacity utilization.
5.5
Research Limitations
test the two developed technologies using data from peer reviewed journal
papers.
The research was focused and its aims achieved. However, the dissertation had
a number of limitations acknowledged by the author. These limitations, that
do not detract the significance of the dissertation findings, refer to: the De
Laval nozzle profile that was limited to a straight lines profile from the throat
section to the nozzle exit section; the design of the MOC nozzle was limited to
the determination of the internal shape for the divergent part of the supersonic
nozzle; the external profile of the nozzle design and its manufacturing were
excluded; and the use of ANSYS Fluent software was limited only to the
determination of the gas velocity.
5.6
Further Research
This final section is written to help students and other researchers in selection
and design of future research directions that could be foreseen.
Further research suggestions include but are not limited to: the design and
construction of an improved GUI for the MATLAB software; the development
of a modular code inside the MATLAB software; and an enhanced ANSYS
approach for the cold spray development.
Finally, the research literature suggested that there is a need for a software for
CGDS nozzle calculations. This dissertation showed that it is both theoretically and practically possible to design, build, and test such software and also
set a foundation for further research.
82
REFERENCES
[1] Al-Ajlouni M., An Automatic Method for Creating the Profile of Supersonic Convergent-Divergent Nozzle, Journal of Mechanical and Industrial
Engineering, vol 4 No. 3, 2010, pp. 404411
[2] Alkhimov A.P., Kosarev V.F. and Klinkov S.V., The Features of Cold
Spray Nozzle Design, Institute of Theoretical and Applied Mechanics SB
RAS, Journal of Thermal Spray Technology Volume 10(2), ASM International,Novosibirsk, 2001, pp 375
[3] Amardip Ghosh,Supersonic Nozzle Design Using 2D method of characteristics, Department of Aerospace Engineering, University of Maryland.
[4] Carmichael Ralph, How do you compute the inverse of the Prandtl-Meyer
Function?, Public Domain Aeronautical Software, Santa Cruz, 2007.
[5] Champagne V. K. et al., Comparison of Empirical and Theoretical Computations of Velocity for a Cold Spray Nozzle
[6] Champagne V. K. et al., Theoretical and Experimental Particle Velocity in
Cold Spray, Journal of Thermal Spray Technology, vol 20 No. 3, 2011, pp.
425431
[7] Dykhuizen R.C., Smith M.F., Gas Dynamic Principles of Cold Spray, ASM
International, JTTEE5 7, 1998, pp. 205212.
[8] Francois R., Contribution to the development of a Cold Gas Dynamic Spray
System (C.G.D.S.) for the realization of nickel coatings, Sciences des procedes de Ceramiques et Traitements de Surface, Universite de Limoges,
These No. 45, 2005
[9] Jodoin B., Cold Spray Nozzle Mach Number Limitation, Journal of Thermal
Spray Technology, vol 11, No. 4, 2002, pp. 496507
83
http://www.hsu-hh.de/werkstoffkunde/index_P4OTiQPRdTHq9uNv.html
[21] Li Wen-Ya and Li Chang-Jiu, Optimal Design of Spray Gun Nozzle at a
Limited Space, Journal of Thermal Spray Technology, vol 14 No. 3, 2005,
pp. 391396
[22] Lupoi R. and ONeill W., An Investigation on Powder Stream in Cold
Gas Spray (CGS) Nozzles, V European Conference on Computational Fluid
Dynamics, Lisbon, 2010
[23] Maev, R. and Leshchynsky V., Introduction to Low Pressure Gas Dynamic
Spray, Physics and Technology, Wiley-VCH, 2008
[24] Pasquale D., Harinck J., Guardone A. and Rebay S., Geometry Optimization For Quasi-Uniform Flows From Supersonic Nozzles, European Conference on Computational Fluid Dynamics, Lisbon, 2010
[25] Tabbara et al., Study on Process Optimization of Cold Gas Spraying, ASM
International, 2010
[26] Tu Jiyuan et al., Computational Fluid Dynamics. A Pratical Approach
1st ed., Butterworth-Heinemann, Amsterdam, 2008
[27] Schmidt T., Gartner F., Assadi H., Kreye H., Development of a Generalized Parameter Window for Cold Spray Deposition, Acta Materialia 54,
Elsevier, 2006, pp. 729-742
[28] Schmidt T., Gartner F., Kreye H., New Developments in Cold Spray Based
on Higher Gas and Particle Temperatures, Journal of Thermal Spray Technology, vol 15 No. 4, 2006, pp. 488494
[29] Stoltenhoff T., Kreye H. and Richter H.J., An Analysis of the Cold Spray
Process and Its Coatings, Journal of Thermal Spray Technology, vol 11, No.
4, 2002, pp. 542550
[30] Wu J. et al., Measurement of Particle Velocity and Characterization of
Deposition in Aluminium Alloy Kinetic Spraying Process, Applied Surface
Science, vol 252, 2005, pp. 13681377
[31] Zebbiche T. and Youbi Z.,Supersonic Two-Dimentional Minimum Length
Nozzle Design at High Temperature, Emirates Journal for Engineering Research 11 (1), 2006, pp.91102
85
BIBLIOGRAPHY
[32] Anatolii P. et al., Cold Spray Technology, Technology and Engineering,
Elsevier, 2007
[33] Anderson, J. D. Jr., Computational Fluid Dynamics, The Basics with
Applications, McGraw-Hill, 1995
[34] Anderson, J. D. Jr, Modern Compressible Flow, With Historical Perspective 3rd ed., McGraw-Hill, 2003
[35] Ansys, Inc., Ansys Fluent 12.0 Theory Guide, Lebanon, 2009
[36] Ansys, Inc., Ansys Fluent 12.0 Tutorial Guide, Lebanon, 2009
[37] Brain H. and Daniel T., Essential Matlab for Engineers and Scientists,
Elsevier, 4th ed., London, 2010
[38] Champagne V. K., The Cold Spray Materials Deposition Process. Fundamentals and Applications, Woodhear Publishing in Materials CRC Press
LLC, Abington Cambridge, 2007
[39] MathWorks, Inc., Matlab 7, Creating Graphical User Interfaces, United
States, 2007
[40] Oosthuizen H. Patrick and Carscallen E. William, Compressible Fluid
Flow , McGraw-Hill, 1997
[41] Patric F. Dunn, Chap 9: Compressible Flow
[42] Shapiro H. and Moran M., Fundamentals of Engineering Thermodynamics, John Wiley and Sons Ltd, England, 2006
86
APPENDICES
Appendix A - Glossary
Nozzle a device designed to control the characteristics of a fluid flow
as its exit(or enters) an enclosed chamber or pipe.
Supersonic Nozzle a convergentdivergent nozzle designed to increase
the velocity of gas to values higher than the speed of sound.
De Laval nozzle a nozzle that as the longitudinal section of the divergent
part represented by a straight line that connects the throat and the exit
areas.
MOC nozzle a nozzle that has its divergent section calculated using
the Method of Characteristic.
Cold Gas Dynamics Spray a high-rate material deposition process in
which small, unmelted powder particles ranging from 1 to 50m in diameter are accelerated to velocities on the order of 600 to 1000 m/s in
a supersonic jet of compressed gas. Upon impact with a substrate surface, the solid particles deform and bond together, building up a layer of
deposited material realizing a recharge or a coating.
Critical Velocity the lowest impact velocity for a particle of a specific
material to be deposited.
Compressible flow a fluid in which the fluid density varies.
Isentropic flow an adiabatic flow (no heat transfer) which is frictionless
(ideal or reversible), and the entropy is constant.
Shockwave a fully developed compression wave of large amplitude,
across which density, pressure, temperature, and particle velocity change
87
88
89
mfilename, ...
gui_Singleton,
gui_Singleton, ...
@DeLavalNozzle_OutputFcn, ...
gui_LayoutFcn,
[] , ...
gui_Callback,
[]);
91
92
VcritL =sqrt((handles.F1*4*handles.SigmaTS*(1-(Ti-TR)/(handles.Tm-TR)))...
/handles.rhop + handles.F2*handles.Cpp*(handles.Tm - Ti));...
%critical velocity [m/s]
VcritH =sqrt((handles.F1*4*handles.SigmaTS*(1-(Tih-TR)/(handles.Tm-TR)))...
/handles.rhop + handles.F2*handles.Cpp*(handles.Tm - Tih));...
%critical velocity [m/s]
Ps = Pe*((((2*handles.gam)/(handles.gam+1))*(Me^2))-((handles.gam-1)/...
(handles.gam+1))); %shock pressure [MPa]
%----------------------------OUTPUT RESULTS------------------------------set(handles.mvdot,String,mvdot);
set(handles.Tstar,String,Tstar);
set(handles.Vstar,String,Vstar);
set(handles.rhostar,String,rhostar);
set(handles.Pstar,String,Pstar);
set(handles.AreaRatio,String,AreaRatio);
set(handles.Me,String,Me);
set(handles.Pe,String,Pe);
set(handles.Te,String,Te);
set(handles.Ve,String,Ve);
set(handles.rhoe,String,rhoe);
set(handles.Ps,String,Ps);
set(handles.Vp,String,Vp);
set(handles.VcritL,String,VcritL);
set(handles.VcritH,String,VcritH);
%---------------------Plot Particle Velocity----------------------------%var(), mean variation of()
Varx = 0:.01:x;
%VarVp = Ve .* ((3.*1.*rhoe.*Varx.*10.^(-3))./...
%(2.*Dp.*10^(-6).*handles.rhop)).^0.5;
VarVp = Ve ./ (1.+0.85.*(Dp./(Varx.*10.^3)).^0.5.*(handles.rhop.*Ve.^2./...
(P0.*10.^6)).^0.5);
axes(handles.PlotAxe1);
plot(Varx,VarVp,r,LineWidth,2);
xlabel(Divergent Length (mm) vs Particle Velocity (m/s));
grid
93
94
end
function Dp_Callback(hObject, eventdata, handles)
% --- Executes during object creation, after setting all properties.
function Dp_CreateFcn(hObject, eventdata, handles)
if ispc && isequal(get(hObject,BackgroundColor),...
get(0,defaultUicontrolBackgroundColor))
set(hObject,BackgroundColor,white);
end
function Ti_Callback(hObject, eventdata, handles)
% --- Executes during object creation, after setting all properties.
function Ti_CreateFcn(hObject, eventdata, handles)
if ispc && isequal(get(hObject,BackgroundColor),...
get(0,defaultUicontrolBackgroundColor))
set(hObject,BackgroundColor,white);
end
% --- Executes on selection change in GasData.
function GasData_Callback(hObject, eventdata, handles)
val=get(hObject,Value);
str=get(hObject,String);
switch str{val}
case Helium
Helium_Properties;
handles.R = R;
handles.gam = gam;
case Nitrogen
Nitrogen_Properties;
handles.R = R;
handles.gam = gam;
end
guidata(hObject,handles);
% --- Executes during object creation, after setting all properties.
95
96
handles.F2 = F2;
case Steel316L
Steel316L_Properties;
handles.SigmaTS = SigmaTS;
handles.rhop = rhop;
handles.Cpp = Cpp;
handles.Tm = Tm;
handles.F1 = F1;
handles.F2 = F2;
case Titanium
Titanium_Properties;
handles.SigmaTS = SigmaTS;
handles.rhop = rhop;
handles.Cpp = Cpp;
handles.Tm = Tm;
handles.F1 = F1;
handles.F2 = F2;
end
guidata(hObject,handles);
% --- Executes during object creation, after setting all properties.
function PartData_CreateFcn(hObject, eventdata, handles)
if ispc && isequal(get(hObject,BackgroundColor),...
get(0,defaultUicontrolBackgroundColor))
set(hObject,BackgroundColor,white);
end
% --- Executes during object creation, after setting all properties.
function Compute_CreateFcn(hObject, eventdata, handles)
% --- Executes during object creation, after setting all properties.
function PlotAxe1_CreateFcn(hObject, eventdata, handles)
% --- Executes on button press in Exit.
97
% eventdata
% handles
delete(handles.figure1)
% --- Executes during object creation, after setting all properties.
function Exit_CreateFcn(hObject, eventdata, handles)
% hObject
% eventdata
% handles
% eventdata
% handles
winopen(Specifications.pdf)
function P0_Callback(hObject, eventdata, handles)
% --- Executes during object creation, after setting all properties.
function P0_CreateFcn(hObject, eventdata, handles)
if ispc && isequal(get(hObject,BackgroundColor),...
get(0,defaultUicontrolBackgroundColor))
set(hObject,BackgroundColor,white);
end
function AtmP_Callback(hObject, eventdata, handles)
% --- Executes during object creation, after setting all properties.
function AtmP_CreateFcn(hObject, eventdata, handles)
if ispc && isequal(get(hObject,BackgroundColor),...
get(0,defaultUicontrolBackgroundColor))
set(hObject,BackgroundColor,white);
98
end
99
num2str(std(ErrorIntRef).^2)
disp(THIS WORK Interpolation polynome_Velocity:)
FitGui = polyfit(DiaPart,PaVeGui,4)
ValFitGui = polyval(FitGui,DiaPart);
ErrorIntGui = PaVeGui - ValFitGui;
disp(THIS WORK Variance of Interpolation error_Velocity is:)
num2str(std(ErrorIntGui).^2)
disp(Maximum difference_Velocity REFERENCE-THIS WORK)
MaxDif = max(ValFitGui - ValFitRef)
101
103
105
kneg1 = [varthetha*2:varthetha*2:nuMe];
kpos1 = zeros(1,n);
kneg2 = [kneg1(2):varthetha*2:nuMe];
kpos2 = - kneg1(2).*ones(1,n-1);
kneg3 = [kneg1(3):varthetha * 2:nuMe];
kpos3 = - kneg1(3) .* ones(1,n-2);
kneg4 = [kneg1(4):varthetha * 2:nuMe];
kpos4 = - kneg1(4) .* ones(1,n-3);
kneg5 = [kneg1(5):varthetha * 2:nuMe];
kpos5 = - kneg1(5) .* ones(1,n-4);
kneg6 = [kneg1(6):varthetha * 2:nuMe];
kpos6 = - kneg1(6) .* ones(1,n-5);
kneg7 = [kneg1(7):varthetha * 2:nuMe];
kpos7 = - kneg1(7) .* ones(1,n-6);
kneg8 = [kneg1(8):varthetha * 2:nuMe];
kpos8 = - kneg1(8) .* ones(1,n-7);
kneg9 = [kneg1(9):varthetha * 2:nuMe];
kpos9 = - kneg1(9) .* ones(1,n-8);
kneg10 = [kneg1(10):varthetha * 2:nuMe];
kpos10 = - kneg1(10) .* ones(1,n-9);
107
108
109
charline3 = - cot(thetha1(3)) * x + r;
slobline3 = thetha3(8) + mu3(8);
obline3 = slobline3 * x - r * slobline3 / cot(thetha1(3));
x3 = ((-r * slobline3 / cot(thetha1(3))) - ( - x2 * tan((thetha1(8)+...
thetha1(7))/2) + y2))/((tan((thetha1(8)+thetha1(7))/2)) - slobline3);
y3 = slobline3 * x3 - r * slobline3 / cot(thetha1(3));
%DETERMINATION OF COORDINATES OF POINT 4 ON THE CONTOUR
shapeline4 = x * tan((thetha1(7)+thetha1(6))/2) - x3 * ...
tan((thetha1(7)+thetha1(6))/2) + y3;
charline4 = - cot(thetha1(4)) * x + r;
slobline4 = thetha4(7) + mu4(7);
obline4 = slobline4 * x - r * slobline4 / cot(thetha1(4));
x4 = ((-r * slobline4 / cot(thetha1(4))) - ( - x3 * tan((thetha1(7)+...
thetha1(6))/2) + y3))/((tan((thetha1(7)+thetha1(6))/2)) - slobline4);
y4 = slobline4 * x4 - r * slobline4 / cot(thetha1(4));
%DETERMINATION OF COORDINATES OF POINT 5 ON THE CONTOUR
shapeline5 = x * tan((thetha1(6)+thetha1(5))/2) - x4 * ...
tan((thetha1(6)+thetha1(5))/2) + y4;
charline5 = - cot(thetha1(5)) * x + r;
slobline5 = thetha5(6) + mu5(6);
obline5 = slobline5 * x - r * slobline5 / cot(thetha1(5));
x5 = ((-r * slobline5 / cot(thetha1(5))) - ( - x4 * tan((thetha1(6)+...
thetha1(5))/2) + y4))/((tan((thetha1(6)+thetha1(5))/2)) - slobline5);
y5 = slobline5 * x5 - r * slobline5 / cot(thetha1(5));
%DETERMINATION OF COORDINATES OF POINT 6 ON THE CONTOUR
shapeline6 = x * tan((thetha1(5)+thetha1(4))/2) - x5 * ...
tan((thetha1(5)+thetha1(4))/2) + y5;
charline6 = - cot(thetha1(6)) * x + r;
slobline6 = thetha6(5) + mu6(5);
obline6 = slobline6 * x - r * slobline6 / cot(thetha1(6));
x6 = ((-r * slobline6 / cot(thetha1(6))) - ( - x5 * tan((thetha1(5)+...
thetha1(4))/2) + y5))/((tan((thetha1(5)+thetha1(4))/2)) - slobline6);
y6 = slobline6 * x6 - r * slobline6 / cot(thetha1(6));
110
111
K(-)
K(+)
THETHA
NU
disp([kneg1,kpos1,thetha1,nu1,M1,mu1])
disp([kneg2,kpos2,thetha2,nu2,M2,mu2])
disp([kneg3,kpos3,thetha3,nu3,M3,mu3])
disp([kneg4,kpos4,thetha4,nu4,M4,mu4])
disp([kneg5,kpos5,thetha5,nu5,M5,mu5])
disp([kneg6,kpos6,thetha6,nu6,M6,mu6])
disp([kneg7,kpos7,thetha7,nu7,M7,mu7])
disp([kneg8,kpos8,thetha8,nu8,M8,mu8])
disp([kneg9,kpos9,thetha9,nu9,M9,mu9])
disp([kneg10,kpos10,thetha10,nu10,M10,mu10])
xp = [x0 x1 x2 x3 x4 x5 x6 x7 x8 x9 x10];
yp = [y0 y1 y2 y3 y4 y5 y6 y7 y8 y9 y10];
hold on
plot(xp,yp,k,LineWidth,3)
grid on
axis equal
axis([0 x10 0 y10])
112
MU])
mfilename, ...
gui_Singleton,
gui_Singleton, ...
@MocNozzle_OutputFcn, ...
gui_LayoutFcn,
[] , ...
gui_Callback,
[]);
113
114
115
end
function edit9_Callback(hObject, eventdata, handles)
% handles
116
% handles
117
118
get(0,defaultUicontrolBackgroundColor))
set(hObject,BackgroundColor,white);
end
function edit19_Callback(hObject, eventdata, handles)
% handles
119
set(hObject,BackgroundColor,white);
end
function edit22_Callback(hObject, eventdata, handles)
% handles
120
% eventdata
% handles
%-----------------------------PLOT CODE ----------------------------------%GENERATION OF SHAPE FOR SUPERSONIC FLOW IN COLD GAS DYNAMIC SPRAYING
%Me the Mach number at exit
%gam ratio of gas specific heats
%n number of characteristic lines, denotes the precision of the contour
%form
%r the radius at the throat
%nuMe PRANDTL MEYER function corresponding to the design exit Mach number
%thethaWmax the max angle of the duct wall with respect to the x direction
%varthetha angle between two characteristic lines
%knegx represents K(-) and kposx represents K(+), PRANDTL MEYER constants
%on oblique line x
%nux PRANDTL MEYER angles on oblique line x
%thethax the angle of duct wall on oblique line x
%Mx Mach Number on oblique line x
%mux the local Mach angle on oblique line x
%xi coordinates of the points on the contour with respect to the x axis
%yi coordinates of the points on the contour with respect to the y axis
121
122
123
124
125
126
127
set(handles.L,String,L);
set(handles.y0,String,y0);
set(handles.y1,String,y1);
set(handles.y2,String,y2);
set(handles.y3,String,y3);
set(handles.y4,String,y4);
set(handles.y5,String,y5);
set(handles.y6,String,y6);
set(handles.y7,String,y7);
set(handles.y8,String,y8);
set(handles.y9,String,y9);
set(handles.y10,String,y10);
set(handles.y11,String,y10);
% PROPERTIES CALCULATION
ExitMachNumberMoc = M10; %Exit Mach Number from curve part
AreaRatioMoc = y10^2 / r^2;
% DISPLAY VALUES
set(handles.ExitMachNumberMoc,String,ExitMachNumberMoc);
set(handles.AreaRatioMoc,String,AreaRatioMoc);
%PLOT CURVES CONTOUR
axes(handles.PlotCurve);
plot(x,shapeline1,g-,x,charline1,r-,x,obline1,b-,...
x,shapeline2,g-,x,charline2,r-,x,obline2,b-,...
x,shapeline3,g-,x,charline3,r-,x,obline3,b-,...
x,shapeline4,g-,x,charline4,r-,x,obline4,b-,...
x,shapeline5,g-,x,charline5,r-,x,obline5,b-,...
x,shapeline6,g-,x,charline6,r-,x,obline6,b-,...
x,shapeline7,g-,x,charline7,r-,x,obline7,b-,...
x,shapeline8,g-,x,charline8,r-,x,obline8,b-,...
x,shapeline9,g-,x,charline9,r-,x,obline9,b-,...
x,shapeline10,g-,x,charline10,r-,x,obline10,b-)
hold on
128
xc = [x0 x1 x2 x3 x4 x5 x6 x7 x8 x9 x10];
yc = [y0 y1 y2 y3 y4 y5 y6 y7 y8 y9 y10];
plot(xc,yc,k-*,LineWidth,3)
grid on
axis equal
axis([0 x10 0 y10])
%PLOT ENTIRE NOZZLE CONTOUR
xp = [x0 x1 x2 x3 x4 x5 x6 x7 x8 x9 x10 L];
yp = [y0 y1 y2 y3 y4 y5 y6 y7 y8 y9 y10 y10];
ypn = -1*yp;
axes(handles.PlotShape);
plot(xp,yp,k,xp,ypn,k,LineWidth,3)
grid
axis equal
axis([0 L -y10 y10])
% DISPLAY PLOT RESULTS
set(handles.LengthCurve,String,x10);
ExitDiameter = 2*y10;
set(handles.ExitDia,String,ExitDiameter);
% --- Executes on button press in Exit.
function Exit_Callback(hObject, eventdata, handles)
% hObject
% eventdata
% handles
delete(handles.figure1)
function P0_Callback(hObject, eventdata, handles)
% hObject
% eventdata
% handles
129
% eventdata
% handles
% eventdata
% handles
% eventdata
% handles
130
set(hObject,BackgroundColor,white);
end
% eventdata
% handles
% eventdata
% handles
% eventdata
% handles
winopen(SpecificationsMoc.pdf)
131