Project_2_standard atmosphere (1)

pdf

School

North Carolina State University *

*We aren’t endorsed by this school

Course

251

Subject

Aerospace Engineering

Date

Oct 30, 2023

Type

pdf

Pages

2

Uploaded by GeneralElectron12165

Report
1 MAE 251, Aerospace Vehicle Performance- Project 2 Due: 5 November 23:45 ( not 23:55 ) , submit on Matlab Grader and Moodle 1. Enroll in the Matlab Grader system for the MAE 251 course by accepting the invitation from the instructor. This invitation might have gone to your spam folder. This is required. Without Grader, you will not be able to complete this assignment. This will come out in the near future and I ll give an update when available. 2. Write a Matlab function to calculate atmospheric properties at any given set of altitudes (either geometric or geopotential). Your function should conform to the following: function [h, hG, T, p, rho, a_inf, mu] = simple_atmos(h, option) where the inputs are ‘option’, which has to be a single number, either 0 or 1, with 0 to be used for geometric and 1 for geopotential ‘h’, is a column vector containing the altitudes in meters at which the atmospheric properties are to be calculated. Your program should work for 0 m < (h or h g ) < 100,000. Let us assume that the input ‘h’ has N numbers in a column. So ‘h’ is of size Nx1. The outputs are seven column vectors of size Nx1 each: (1) geopotential altitude , h, in m, (2) geometric altitude, hG, in m, (3) temperature, T, in K, (4) pressure, p, in N/m 2 , (5) density, rho, in kg/m 3 , (6) speed of sound, a_inf, in m/s, and (7) coefficient of dynamic viscosity, mu, in SI units The temperature distribution (given in Figure 3.4 in the book) and sea-level properties of p s = 1.01325 x 10 5 N/m 2 , ρ s = 1.2250 kg/m 3 , and T s = 288.16 K. Use g 0 = 9.80665 m/s 2 and radius of earth, r = 6.356766 x 10 6 m are provided in the template code. Values for other constants are also given in the template code. Your submission for this problem will be the program submitted through Grader, which will allow you to test your code by comparing results from your code with the results for the instructor’s code for several test cases. Grader notes: a. Use the Matlab template code provided by the instructor and develop your Matlab code on your computer (outside the Grader environment). b. NOTE: Although you are allowed to change any portion of the code [except the function definition given by “function [h, hG, T, p, rho, a_inf, mu] = simple_atmos(h, option)” ], you only really need to replace the portions marked using “%%%%%%% WRITE YOUR OWN CODE %%%%%%%%%” With your own code. You don’t need to change other portions of the code.
2 c. Once you have a code that is working, paste the code into the space in Grader for this programming problem. Grader will now allow you to run some open test cases using the “Run Pretest” button. You may use the “Run Pretest” button any number of times to te st your code against the instructor’s code. The test results will show you results from your code and compare them with results from the instructor’s code. You may modify your code and keep testing until you are satisfied. d. Once you are satisfied, you can h it the “Submit” button to submit your code. At this time, Grader will check your code against the instructor’s code for some hidden test cases, and will tell you whether or not your code passes these tests. You have an unlimited number of submissions for this assignment. Keep modifying and submitting until you pass all the open and hidden tests. e. Copy your final code from Grader into your computer and save for future use in this project and later during this semester. f. Once you pass the Grader tests and submission, you are done with Problems 1 and 2. In a future assignment, we may use your code for other calculations. Note: Each student is expected to develop his/her program independently. You may help or get help with debugging, but the essential structure of the program and implementation should be your own. Lately, instructors have been detecting instances of cheating in programming assignments. This is not acceptable. If a program is seen to have a significant amount of commonality with another student's code, then both students will receive a zero in this project. To check for significant commonality, I will be using the MOSS system for detecting software plagiarism. Every submitted program will be compared with every other program from this project.
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help

Browse Popular Homework Q&A

Q: Alan is walking. D (t), given below, is his distance in kilometers from Newbury Heights after t…
Q: In moving from 0.4 mg/L to 0.7 mg/L of abatement, show and clearly label on the figure above the…
Q: Which of the following regulatory events in the 20th century potentially influenced the financial…
Q: Inflammation of the ________________ may hinder one's ability to empty their bladder.     prostate…
Q: Consider the reaction: 1/2N₂(g) + O₂(g) ⇒ NO₂ (g) Write the equilibrium constant for this reaction…
Q: The following is a proposed mechanism for the gas phase decomposition of nitryl chloride. step 1…
Q: A gas phase reaction between nitrogen dioxide and fluorine is proposed to occur by the following…
Q: Hi, could someone help me draw the products of these figures of SN2 reactions with 1-bromobutane?…
Q: Put Chief Joseph in context by starting off your post with some biographical information about him…
Q: Consider the following one-dimensional dataset. Each example is described by one numerical feature x…
Q: An 8 kg sled is at rest on a horizontal road. The coefficient of kinetic friction between the sled…
Q: Question Find the absolute maximum and absolute minimum of the function f(x) = 2 sin (x) cos (x)…
Q: Locate the centroid of the shaded area. Express your answer to three significant figures and include…
Q: 10. For a 10 Mbps data link using 12,000-bit frames, and assuming that electrical signals propagate…
Q: Use Green's Theorem to find the outward flux for the field F and curve C. counterclockwise…
Q: Sorry, i should have clarified that this is to be in c++ format.
Q: Consider Normal Distribution with Mean = 187 and Standard Deviation = 15 Solve for the value of T…
Q: In Python, grades_dict = {'Wally': [87,96,70],                'Eva': [100,87,90],…
Q: The volume of a cone with radius rr and height hh is given by the formula V=1/3πr2h A cone-shaped…
Q: A harmonic wave is traveling along a rope. The oscillator that generates the wave com- pletes 47.0…
Q: 1. 7. 3 Br
Q: Generate and upload a PDA in JFF format for the following grammar: Hint: get a regx with constraints…