Docsity

Engineering Computing: Linear Interpolation of Lift Coefficient Data to Determine Drag, Assignments of Engineering

Toggle sidebar
bg1
Engr 0012: Introduction to Engineering Computing page 1 of 2
Spring Term, 2009
Programming Assignment 10 - Due Thursday April 9
Wind tunnels are used in the aviation industry to determine the functional characteristics of
accurately scaled models of aircraft before building full scale versions. One important functional
characteristic is the lift coefficient as a function of the angle of climb (flight path angle). A typical data
set from a wind tunnel is shown here. Mathematical models that describe
the aircraft behavior under various
circumstances are developed from data
such as this. This is the basis of flight
simulators that are used to train pilots
before they ever actually fly the plane.
Such models need to determine the
lift coefficient as a function of flight path
angle for angle values that lie between the
data points. One method of doing this is
linear interpolation. Given the x-
coordinate that lies between two known
data points (x1,y1) and (x2,y2), the
estimated y-coordinate is given by
y = y1 +(x-x1)(y2-y1)/(x2-x1)
which is obtained from straight-forward manipulation of the equation of a line.
The lift coefficient can be used to determine a drag potential by the following equation
drag = (lift coefficient)*sin(flight path angle)
Design a program that will do the following:
1. Read the file liftdata.dat (Take the data at the end of these to make the data file.) which contains
(flight path angle, lift coefficient) data pairs.
2. Use this data together with the above equation to compute the drag as a function of flight path
angle from -3 to 20 degrees in increments of 0.25 degrees (remember: the sin function argument
is radians, not degrees).
3. Write the (flight path angle, drag) data pairs to a file named out.dat
4. Import the out.dat file into Excel.
5. Create a graph of the drag vs flight path angle.
Hand in:
In a folder submit the .cpp file and the excel file.
-0.4
-0.2
0
0.2
0.4
0.6
0.8
1
1.2
-10 -5 0 5 10 15 20 25
Flight path angle, degrees
Lift coefficient
pf2

Partial preview of the text

Download Engineering Computing: Linear Interpolation of Lift Coefficient Data to Determine Drag and more Assignments Engineering in PDF only on Docsity!

Engr 0012: Introduction to Engineering Computing page 1 of 2 Spring Term, 2009

Programming Assignment 10 - Due Thursday April 9

Wind tunnels are used in the aviation industry to determine the functional characteristics of accurately scaled models of aircraft before building full scale versions. One important functional characteristic is the lift coefficient as a function of the angle of climb (flight path angle). A typical data set from a wind tunnel is shown here. Mathematical models that describe the aircraft behavior under various circumstances are developed from data such as this. This is the basis of flight simulators that are used to train pilots before they ever actually fly the plane. Such models need to determine the lift coefficient as a function of flight path angle for angle values that lie between the data points. One method of doing this is linear interpolation. Given the x- coordinate that lies between two known data points (x1,y1) and (x2,y2), the estimated y-coordinate is given by

y = y1 +(x-x1)(y2-y1)/(x2-x1)

which is obtained from straight-forward manipulation of the equation of a line.

The lift coefficient can be used to determine a drag potential by the following equation drag = (lift coefficient)*sin(flight path angle)

Design a program that will do the following:

  1. Read the file liftdata.dat (Take the data at the end of these to make the data file.) which contains (flight path angle, lift coefficient) data pairs.
  2. Use this data together with the above equation to compute the drag as a function of flight path angle from -3 to 20 degrees in increments of 0.25 degrees (remember: the sin function argument is radians, not degrees).
  3. Write the (flight path angle, drag) data pairs to a file named out.dat
  4. Import the out.dat file into Excel.
  5. Create a graph of the drag vs flight path angle.

Hand in :

In a folder submit the .cpp file and the excel file.

-0.

-0.

0

1

-10 -5 0 5 10 15 20 25

Flight path angle, degrees

Lift coefficient

Data file

  • Engr 0012: Introduction to Engineering Computing page 2 of
  • Spring Term,
  • -4.0 -0.
  • -2.0 -0.
    • 0.0 0.
    • 2.0 0.
    • 4.0 0.
    • 6.0 0.
    • 8.0 0.
  • 10.0 0.
  • 12.0 0.
  • 14.0 1.
  • 15.0 1.
  • 16.0 1.
  • 17.0 1.
  • 18.0 1.
  • 19.0 1.
  • 21.0 1.