ME (166 HW 7

.pdf
School
University of California, Berkeley**We aren't endorsed by this school
Course
ME C166
Subject
Mechanical Engineering
Date
Dec 19, 2024
Pages
2
Uploaded by BailiffKangarooPerson2294
ME Clbo hw 7 Saturday, November 16,2024 3:59 PM The Varwhn acmes o pomal Spcke wiile He Mach & merages fane | do |3 Sy how Songitve 441 henssarx W7wu Q uhuunifdbvt e [rr”"’flit HWY SW-\[‘ W‘:)( M'l*“- Aube. m" §6 o 22— (M-I dpomtsut Yemrmak mcM? "‘f‘bs Whon. E LR (‘ 2r WY 22 . Hfi He .r}ant J[Lou bt Gests huse aonss nowal Sy FrH) 3(qp bl phect fn Mach OF 4 (2 0 beped . Meh | = Meoch 1.3 'fi:“e flfid Vaua U & e -é‘ incromeals of 0.02 fiyf)a.b Matlh &c &t & Gofom fo /1{“/(67— Hie o Air valoeg: v =14 69'4 Al A M ol oo R = 287 3/eg-k) 7’;\‘,,)-.. \ewé—(ui'-m'ku. unur -4[(?‘; A.,,__A Ce flotb vory A4 Wiote a seript h MATLAS 1o dabulafy onbopy incrawe.- Y OpPY +l2 ] untitled.m 3 me136lab3test.m | TextDataReader.m ! ME136HW6EP1.m » me139lab4d.m i ME139HW5.m [ MEC : ; 2 3 % Constants for air - gamma = 1.4; 5 6 % Mach number range 7 mach_numbers = 1:9.02:1.3; 8 9 10 entropy_increase = zeros(size(mach_numbers)); 11 12 % Equation for entropy increase (s2 - sl1)/R 13 [ for i = 1:length(mach_numbers) 14 M1 = mach_numbers(i); 15 entropy_increase(i) = (2 * gamma / (3 * (gamma + 1)72)) * (M1”2 - 1)"3; 16 L end 17 18 % Create and display a table of results 19 results_table = table(mach_numbers', entropy_increase', ... 20 'VariableNames', {'Mach_Number', 'Entropy_Increase_s2 sl R'}); 21 22 disp('Entropy Increase Across Normal Shock:'); 23 disp(results_table); 24 | New Section 1 Page 1
Background image
Command Window >> entropy increases Entropy Increase Across Normal Shock (Tabulated Results): Mach Number Entropy Increase_s2 sl R 1 0 1.02 1.0685e-05 1.04 8.8041e-05 1.06 0.0003059¢6 1.08 0.00074658 1.1 0.0015006 1.12 0.0026679 1.14 0.0043575 1.16 0.0066886 1.18 0.0097904 1.2 0.013803 1.22 0.018877 1.24 0.025176 1.26 0.032875 1.28 0.042159 1.3 0.053231 Jx>> | ) 3 it (] . Lo B Misw’B -1 & M, suf T A 14 APt e = J r BASah™? 5 e = 7/1_ £ % Msm¥ _J—’yt‘ T, 2 .2 2 *a7 ¥-i g anier T 3 b lr-Qule? j— o ¢/ %’-?[r/'—f;'g)’ ”'/""h'/ yZ Y- y ¥ _ 2{uls's-0) h M nlp) s 3 & (ye)m! v (rei)M! 2.t lade M:mfll te M3 M, Sup-| =M/ A M‘ ! (\fl" . 20} 5. % Bl IR 77 P 2th ‘I - = )M. vl < "Q__ ;z&rT— v HM, (rei)m} ] el 295 ] P 20 micl 7'-.. ;'-M,S" Y4 L R AR L 21(r-n Y T, (ra) 251’8 o\, akk e o 2 »Yots Yei Y+ New Section 1 Page 2
Background image