MAE161R-HW#1-Sol

MAE161R-HW#1-Sol - 161R - Solutions HW #1 161R - Solutions...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: 161R - Solutions HW #1 161R - Solutions HW #1 161R - Solutions HW #1 161R - Solutions HW #1 161R - Solutions HW #1 161R - Solutions HW #1 161R - Solutions HW #1 161R - Solutions HW #1 30% increase 161R - Solutions HW #1 161R - Solutions HW #1 Ve 161R - Solutions HW #1 161R - Solutions HW #1 12 161R - Solutions HW #1 % MAE 150R Rocket Propulsion % Dr. Wirz % Prepared by Hann Mao % Problem 4 clear all clc close all % Unit m2ft sg2kg ft32m3 Conversions = 3.2808399; % Meters to Feet = 14.5939029; % Slugs to kilogram = 35.3146667; % m^3 to ft^3 13 % Time Vector dt = 0.01; t = 0:dt:200; % V % a Velocity = -3920*log(1-(3/800)*t)-9.8*t; Acceleration = 14.7./(1-(3/800)*t)-9.8; % Position x = zeros(size(t)); x(1) = 0; for ii = 2:length(t) x(ii) = x(ii-1)+(V(ii-1)+V(ii))*dt/2; end % Dynamic Pressure ftx = x*m2ft; rho = zeros(size(t)); for jj = 1:length(t) rho(jj) = stdatm(ftx(jj))*sg2kg*ft32m3; end Dp = .5*rho.*V.^2; subplot(321) plot(t,V) title('4.b) Velocity (m/s)') xlabel('Time (s)') ylabel('Velocity (m/s)') 161R - Solutions HW #1 subplot(322) plot(t,a) title('4.b) Acceleration (m/s^2)') xlabel('Time (s)') ylabel('Acceleration (m/s^2)') subplot(323) plot(t,x) title('4.c) Position (m)') xlabel('Time (s)') ylabel('Position (m)') subplot(324) plot(t,Dp) title('4.c) Dynamic Pressure') xlabel('Time (s)') ylabel('Dynamic Pressure (N/m^2)') subplot(325) plot(x,Dp) title('4.c) Dynamic Pressure vs. Altitude') xlabel('Altitude (m)') ylabel('Dynamic Pressure (N/m^2)') subplot(326) plot(t,log(V.^2),t,log(rho)) title('4.d) Dynamic Pressure Comparison') xlabel('time (s)') ylabel('ln Value') legend('ln(Velocity^2)','ln(Density)') 14 ...
View Full Document

This note was uploaded on 10/17/2010 for the course MAE 161r taught by Professor Richard during the Spring '10 term at UCLA.

Ask a homework question - tutors are online