Lab Manual
Lab Manual
Lab Manual
Laboratory Manual
IV YEAR B.TECH
(AERONAUTICAL ENGINEERING)
(AERONAUTICAL ENGINEERING)
The students must grasp following aspects while doing experiments in CAD lab as given
below.
Students will be in a position to grasp the above aspects while doing lab practicals as defined
in the manual through the following steps.
In Ansys FLUENT: Problem definition, Creating geometry, Mesh, Problem setup and
solution, Result.
This manual will need constant up gradation based on the student feedback and change in the
syllabus.
HOD PRINCIPAL
LAB CODE
1. Student should report to the concerned as per the time table.
2. Students who turn up late to the labs will in no case be permitted to the program
schedule for the day.
3. After completion of the program, certification of the concerned staff in-charge in
the observation book is necessary.
4. Student should bring a note book of 100 pages and should enter the
readings/observations into the note book while performing the experiment.
5. The record of observations along with the detailed experiments and the results of
the experiment in the immediate last session should be submitted and certified
staff member in-charge
6. Not more than 2 students in a group are permitted to perform the experiment on
the set.
7. The group-wise division made in the beginning should be adhered to and no mix
up of students among different groups will be permitted.
8. When the experiment is completed, should shut down the systems and arrange the
chairs properly
9. Any damage to the computer system or any missing of the equipment will be
viewed seriously either by putting penalty or by dismissing the total group of
students from the lab for the semester / year.
10. Students should be present in the labs for total scheduled duration.
11. Students are required to prepare thoroughly to perform the experiment before
coming to laboratory.
Outcome
Ability to generate Matlab code to analyze the behavior of the governing equations of
Aerodynamics.
Graduate able to write a Matlab code generate grid over an aerodynamic profiles like airfoils,
flat plate, cylinder etc.
Ability to analyze the internal and external aerodynamic properties over various aerodynamic
profiles.
The objective of the module is to study and analyze the internal and external aerodynamic
properties over various aerodynamic profiles using commercial software packages. To develop a
Matlab code to analyze the behavior of the governing equations of Aerodynamics,
Thermodynamics, Heat transfer, Aerospace Propulsion etc., and to generate different types of
the grids over an Aerodynamic profile.
Week1: To study and practice on introduction to Fluent software employed in Modeling And
Simulation of Aerodynamic Problems:
a) Provide a basic introduction to Ansys Fluent software.
b) Provide the introduction and basic understanding of Matlab software.
Week2: To study and analyze the characteristics of Laminar flow through a pipe.
Week3: To study and analyze the boundary layer over a Flat plate
Week 4: To study and analyze the characteristics of the supersonic flow over a wedge.
Week 5: To study and analyze the aerodynamics properties of flow past a cylinder
Week 6: To study and analyze the performance characteristics and aerodynamic properties of the
flow over an Airfoil.
Week 8: Write MATLAB code to analyze the behavior of 1D wave equation using explicit
method of Lax
Week 9: Write MATLAB code to analyze the behavior of 1D heat conduction equation using
explicit method.
Week 10: Write MATLAB code to generate the algebraic grid over an aerodynamic profile.
Week 11: Write MATLAB code to generate an elliptical grid over an aerodynamic profile.
Table of Contents
Experiment -1:
Introduction To Modelling And Simulation To Aerodynamic Problems 1
1.1 Viva Questions 4
Experiment - 2:
Laminar Flow Through Pipe 5
2.1 Viva Questions 12
Experiment - 3:
Flow Over A Flat Plate 13
3.1Viva Questions 20
Experiment 4:
Supersonic Flow Over A Wedge 21
4.1 Viva Questions 29
Experiment -5:
Flow Past Over A Cylinder 30
5.1Viva Questions 38
Experiment 6:
Flow Over An Airfoil 39
6.1 Viva Questions 46
Experiment -7:
Solution for the One Dimensional Wave Equation Using Explicit Method Of Lax - Code
Development. 47
7.1 Viva Questions 53
Experiment -8:
Solution For The One Dimensional Transient Heat Conduction Equation Using Explicit
Method (Code Development) 54
8.1 Viva Questions 59
Experiment 9:
Generation of The Algebraic Grids (Code Development) 60
9.1 Viva Questions 65
Experiment - 10:
Generation of the Elliptic Grids (CODE DEVELOPMENT) 66
10.1 Viva Questions 76
Definition: Model
A model is a mathematical object that has the ability to predict the behaviour of a real system
under a set of defined operating conditions and simplifying assumptions
WHAT IS MODELING?
Modelling is the process of producing a model.
A model is a representation of the construction and working of some system of
interest.
A model is similar to but simpler than the system it represents.
One purpose of a model is to enable the analyst to predict the effect of changes to the
system. Generally, a model intended for a simulation study is a mathematical model
developed with the help of simulation software.
Mathematical model classifications include
Deterministic (input and output variables are fixed values) or
Stochastic (at least one of the input or output variables is probabilistic);
Static (time is not taken into account) or
Dynamic (time-varying interactions among variables are taken into account).
Typically, simulation models are stochastic and dynamic.
Definition: Simulation
Simulation is the process of exercising a model for a particular instantiation of the system and
specific set of inputs in order to predict the system response.
Simulation refers to the procedure of solving the equations that resulted from model
development
WHAT IS SIMULATION?
A simulation of a system is the operation of a model of the system.
The operation of the model can be studied, and hence, properties concerning the
behaviour of the actual system or its subsystem can be inferred.
In its broadest sense, simulation is a tool to evaluate the performance of a system, existing
or proposed, under different configurations of interest and over long periods of real time.
Simulation is used before an existing system is altered or a new system built, to
Reduce the chances of failure to meet specifications.
Eliminate unforeseen bottlenecks.
prevent under or over-utilization of resources,
Optimize system performance.
The steps involved in developing a simulation model, designing a simulation experiment, and
performing simulation analysis are:
Step-1 Identify the problem.
Step-2 Formulate the problem.
Step-3 Collect and process real system data.
Step-4 Formulate and develop a model.
Step-5 Validate the model.
Step-6 Document model for future use.
Step-7 Select appropriate experimental design.
Step-8 Establish experimental conditions for runs.
Step-9 Perform simulation runs.
Step-10 Interpret and present results.
Step-11 Recommend further course of action.
2. What are the steps followed in Ansys Fluent to solve the problems
The steps to be followed are as follows
Problem definition
Creating the geometry and domain
Meshing the geometry
Problem setup in fluent and solution
Result Analysis
3. What is the main difference between the Ansys Fluent and Ansys CFX
The ANSYS CFX solver uses finite elements (cell vertex numeric), similar to
those used in mechanical analysis, to discretize the domain. In contrast, the
ANSYS FLUENT solver uses finite volumes (cell centred numerics).
4. What is a Matlab
MATLAB is a high-performance language for technical computing. It integrates
computation, visualization, and programming in an easy-to-use environment
where problems and solutions are expressed in familiar mathematical notation
DESCRIPTION: Consider a pipe of 0.2m diameter and length of 8m with the free stream
velocity of 1m/s. The fluid exhausts into the ambient atmosphere which is at a pressure of 1
atm. Take density = 1 kg/ m3 and coefficient of viscosity = 2 x 10-3 kg/ (ms).
PROCEDURE:
Start ANSYS FLUENT
Start> All Programs> Ansys 12.1> Workbench
Double click on Fluid Flow (FLUENT) Project Selection
Creating Geometry:
In the Project Schematic of the Workbench window, right click on Geometry and
select Properties,
Under Advance Geometry Options, change the Analysis Type to 2D as shown in the
image below.
Launch Design Modeller
In the Project Schematic, double click on Geometry to start preparing the geometry. Use
the default meter unit and click OK.
Creating a Sketch
Start by creating a sketch on the XY Plane. Under Tree Outline, select XY Plane and
then click on Sketching right before Details View.
In the Sketching toolboxes, select Rectangle. In the Graphics window, create a rough
rectangle by clicking once on the origin and then by clicking once somewhere in the positive
XY plane.
Dimensions
Under Sketching Toolboxes, select Dimensions tab,
Under the Details View table (located in the lower left corner), set V1=0.5m and set H2=8m
Surface Body Creation
In order to create the surface body, first (Click) Concept > Surface From Sketches
This will create a new surface SurfaceSK1. Under Details View, select Sketch1 as Base
Objects. Finally, click Generate to generate the surface.
At this point, you can close the Design Modeller and go back to Workbench Project
Page. Save your work thus far in the Workbench Project Page.
Creating Mesh:
Default Mesh
In this section the default mesh will be generated. In order to generate the default mesh first
click on Mesh, then click on Update
Mapped Face Meshing
In order to incorporate this meshing style (Click) Mesh Control > Mapped Face
Meshing
Now, first click on the surface body (filled rectangle), which should then highlight green.
Next, (Click) Apply in the Details of Mapped Face Meshing table.
Now, generate the mesh by clicking Update.
Edge Sizing
First,(Click) Mesh Control > Sizing as shown below.
Now, the geometry and the number of divisions need to be specified. First (Click) Edge
Selection Filter, . Then hold down the "Control" button and then click the bottom and
top edge of the rectangle. Both sides should highlight green. Next, apply under the Details
of Sizing table as shown below.
Now, set Type to Number of Divisions and Number of Divisions to 400.
Next, set the Behaviour to Hard.
Follow the same procedure as for the edge sizing in the x direction, starting first by
selecting (Click) Mesh Control > Sizing. Select only the left side instead of the top and
bottom and set the number of divisions to 50. Remember to set the Behaviour to Hard.
Then, click Update to generate the mesh with the new specifications.
In order to create a named selection first (Click) Edge Selection Filter, . Then click
on the left side of the rectangle and it should highlight green. Next, right click the left side of
the rectangle and choose Create Named Selection. Enter "inlet" and click OK, as shown
below.
Now, create named selections for the remaining three sides and name them according to the
diagram
RESULT:
Graphics and animations select the required flow parameters in the contours
and vectors.
Save the contours of Velocity, Pressure, and Velocity vector.
Experiment - 2 RESULT
Laminar Pipe Flow
Case 1: Consider a
pipe of 0.2m diameter
and length of 8m.
The incoming fluid is
flowing with a
velocity of 0.05 m/s.
The density of the
fluid is 1 kg/m^3 and
the viscosity is 0.001
kg/ (m-s). The fluid
exhausts into the
ambient atmosphere
which is at a pressure Average of Wall Shear on wall: 0.00206983 [Pa]
of 1 atm.
Case 2: Consider a
pipe of 0.2m diameter
and length of 8m.
The incoming fluid is
flowing with a
velocity of 0.5 m/s.
The density of the
fluid is 1.2 kg/m^3
and the viscosity is
0.005 kg/ (m-s).The
fluid exhausts into
the ambient
atmosphere which is Average of Wall Shear on wall: 0.103855 [Pa]
at a pressure of 1 atm.
Case 3: Consider a
pipe of 0.2m diameter
and length of 8m.
The incoming fluid is
flowing with a
velocity of 1 m/s. The
density of the fluid is
1.225 kg/m^3 and the
viscosity is 0.0085
kg/ (m-s). The fluid
exhausts into the
ambient atmosphere
which is at a pressure Average of Wall Shear on wall: 0.353533 [Pa]
of 1 atm.
Case 4: Consider a
pipe of 0.2m diameter
and length of 8m.
The incoming fluid is
flowing with a
velocity of 0.01 m/s.
The density of the
fluid is 1.1 kg/m^3
and the viscosity is
0.019kg/ (m-s). The
fluid exhausts into
the ambient
atmosphere which is Average of Wall Shear on wall: 0.00784761 [Pa]
at a pressure of 1 atm.
Case 5: Consider a
pipe of 0.2m diameter
and length of 8m. .
The incoming fluid is
flowing with a
velocity of 0.007 m/s.
The density of the
fluid is 1.2 kg/m^3
and the viscosity is
0.0025 kg/ (m-s). The
fluid exhausts into
the ambient
atmosphere which is Average of Wall Shear on wall: 0.000722881 [Pa]
at a pressure of 1 atm.
Case 6: Consider a
pipe of 0.2m diameter
and length of 8m with
the free stream
velocity of 1m/s. The
fluid exhausts into
the ambient
atmosphere which is
at a pressure of 1 atm.
Take density = 1
kg/ m3 and coefficient
of viscosity = 2 x
10-3 kg/(ms).
PROCEDURE:
Start ANSYS FLUENT
Start> All Programs> Ansys 12.1> Workbench
Double click on Fluid Flow (FLUENT) Project Selection
Creating Geometry:
In the Project Schematic of the Workbench window, right click on Geometry and
select Properties,
Under Advance Geometry Options, change the Analysis Type to 2D as shown in the
image below.
Launch Design Modeller
In the Project Schematic, double click on Geometry to start preparing the geometry. Use
the default meter unit and click OK.
Creating a Sketch
Start by creating a sketch on the XY Plane. Under Tree Outline, select XY Plane and
then click on Sketching right before Details View.
In the Sketching toolboxes, select Rectangle. In the Graphics window, create a rough
rectangle by clicking once on the origin and then by clicking once somewhere in the positive
XY plane.
Dimensions
Under Sketching Toolboxes, select Dimensions tab,
Under the Details View table (located in the lower left corner), set V1=0.5m and set H2=1m
At this point, you can close the Design Modeler and go back to Workbench Project
Page. Save your work thus far in the Workbench Project Page.
Creating Mesh:
Default Mesh
In this section the default mesh will be generated. In order to generate the default mesh first
click on Mesh, then click on Update
Mapped Face Meshing
In order to incorporate this meshing style (Click) Mesh Control > Mapped Face
Meshing
Now, first click on the surface body (filled rectangle), which should then highlight green.
Next, apply in the Details of Mapped Face Meshing table.
Now, generate the mesh by clicking Update.
Edge Sizing
First, (Click) Mesh Control > Sizing as shown below.
Now, the geometry and the number of divisions need to be specified. First (Click) Edge
Selection Filter, Then hold down the "Control" button and then click the bottom and
top edge of the rectangle. Both sides should highlight green. Next, apply under the Details
of Sizing table as shown below.
Now, set Type to Number of Divisions and Number of Divisions to 50.
Next, set the Behaviour to Hard.
Follow the same procedure as for the edge sizing in the x direction, starting first by
selecting (Click) Mesh Control > Sizing. Select only the left side instead of the top and
bottom and set the number of divisions to 60. Remember to set the Behaviour to Hard.
Then, click Update to generate the mesh with the new specifications.
Edge Sizing Biasing
First, click on Edge Sizing 2, then click on Bias Type and set it to the first option
Next, set the Bias Factor to 70 as shown below. The Bias Factor is defined in this case to
be the ratio of the longest division and the shortest division.
Repeat the same procedure for right hand side of the geometry
In order to create a named selection first (Click) Edge Selection Filter, . Then click
on the left side of the rectangle and it should highlight green. Next, right click the left side of
the rectangle and choose Create Named Selection. Enter "inlet" and click OK, as shown
below.
Now, create named selections for the remaining three sides and name them according to the
diagram
Save, Exit & Update
First save the project. Next, close the Masher window. Then, go to the Workbench Project
Experiment 3
RESULTS
Flat Plate Boundary Layer
Case 1: Consider a Flat
plate of length 1m. The
incoming fluid is flowing
with a velocity of 0.05
m/s. The density of the
fluid is 1 kg/m^3 and the
viscosity is 0.001 kg/ (m-
s). The plate is an
stationary solid wall
having no slip as its
Average of Wall Shear on flat plate: 0.0018325 [Pa]
boundary condition
Case 2: Consider a Flat
plate of length 1m. The
incoming fluid is flowing
with a velocity of 0.5 m/s.
The density of the fluid is
1.2 kg/m^3 and the
viscosity is 0.005 kg/ (m-
s). The plate is an
stationary solid wall
having no slip as its Average of Wall Shear on flat plate: 0.0934146 [Pa]
boundary condition
Case 3: Consider a Flat
plate of length 1m. The
incoming fluid is flowing
with a velocity of 1 m/s.
The density of the fluid is
1.225 kg/m^3 and the
viscosity is 0.0085 kg/ (m-
s). The plate is an
stationary solid wall
having no slip as its
boundary condition
Average of Wall Shear on flat plate: 0.225802 [Pa]
3.1Viva Questions
1. What do you mean by no-slip boundary condition
No-slip boundary condition is generally applied at the walls if the fluid flow is
viscous in nature; it means that velocity of the fluid at the wall is zero
DESCRIPTION:
Consider air flowing over wedge. The free stream Mach number is 3 and the angle of attack
is 15. Assume standard sea-level values for the free stream properties:
PROCEDURE:
Open ANSYS Workbench
Geometry
Right click the Geometry box and select Properties. Under Advance Geometry
Options change Analysis Type from 3D to 2D.
Sketching
Click on the Sketching tab and Click on Rectangle in the Sketching Toolboxes window and
draw the rectangle.
Select the line tool in the Sketching Toolboxes window and draw the wedge outline in the
geometry.
In the Sketching Toolboxes window, click the Modify tab, and select trim. Next, trim the
lines that are not needed.
Dimensions
In the Sketching Toolboxes window, select the Dimensions tab. Next, select the general
dimensioning tool and give dimension for horizontal and vertical lines.
In order to add magnitudes to the dimensions in the Details window specify the dimensions
as shown in figure below.
Create Surface
Select Concept > Surface from Sketches. In the graphics window, select all the lines of the
geometry next in Base Objects > Apply. Finally, press Generate. The geometry should now
look like the figure below.
Now we have completed the geometry. Save the project, and close the Design Modeler.
Meshing:
In the Project Schematic window, double click the Mesh box to launch the mesher.
In order to get regular mesh, select Mesh Control > Mapped Face Meshing. In
the Graphics window select Geometry > Apply.
In the Mesh Menu, select Mesh Control > Sizing. Next, select the left edge click on apply and
in details widow changes type to number of divisions and give it as 100, and set behaviour as
hard.
Repeat the same process for top eged and give number of divisions as 90.
Repeat the same process for bottom edge and give number of division as 30 for symmetry
and 60 for wedge
Named Selections
To create named selections right click on the edge and select Create Named Selection.
A dialogue box will appear where you will enter the desired name of the boundary.
Left edge: Inlet Right edge: Outlet Top edge: far field Bottom edge: symmetry
and wedge
Once the selections are all named and the mesh is created, update the project save the project
and you may close the Mesher.
Problem setup:
GeneralType as: Density based
ModelsEnergy ON Select Viscous-laminarEditSet model as: Inviscid
MaterialsAirCreate/EditSet density as: Ideal-gas Change
Cell zone conditions Type as: fluidSet operating conditionsSet
operating pressure as: 0Pa
Boundary conditionsSelect inletGive type as: pressure-far-
fieldEditGive Gauge pressure as: 101325PaSet Mach as: 3ok
Repeat the same Boundary conditions for outlet and far field
Boundary conditionsSelect symmetryGive symmetry
Boundary conditionsSelect wedgeGive wall
Solution:
Select Solution ControlsSet Courant number as: 0.5
Select the monitors and change convergence criteria to 10^-5.
Solution initializationCompute from: inletInitialize
Run calculationsEnter the no. of iterations as: 1000Calculate
RESULTS:
Graphics and animations select the required flow parameters in the contours
and vectors.
Save the contours of Velocity (Mach number), Pressure, Temperature and
Velocity vector.
PROCEDURE:
Solution Domain
For an external flow problem like this, one needs to determine where to place the outer
boundary. A circular domain will be used for this simulation. The effects that the cylinder has
on the flow extend far. Thus, the outer boundary will be set to be 40 times as large as the
diameter of the cylinder. That is, the outer boundary will be a circle with a diameter of 64 m.
Geometry:
Right click the Geometry box and select Properties. Under Advance Geometry
Options change Analysis Type from 3D to 2D.
Select Meter as the standard unit, and click OK.
Launch Design Modeller (Double Click) Geometry
Create Inner Circle and Dimension
Create a circle, centred at the origin in the xy plane. Set the diameter of the circle to 1m.
Inner Circle Surface Body Creation Concept > Surfaces from Sketches.
Set the Base Object to Sketch 1 Then click Apply next to Base Object.
Click Generate
Create New Sketch in the XY Plane click on the New Sketch button, .
Create Outer Circle and Dimension
Set the diameter of the circle to 64m.
Outer Circle Surface Body Creation. Concept > Surfaces From Sketches.
Set the Base Object to Sketch 2 Then click Apply next to Base Object.
Then set Operation to Add Frozen
Then, click Generate
Carry Out Boolean Operation: Subtraction
Create > Boolean. First, set Operation to Subtract.
Select outer circle surface body as the Target Body and the inner circle surface body as
the Tool Body. Lastly, click Generate
Create a Bisecting Line
Click on XY Plane Then, click the new sketch button, .
In the new sketch draw a line on the y axis that goes through both of the concentric circles.
Then trim the line segments that lay inside of the inner circle and the line segments that lay
outside of the outer circle.
Line Body Creation
Concept > Lines from Sketches.
Set the Base Object to Sketch 3. Click Generate
Projection Tools > Projection.
Apply the two lines that you created to edge and apply the surface body to target.
Click Generate.
Save Project and Close Design Modeler
Mesh generation:
Launch Mesher (Double Click) Mesh
Generate the mesh by going to Mesh > Generate Mesh
In order to get regular mesh, select Mesh Control > Mapped Face Meshing.
Set Geometry to both portions of the surface body. Click Update.
Named Selections
To create named selections right click on the edge and select Create Named Selection.
A dialogue box will appear where you will enter the desired name of the boundary.
Name all of the boundaries of the geometry as given below:
Left edge of domain: Inlet
Right edge of domain: Outlet
Both edges of cylinder: cylinder
Once the selections are all named and the mesh is created, update the project save the project
and you may close the masher.
RESULT:
Graphics and animations select the required flow parameters in the contours
and vectors.
Save the contours of Velocity, Pressure, Streamlines, Velocity (vorticity) and
Velocity vector.
Coefficient of drag, Cd=2.744
Experiment 5
RESULTS
Flow Past a Cylinder
Case 1: Consider a
cylinder of 1m radius. The
free stream velocity
considered 1m/s. The
properties of air is
=1kg/m3 and dynamic
viscosity is 0.05 kg/m*s.
Cd=2.744
Case 2: Consider a
cylinder of 1m radius. The
free stream velocity
considered 5m/s. The
properties of air is
=1.2kg/m3 and dynamic
viscosity is 0.05 kg/m*s.
Cd= 1.034
Case 3: Consider a
cylinder of 1m radius. The
free stream velocity
considered 8m/s. The
properties of air is
=1.3kg/m3 and dynamic
viscosity is 0.08 kg/m*s.
Cd= 2.807
Case 4: Consider a
cylinder of 1m radius. The
free stream velocity
considered 12m/s. The
properties of air is
=1.0kg/m3 and dynamic
viscosity is 0.10 kg/m*s.
Cd=4.965
Case 5: Consider a
cylinder of 1m radius. The
free stream velocity
considered 15m/s. The
properties of air is
=1.1kg/m3 and dynamic
viscosity is 0.12 kg/m*s.
Cd=8.240
Case 6: Consider a
cylinder of 1m radius. The
free stream velocity
considered 45m/s. The
properties of air is
=1.0kg/m3 and dynamic
viscosity is 0.05 kg/m*s.
Cd=0.8676
5.1Viva Questions
1. What type of the boundary condition is applied on the cylinder
The wall boundary condition is applied on the cylinder
3. What type of domain will be suitable to generate structured grid over a cylinder
Circular domain will be more suitable to generate structured grid over a cylinder
DESCRIPTION: Consider a NACA 0012 Airfoil. The free stream velocity considered
80m/s. The properties of air is =1kg/m3 and dynamic viscosity is 0.05 kg/m*s.
PROCEDURE:
Geometry:
Download the Airfoil Coordinates
In this step, we will import the coordinates of the airfoil and create the geometry we will use
for the simulation. This file contains the points of a NACA 0012 airfoil.
Open ANSYS Workbench
Right click the Geometry box and select Properties. Under Advance Geometry
Options change Analysis Type from 3D to 2D.
Select Meter as the standard unit, and click OK.
Launch Design Modeler (Double Click) Geometry
Airfoil
Concept > 3D Curve. In the Details View window, click Coordinates File and select the
ellipsis to browse to a file. Once you have selected the desired geometry file, click Generate
to create the curve.
Concept > Surfaces From edges.
Set the Base Object to airfoil edge then click Apply next to Base Object.
Click Generate
Domain
Create New Sketch in the XY Plane click on the New Sketch button, .
In sketching select polygon and set n=4 (for square) and generate square from the origin and
give to dimension to it as 40m.
MESH GENERATION:
Launch Mesher (Double Click) Mesh
Generate the mesh by going to Mesh > Generate Mesh
In mesh details > sizing > relevance center = fine, growth rate = 1.05
In mesh details > inflation > growth rate = 1.05
In the Mesh Menu, select Mesh Control > Sizing. Next, select Airfoil edge click on apply
and in details widow changes type to number of divisions and give it as 500, and set
behaviour as hard.
Now go to Mesh > Generate Mesh.
You should get the mesh as shown in figure below
Named Selections
To create named selections right click on the edge and select Create Named Selection.
A dialogue box will appear where you will enter the desired name of the boundary.
Name all of the boundaries of the geometry as given below:
RESULT:
Graphics and animations select the required flow parameters in the contours
and vectors.
Save the contours of Velocity, Pressure, Streamlines, Velocity (vorticity) and
Velocity vector.
At 4 degrees angle, Cd=0.09979 and Cl=0.1777
Case 2: Consider a
NACA 0012
Airfoil. The free
stream velocity
considered 80m/s.
The properties of
air is =1kg/m3 and
dynamic viscosity is
0.05 kg/m*s.
AoA=20
Cl= 0.066 Cd = 0.1026
Case 3: Consider a
NACA 0012
Airfoil. The free
stream velocity
considered 80m/s.
The properties of
air is =1kg/m3 and
dynamic viscosity is
0.05 kg/m*s. AoA=
60
Case 4: Consider a
NACA 0012
Airfoil. The free
stream velocity
considered 80m/s.
The properties of
air is =1kg/m3 and
dynamic viscosity is
0.05 kg/m*s. AoA
= 80
Case 5: Consider a
NACA 0012
Airfoil. The free
stream velocity
considered 80m/s.
The properties of
air is =1kg/m3 and
dynamic viscosity is
0.05 kg/m*s.
AoA=100
Consider a NACA
0012 Airfoil. The
free stream velocity
considered 80m/s.
The properties of
air is =1kg/m3 and
dynamic viscosity is
0.05 kg/m*s.
2. In fluent simulation to vary the angle of attack what changes should be made in
boundary condition
To change the angle of attack (), at the velocity inlet boundary the velocity
component should be changed.
That is the X- component = V* Cos () and the Y-component = V*Sin ()
Only produces the lift at positive angle Can also produce the lift at zero angle of
of attack attack
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 <
0. The spatial domain can vary from - to .
Numerical Solution
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,
Solve the one dimensional wave equation in the spatial domain of [0, 2*pi] with an initial
step function condition given by
U0(x,0) = 1 for x pi-1
= 0 otherwise
Choose 100 grid points with and find the wave form at t = 0.2 s.
% Solves the one dimensional scalar wave equation du/dt + du/dx = 0 [0,2*pi]
% Using LAX METHOD
clc;
clear;
t0 = 0; tf = 1;
M = 100; % number of points in x direction
N = 100; % number of points in y direction
% 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:
0.5
u
-0.5
0 1 2 3 4 5 6
x
velocity (u)
0.5
U0(x,0) = 1 for x 5
= 0 otherwise
Choose 100 grid points and find the 0
wave form at t = 10 s.
-0.5
0 5 10 15 20 25 30 35 40 45 50
direction (x)
= 0 otherwise
0.5
Choose 200 grid points and find the
wave form at t = 5 s.
0
-0.5
0 2 4 6 8 10 12 14 16 18 20
direction (x)
condition given by 2
U0(x,0) = 3 for x 35 1
velocity (u)
= -2 otherwise 0
Choose 200 grid points and find the
-1
wave form at t = 90 s.
-2
-3
-4
-5
0 10 20 30 40 50 60 70 80 90 100
direction (x)
velocity (u)
= -2 otherwise
1
Choose 150 grid points and find the
wave form at t = 60 s. 0
-1
-2
-3
0 50 100 150
direction (x)
Test Case 5
2
Solve the one dimensional wave
equation in the spatial domain of [0,
1.5
3*pi] with an initial step function
condition given by
1
U0(x,0) = 2 for x pi
= -1 otherwise
0.5
Choose 100 grid points and find the
wave form at t = 30s. 0
-0.5
-1
0 1 2 3 4 5 6 7 8 9 10
-0.5
0 1 2 3 4 5 6
x
2. How many boundary conditions and initial conditions are required to solve 1D wave
equation
Zero boundary condition and only one initial condition is required to solve 1D
Wave equation
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
We then have
i.e., (2)
Where,
Equation (2) is the final explicit update equation for the one dimensional transient heat
conduction equation.
750
700
650
Temperature [oC]
600
550
500
450
400
350
300
-50 -40 -30 -20 -10 0 10 20 30 40 50
x [m]
Temperature [oC]
conditions are temperatures of 30oC 70
Temperature [oC]
80
600
conditions are temperatures of
550
300oC and 1200oC for the rock and
500
dike respectively. Boundary
conditions at x = -L/2 and x = L/2 450
2. How many boundary conditions and initial conditions are required to solve 1D Heat
Conduction Equation
To solve 1D Heat conduction equation one Initial condition and two boundary
conditions will be required
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.
MATLAB code for Algebraic Grid Generation
alpha=zeta/gamma;
for i=1:n
for j=1:m
chi=1-eta(j);
y(i,j)=H(i)*(zeta-gamma*alpha^chi)/(alpha^chi+1)+ybottom(i);
x(i,j)=X(i);
end
end
surface(x,y,z);
xlabel ('x');
ylabel ('y');
title ('Algerbraic Grid');
RESULTS:
Enter the number of grid points in the 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: Algebraic grid generated over the NACA 0015 airfoil (=1.05)
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.
1.8
Test Case 1 1.6
Generate an algebraic
1.4
grid about the upper
surface of the NACA 1.2
y
clustered in j direction 0.8
near the lower surface
(using =1.05 in 0.6
0
0 0.5 1 1.5 2 2.5 3
x
Algerbraic Grid
2
1.8
Test Case 2
Generate an algebraic 1.6
clustered in j direction
near the lower surface 0.8
0
0 0.5 1 1.5 2 2.5 3
x
Algerbraic Grid
2
clustered in j direction
near the lower surface 0.8
0
0 0.5 1 1.5 2 2.5 3
x
Algerbraic Grid
2
1.8
y
0015 airfoil. Points are
clustered in j direction 0.8
0
0 0.5 1 1.5 2 2.5 3
x
Algerbraic Grid
2
1.8
Test Case 5
Generate an algebraic 1.6
clustered in j direction
near the lower surface 0.8
0
0 0.5 1 1.5 2 2.5 3
x
Algerbraic Grid
2
1.8
Test Case 6
Generate an algebraic 1.6
0
0 0.5 1 1.5 2 2.5 3
x
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:
Similarly,
Considering the expansion of Eq.(7) and solving it for value of :
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 the
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.
zeta=beta+1;
gamma=beta-1;
alpha=zeta/gamma;
for i=1:n
for j=1:m
chi=1-eta(j);
y(i,j)=H(i)*(zeta-gamma*alpha^chi)/(alpha^chi+1)+ybottom(i);
x(i,j)=X(i);
end
end
c=c1^2+c2^2;
b=a1*c1+a2*c2;
alpha=a/delta_xi^2;
beta=-2*b/(4*delta_xi*delta_eta);
gamma=c/delta_eta^2;
theta=1/(2*alpha+2*gamma);
phi_1=beta*(xold(i+1,j+1)-xold(i+1,j-1)-xold(i-1,j+1)+x(i-1,j-1));
x(i,j)=theta*(alpha*(xold(i+1,j)+x(i-1,j))+gamma*(xold(i,j+1)+x(i,j-1))+phi_1);
xdiff=x(i,j)-xold(i,j)+xdiff;
phi_2=beta*(yold(i+1,j+1)-yold(i+1,j-1)-yold(i-1,j+1)+y(i-1,j-1));
y(i,j)=theta*(alpha*(yold(i+1,j)+y(i-1,j))+gamma*(yold(i,j+1)+y(i,j-1))+phi_2);
ydiff=y(i,j)-yold(i,j)+ydiff;
end
end
dx=xdiff;
dy=ydiff;
xdiff=0;
ydiff=0;
xold=x;
yold=y;
count=count+1;
end
fprintf('The solution took %i iterations to converge. \n \n', count);
surface(x,y,z);
xlabel ('x');
ylabel ('y');
title ('Elliptic grid over an Airfoil');
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: Elliptic grid generated over the NACA 0015 airfoil (=1.05)
Overall, an elliptic grid was shown to provide desired results for discretization. It succeeded
in smoothing out otherwise rough edges created through algebraic grid generation. At the
same time, the algebraic grid provided a suitable starting point for the generation of the
elliptic grid.
y
0015 airfoil. Points are
clustered in j direction 0.8
y
0030 airfoil. Points are
clustered in j direction 0.8
0
0 0.5 1 1.5 2 2.5 3
x
Table of Contents
Experiment -1: INTRODUCTION TO MODELLING AND SIMULATION TO AERODYNAMIC
PROBLEMS............................................................................................................................................ 1
Experiment -7: SOLUTION FOR THE ONE DIMENSIONAL WAVE EQUATION USING
EXPLICIT METHOD OF LAX - CODE DEVELOPMENT. .............................................................. 47
Experiment -8: SOLUTION FOR THE ONE DIMENSIONAL TRANSIENT HEAT CONDUCTION
EQUATION USING EXPLICIT METHOD (CODE DEVELOPMENT) ........................................... 54