Question: Text File Reading Problem In this problem, you will need to read in data from a text file called gregory _ re 2 . 8

Text File Reading Problem
In this problem, you will need to read in data from a text file called "gregory_re2.88M.txt".
This is real wind tunnel data from the famous NACA0012 NASA wind tunnel test series. Specifically, this is a test conducted at 10 degrees angle of attack.
The first column of data is normalized x location along the airfoil.
The second column of data is the calculated coefficient of pressure from lift and drag measurements.
The calculation for Cp is:
Cp=p-p12V
Extract the Cp data from the text file and use the above equation to find the actual pressure they measured.
Note that for the experiment the approximate constants were:
p=101325Pa
=1.225kgm3
V=51.3ms
In order to solve the problem you must:
Read the text data in a variable called data. Observe the output. Sometimes data is messy and will come with NaN values.
Exclude the NaN columns from data and save the data to a variable called fixedData.
Save the Cp data in a variable called Cp.
Implement the equation above to solve for the pressure, p. Save the calculated pressure data in a variable called p.
Text File Reading Problem In this problem, you

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!