CA LAB
CA LAB
Department of AERONAUTICAL
ENGINEERING
Prepared by:
Dr. V.G. KRISHNA ANAND
Associate Professor
Department of ANE
[email protected]
AIRCRAFT PERFORMANCE
R-20
COMPUTATIONAL AERODYNAMICS
LABORATORY MANUAL
B.TECH (R-20 Regulation)
(IV YEAR – I SEM)
(2024- 25)
MRCET
Vision
* To establish a pedestal for the integral innovation, team spirit, originality and competence in the students,
expose them to face the global challenges and become pioneers of Indian vision of modern society.
Mission
* To become a model institution in the fields of Engineering, Technology and Management.
* To impart holistic education to the students to render them as industry ready engineers.
* To ensure synchronization of institute ideologies with challenging demands of International Pioneering
Organizations.
QUALITY POLICY
* To implement best practices in Teaching and Learning process for both UG and PG courses meticulously
* To provide state of art infrastructure and expertise to impart quality education.
* To groom the students to become intellectually creative and professionally competitive.
* To channelize the activities and tune them in heights of commitment and sincerity, the requisites to claim the
never-ending ladder of SUCCESS year after year.
CA LAB MANUAL
Dept of ANE, MRCET
VISION
Department of Aeronautical Engineering aims to be indispensable source in Aeronautical Engineering
which has a zeal to provide the value driven platform for the students to acquire knowledge and
empower themselves to shoulder higher responsibility in building a strong nation.
MISSION
(a) The primary mission of the department is to promote engineering education and research.
(b) To strive consistently to provide quality education, keeping in pace with time and technology.
(c) Department passions to integrate the intellectual, spiritual, ethical and social development of the
students for shaping them into dynamic engineers.
QUALITY POLICY
Impart up-to date knowledge to the students in Aeronautical area to make them quality engineers.
Make the students experience the applications on quality equipment and tools. Provide systems,
resources, and training opportunities to achieve continuous improvement. Maintain global standards
in education, training, and services.
iii
CA LAB MANUAL
Dept of ANE, MRCET
iv
CA LAB MANUAL
Dept of ANE, MRCET
1. To mould students to become a professional with all necessary skills, personality and sound
knowledge in basic and advance technological areas.
2. To promote understanding of concepts and develop ability in design manufacture and maintenance
of aircraft, aerospace vehicles and associated equipment and develop application capability of the
concepts sciences to engineering design and processes.
3. Understanding the current scenario in the field of aeronautics and acquire ability to apply
knowledge of engineering, science and mathematics to design and conduct experiments in the
field of Aeronautical Engineering.
4. To develop leadership skills in our students necessary to shape the social, intellectual, business
and technical worlds.
v
CA LAB MANUAL
Dept of ANE, MRCET
vi
CA LAB MANUAL
Dept of ANE, MRCET
L T/P/D C
IV Year B. Tech, ANE-I Sem
0 -/3/- 1.5
(R18A2188)COMPUTATIONAL AERODYNAMICS LAB
Objectives:
• To develop an understanding for the major theories, approaches and methodologies used in
CFD.
• To build up the skills in the actual implementation of CFD methods (e.g. boundary
conditions, turbulence modeling etc.) in using commercial CFD codes.
• To gain experience in the application of CFD analysis to real engineering designs.
LIST OF EXPERIMENTS:
1. Numerical simulation of Flow over an airfoil using commercial software
2. Numerical simulation of Supersonic flow over a wedge using commercial Software
3. Numerical simulation of Flat plate boundary layer using commercial software
4. Numerical simulation of Laminar flow through pipe using commercial software
5. Numerical simulation of Flow past cylinder using commercial software
6. Numerical simulation of flow through nozzle using commercial software
7. Numerical simulation of flow over wing using commercial software
8. Numerical simulation of combustion using commercial software
9. Solution for the one dimensional wave equations using explicit method of lax using finite
a. Difference method (code development)
10. Solution for the one dimensional heat conduction equation using explicit method using finite
difference method (code development)
11. Generation of the Algebraic Grid (code development)
12. Generation of the Elliptic Grids (code development)
Reference Books:
• ANSYS FLUENT and CFX Tutorials
• MATLAB an Introduction with Applications Fifth Edition AMOS GILAT by WILEY
Publications
• Programming in SCI lab by VINU V DAS New Age International Publications
Outcomes:
• Students will develop a better intuition of Aerodynamics more quickly than is possible with
traditional analytical approaches.
• Ability to undertake problem identification, formulation and solution and apply knowledge of
basic science and engineering fundamentals.
• Developing a geometrical model of the flow, applying appropriate boundary conditions,
specifying solution parameters, and visualizing and analyzing the results.
vii
CA LAB MANUAL
Dept of ANE, MRCET
CONTENTS
S.No Experiment Name Pg.No
viii
CA LAB MANUAL
Dept of ANE, MRCET
➢ All students must observe the Dress Code while in the laboratory.
➢ All students are liable for any damage to the accessories due to their own negligence.
➢ All interfacing kits connecting cables must be RETURNED if you taken from the lab supervisor.
➢ Students are strictly PROHIBITED from taking out any items from the laboratory.
➢ Students are NOT allowed to work alone in the laboratory without the Lab Supervisor
➢ USB Ports have been disabled if you want to use USB drive consult lab supervisor.
➢ Report immediately to the Lab Supervisor if any malfunction of the accessories, is there.
ix
Dept of ANE CA Lab Manual
Consider air flowing over NACA 0012 airfoil. The free stream velocity is
40 m/s . Assume standard sea-level values for the free stream properties:
Pressure =
101,325 Pa
Density =
1.2250 kg/m3
Temperature =
288.16 K
Kinematic viscosity v = 1.4607e-5 m2/s
Steps Involved In ICEM
1) Creation of parts:
2) Creation of Domain:
➢ Create points (-1,1),(-1,-1),(2,1),(2,-1)
➢ Join these points
➢ Create parts as Inlet, Outlet, Top & Bottom
➢ Geometry→Create/Modify surface→Simple surface→Select all the
lines of domain→ok
➢ Associate →Associate vertex to point→Select the vertex of the O grid and the
2nd point on the upper curve(suction) →ok
➢ Similarly associate remaining 3 vertices of the O grid to the points on the
aerofoil as shown in the below fig.
5) Generation of Mesh:
➢ Pre-mesh parameters→Edge parameters→Switch ON the Copy
Parameters→ Select the edges and give desired no. of nodes→ok
➢ Switch ON Pre-mesh in the tree→click yes to compute the meshing
➢ Pre-mesh→Right click→Convert to unstructured mesh
Now the required mesh has been generated as shown in below fig.
9) Problem setup:
➢ General→Type as: Pressure based
➢ Models→Energy ON→ inviscid
➢ Materials→Air
➢ Cell zone conditions→Type as: fluid→ok
➢ Boundary conditions→Select inlet→Edit→Give velocity
magnitude as: 40 m/s.
➢ Boundary conditions→Select outlet→Edit→Give gauge pressure as: 0 Pa
➢ Monitors →Drag and Lift → select suction, pressure, TE parts→plot.
10) Solution:
➢ Select the required monitors
➢ Solution initialization→Compute from: inlet→Initialize
➢ Run calculations→Enter the no. of iterations as: 1000→Calculate
11) Results:
➢ Graphics and animations→select the required flow parameters in the
contours and vectors.
The results are shown below as:
Exercise Problems:
1.1 Evaluate aerodynamic characteristics of aerofoil at 15 degrees angle of attack.
1.2 Perform the grid independence study over airfoil.
Problem description:
Consider air flowing over wedge. The free stream Mach number is 3 and the angle of
attack is 5°. Assume standard sea-level values for the free stream properties:
Pressure =101,325Pa
Density =1.2250kg/m3
Temperature =288.16K
Kinematic viscosity v = 1.4607e-5 m2/s
Z 0 0 0 0 0 0
2) Creation of parts:
a. Parts in the tree→Right click→Create part→
Select Left curve: Inlet
Select Right curve: Outlet
Select Top curve: Top
Select inclined curve: Wedge
Select bottom curve: Front_wedge
5) Generation of Mesh:
a. Pre-mesh parameters→Edge parameters→Switch ON the Copy Parameters→
Select the Horizontal edge and give no. of nodes as: 100→ok
b. Pre-mesh parameters→Edge parameters→Switch ON the Copy Parameters→
Select the Vertical edge and give no. of nodes as: 100→Spacing as:
0.001→Ratio as: 1.1→ok
9) Problem setup:
a. General→Type as: Density based
b. Models→Energy ON→Select Viscous-laminar→Edit→Set model as: k-
omega(2 equ)
c. Materials→Air→Create/Edit→Set density as: Ideal-gas→Set viscosity as:
Sutherland→Change
d. Cell zone conditions→Type as: fluid→Set operating conditions→Set
operating pressure as: 0Pa
10) Solution:
a. Select Solution Controls→Set Courant number as: 1
b. Select the required monitors
c. Solution initialization→Compute from: inlet→Initialize
d. Run calculations→Enter the no. of iterations as: 1000→Calculate
11) Results:
a. Graphics and animations→Select the required flow parameters in the contours.
The results are shown below as:
Exercise Problems:
2.1 Evaluate flow properties across oblique shock of wedge at 15 degrees angle of attack.
2.2 Compare the results with analytical formulas.
Description: Consider a plate of 1m and the flow of air is 0.00133 m/s. The plate is an
stationary solid wall having no slip as its boundary condition.
Procedure:
Geometry→ create point→ explicit coordinates→ 1(0,0,0), 2(1,0,0), 3(1,1,0) and
4(0,1,0) → ok
Create/modify curve→ select 2 points→ middle click
Select all points to make a rectangle
FLUENT:
DESCRIPTION: Consider a pipe of radius 0.05 and 1 mt length. The freestream velocity
considered is 40m/s.
STEPS INVOLVED:
1) Create A Geometry:
a) Create a point: Geometry →create point →explicit coordinates→(X, Y, Z) =
(0, 0, 0) →apply→(X, Y, Z) = (1, 0, 0) →ok.
2) Generation of parts:
➢ Part →create part→inlet→select inlet→ok.
➢ Part →create part →pipe →select pipe without inlet and outlet →ok.
3) Generation of blocking:
➢ Blocking →create block →solid →select pipe element with inlet and outlet→
apply→ok.
4) Generation of Meshing:
➢ Blocking → pre-mesh parameters → edge parameters → switch on the copy
parameters →select 1 edge →give no. of nodes =20→ok.
➢ Repeat the above steps to the remaining edges also and then apply.
➢ Output →write input →done →check the file is saved folder →ok.
➢ Change the working directory (where ICEM CFD mesh file was
saved)→Click on CFX-PRE.
7) CFX-PRE:
➢ File→new case→general→ok.
8) CFX-Solver Manager:
➢ File→Define run→Solver input file→Select the file→Start run.
9) CFD POST
➢ Select →Location →Plane →XY Plane → Apply
➢ Contours →Location → plane→Variable→ Velocityand pressure →Apply.
Incoming flow through inlet
pressure contour
Exercise problems
9.1 Find out the effect convergent section on velocity.
9.2 Find the minor losses in a bend pipe.
DESCRIPTION: Consider a cyclinder of 3m radius and 6m height. The free stream velocity
considered 20m/s. the properties of air is ρ=1.18kg/m3.
PROCEDURE:
CREATION OF GEOMETRY:
Solve:
• CFD solver → open cfx file → define run → ok
Post processing:
CFD post → load result →
select .res file Location →
plane → Z=9 apply
Contours → domain: plane1 → velocity → local → conservative →
apply.
Exercise problems
5.1 Find out the effect of supersonic flow over cylinder .
5.2 Find the minor losses in a bend pipe
Aim: Consider the nozzle having a cross sectional area A varies with axial distance from the
throat, according to the formula A = 0.1+X2; where X varies from -0.5<X<0.5.
Stagnation pressure Po = 101325 pa; stagnation temperature To = 300K;
Procedure:
Pre processing:
1. Create geometry in ICEM
• Create the vertex data of Nozzle contour variation along axis line with vertices
(-0.5, 0) and (0.5, 0) and A = 0.1+X2 in excel sheet.
• Import vertex data into ICEM by creating .dat file.
• Create edges by create/modify curves and face by create/modify faces of
nozzle using geometry function tab.
• Create body point.
• Create parts inlet, outlet and wall.
2. Mesh geometry:
• Click Mesh Function tab
• Give global mesh parameters in global mesh setup like element scale factor and
element max size.
• Create partmesh setup for inlet, outlet and wall.
• Compute mesh – volume mesh – mesh type – select geometry – compute.
• Edit mesh – check mesh – quality mesh – smooth mesh.
3. Export mesh
• Output – output to cfx – save project – output type – output scale factor - .msh
file created.
4. CFX:
• CFX Pre – New file – general.
• Mesh - Import mesh – ICEM CFD – open .msh file.
Type Fluid
Location FLUID
Materials
Air Ideal Gas
Fluid Definition Material Library
Morphology Continuous Fluid
Settings
Buoyancy Model Non Buoyant
Domain Motion Stationary
Reference Pressure 1.0000e+00 [atm]
Heat Transfer Model Isothermal
Fluid Temperature 2.5000e+01 [C]
Turbulence Model k epsilon
Turbulent Wall
Scalable
Functions
Domain Boundaries
Boundary - inlet
Type INLET
Location IN
Settings
Flow Regime Subsonic
Mass And Momentum Normal Speed
Normal Speed 2.8000e+02 [m s^-1]
Medium Intensity and Eddy Viscosity
Default Domain Turbulence
Ratio
Modified
Boundary - outlet
Type OUTLET
Location OUT
Settings
Flow Regime Subsonic
Mass And Momentum Average Static Pressure
Pressure Profile
5.0000e-02
Blend
POST PROCESSING
6. Analyze results:
• Create plane
• Create contour – pressure, mach number
• Create streamlines
• Create chart for temperature along nozzle axis.
Pressure contour
Aim: To obtain flow field over a finite rectangular wing with incoming flow conditions
velocity 120 m/s, Pressure 1 atm and air at 250c.
Outlet – out_1
Top – top_1
Side – sidewall_1
Bottom – Bot _ 1
Airfoil – Airfoil_1
Apply
2. Mesh geometry:
• Click Mesh Function tab
• Give global mesh parameters in global mesh setup like element scale factor and
element max size = 0.1 → display on → apply.
• Create partmesh setup for inlet, outlet and wall.
3. Export mesh
• Output – output to cfx – save project – output type – output scale factor - .msh
file created.
4. CFX:
• CFX Pre – New file – general.
• Mesh - Import mesh – ICEM CFD – open .msh file.
• Default Domain Basic Settings Materials Air at 250c, Reference Pressure 1 atm
Boundary - outlet
Type OUTLET
Location OUT_1
Settings
Flow Regime Subsonic
Mass And Momentum Average Static Pressure
Pressure Profile Blend 5.0000e-02
Relative Pressure 1.0132e+05 [Pa]
Pressure Averaging Average Over Whole Outlet
Boundary - WALL
Type WALL
Airfoil_1, Top_1, Bot _1
Location
Settings
Mass And Momentum No Slip Wall
Wall Roughness Smooth Wall
POST PROCESSING
RESULTS:
Procedure:
Geometry→ create point→ explicit coordinates→ 1(0,0,0), 2(6,0,0), 3(6,1,0)
and
4(0,1,0) → ok
Create/modify curve→ select 2
points→ middle click Select all
points to make a rectangle
• Geometry→ create point→ explicit coordinates→ 1(0,1,0), 2(0,1.25,0),
3(0,2.75,0) and
4(0,3,0), 5(0,4.75,0), 6(0,5,0) → ok
• Select trim using above points to create air and fuel inlets as shown in figure.
FLUENT:
Grid
• Start FLUENT 2d mode
• Read→ Case and select the mesh file combustionchamber.msh
• Check the grid using grid→check
Models
Materials
Boundary Conditions
(c) Select Intensity and Hydraulic Diameter from the Specification Method dropdown
list in the Turbulence group box.
(d) Retain the default value of 10% for Turbulent Intensity.
(e) Enter 0.01 m for Hydraulic Diameter.
(f) Click the Thermal tab and retain the default value of 300 K for Temperature.
(g) Click the Species tab and enter 1 for ch4 in the Species Mass Fractions group box.
(h) Click OK to close the Velocity Inlet panel.
g) Click the Species tab and enter 0.23 for o2 in the Species Mass Fractions group
box.
h) Click OK to close the Velocity Inlet panel.
Initial Solution
b) Click Display.
• In a similar manner, display the contours of mass fraction for the specie O2.
9. SOLUTION FOR THE ONE DIMENSIONAL WAVE EQUATION USING EXPLICIT METHOD
OF LAX (CODE DEVELOPMENT).
This equation represents a linear advection process with wave speed c = constant,
which is the speed of the travelling wave or the speed of propagation. u(x,t) is
the signal or wave information. The wave propagates at constant speed to the right
if c > 0 and to the left if c <1. The spatial domain can vary from -∞ to ∞. Suppose
the initial conditions are
where is any function. The exact solution to the wave equation then is
is called the wave shape of wave form. Travelling or propagation here means
that the shape of the signal function with respect to x stays constant, however the
function is translated left or right with time at the speed c.
Numerical Solution
Method of descretisation – finite difference form
Replace the spatial partial derivative with a central difference expression
We then have
Now let us replace by an average value between grid points j+1 and j-1 as
Substituting this in equation (1) we get the explicit method of Lax for the 1D scalar
wave equations as,
% choose the wave number of the initial data and give its decay rate
u0 = x<=(pi-1);
u = zeros(M+1,N+1);
u(:,1) = u0;
Results:
Exercise problems:
9.1 Write a Matlab Program to solve one dimensional wave equation using FTCS method.
10. SOLUTION FOR THE ONE DIMENSIONAL TRANSIENT HEAT CONDUCTION EQUATION
USING EXPLICIT METHOD (CODE DEVELOPMENT)
This equation represents the conduction of heat energy in time and space. Transient
nature of this equation is represented in the dependence of temperature with
time as opposed to a steady state condition.
Numerical Solution
Method of discretization – finite difference form
Replace the time derivative with a forward difference expression
We then have
i.e. (2)
where
Equation (2) is the final explicit update equation for the one dimensional transient heat
conduction equation.
y = linspace(300,800);
% Plot the dike
boundaries
hold on
plot(x1,y, x2, y);
Results:
Exercise problems:
10.1 Write a Matlab Program to solve one dimensional heat conduction equation using Lax
method.
10.2 Write a Matlab program to one dimensional heat conduction equation after 200 days.
Problem
Generate an algebraic grid about the upper surface of the airfoil. Points are clustered in j
direction near the lower surface (using β=1.05 in algebraic grid). Make sure the number of
points in i and j are flexible.
As can be seen, Eq. (1) simply states that the x coordinate is the ξ coordinate, as there exists
no irregularities to alter that axis. The precise relationship in Eq. (2) is due to a required
clustering near the bottom surface. Here, β represents the clustering parameter, which is given,
and H represents the total height along the y axis. However, this does not account for the
geometry of the airfoil, wherein its top surface coordinate is a function of the distance along
the x axis. The exact equation is:
Here, y represents the max height of the airfoil, which would thus be the correspond to y=0 in
Eq.(2). Height is determined by subtracting this value from maximum height. This allows a
total expression for the grid y coordinative can be obtained. Note that the x used in Eq. (3)
assumes 0 at the nose of the airfoil and 1 at the tail. The previous equations effectively define
all that is needed to generate an algebraic grid. However, this grid will simply be used as a
starting point for the generation of an elliptic grid. Thus, once x and y are obtained
algebraically, they will be set as initial conditions for the x and y values used in order to perform
iterations of the developed finite difference equations.
Discussion of Results
Enter the number of grid points in i direction: 50
Enter the number of grid points in the j direction: 50
Algerbraic Grid
2
1.8
1.6
1.4
1.2
1
y
0.8
0.6
0.4
0.2
0
0 0.5 1 1.5 2 2.5 3
x
Figure shows the algebraic grid generation with the growth rate β=1.05 the grids are very fine
at y=0 and it gets coarser as the y increases.
The value of growth rate β can be varied and you can see the difference in the growth rate of
the grid.
Exercise problems:
11.1 Write a Matlab Program to generate algebraic grid over flat plate.
Problem
Starting with an algebraic grid, generate an elliptic grid about the upper surface of the airfoil.
Points are clustered in j direction near the lower surface (using β=1.05 in algebraic grid).
Make sure the number of points in i and j are flexible.
Using a predetermined algebraic grid, an elliptic grid can be generated in order to fine
tune the results for airfoil flow. Coding an algebraic grid necessitates an accounting for
the geometry of the airfoil, as well as clustering via appropriate equations. Once these issues
are addressed, partial differential equations can be utilized in order to generate an elliptic grid.
As can be seen, Eq. (1) simply states that the x coordinate is the ξ coordinate, as there
exists no irregularities to alter that axis. The precise relationship in Eq. (2) is due to a required
clustering near the bottom surface. Here, β represents the clustering parameter, which
is given, and H represents the total height along the y axis. However, this does not account
for the geometry of the airfoil, wherein its top surface coordinate is a function of the
distance along the x axis. The exact equation is:
Here, y represents the max height of the airfoil, which would thus be the correspond to y=0 in
Eq.(2). Height is determined by subtracting this value from maximum height. This allows
a total expression for the grid y coordinative can be obtained. Note that the x used in Eq.
(3) assumes 0 at the nose of the airfoil and 1 at the tail. The previous equations effectively
define all that is needed to generate an algebraic grid. However, this grid will simply be used
as a starting point for the generation of an elliptic grid. Thus, once x and y are obtained
algebraically, they will be set as initial conditions for the x and y values used in order
to perform iterations of the developed finite difference equations.
Two elliptic partial differential equations must be solved in order to fully define the
desired grid. In doing this, boundary conditions are required. For this case, x and y values
along the edges of the defined physical domain will be left in place. These being
predefined allows all interior coordinates to be developed. The following system of elliptic
partial differential equations can be used to define the domain:
Here, the subscripts denote second order derivative of that variable. Notice that these equations
do not express x and y as dependent variables. Rather, they are treated as the independent
variables, requiring a transformation. When such a mathematical transformation is preformed
Eqs. (4) And (5) become, respectively:
Where,
The previously stated equations must all be expressed in terms of finite differences. Once this
is done, x and y at each grid point can be found through iterations. Expanding Equation (8)
through (10) explicitly in central space yields:
Here, the superscript, n, indexes the iteration, where n is the current iteration and n+1 is
the following iteration. These equations are written this way due to the fact that points above
and to the right of the point being evaluated are unknown, and, thus, old values must be used.
The same procedure of finite differencing can be applied to Eqs. (6) and (7). However, results
from these will be of the same form; that is, only the terms x and y will be different.
Considering the expansion of Eq. (6) yields:
Considering,
This equation can then be explicitly solved for the value which is the
coordinate of interest. Doing so yields:
This formula can then be implemented through coding in order to find all values of x. The
formulation is exactly the same for the y value. Through code, multiple iterations will occur
until convergence is reached; that is, the desired x values will be found once the difference
between and is below tolerance and the desired y values will be found once
difference between and falls below said tolerance. These values, when plotted, should
produce an elliptic grid that can be utilized to determine flow within the domain containing the
airfoil.
VIVA QUESTIONS:
1. Define CFD?
2. What are the three major steps of CFD?
3. What are the governing equations of CFD?
4. What is meant by Discretization?
5. Which type of Discretization is used in CFD?
6. Difference between forward and backward differencing scheme?
7. What is Explicit method and Implicit method?
8. What is LAX method?
9. What is a stability criterion?
10. What is thermal diffusivity?
11. Define Grid?
12. Difference between Structured and Unstructured grid?
13. What is meant by Grid Independence study?
14. What is linspace command in MATLAB?
15. How to give titles to X and Y axis of a graph?
16. How to create Hybrid mesh in ICEM?
17. How to create structured grid in ICEM?
18. What is the importance of Body point in ICEM?
19. How to define material properties in CFX or FLUENT?
20. What is meant by convergence criteria?
21. How to define supersonic inlet conditions in CFX?
22. What is Grid adaption technique?
23. What is meant by parallel and serial processing?
24. In how many ways CFD results can be presented?
25. How to define formulas in CFD Post?
26. What are the causes for reverse flow or diverged flow during CFD iterations?
27. What are the relaxations factors in FLUENT?
28. What is courant number and how does it affects the solution?
29. What are the different types of turbulence models in CFD?
30. Difference between free slip and no-slip conditions?