Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

write program using matlab a) A mission to mans is being designed with the idea

ID: 3804347 • Letter: W

Question


write program using matlab

a) A mission to mans is being designed with the idea of launching various payloads. The first part of the mission is to launch the payload into orbit around Earth. The engines on the rocket must provide sufficient thrust toescape Earth's gravity. The folkywing equation represents the force of thrust with respect to the mass flow rate (not mass velocity of gas, area of nozzle, and pressure difference, Create a function called thrust to find the force produced from several rocket engines with the given data m 500 kg/s, 1000 kg/s, 850 kgls, 750 kg's V 30.28 m/s A 15 m (Po- Ph) 28 Pa. by previous you solved for the unust of the rocket engines on the spacecraft However, the change in velocity needed is also a very important parameter The rocket being used for the mission is composed of t stages. For the first stage, the engines will accelerate until all fuel is depleted from the outer tanks. Anerwards, the tanks will detach from the spacecraft which will result in less wait and a higher change in velocity. The equation below solves for change in velocity (m/s of the spacecraft with respect to the specific impulse af the engines, initial mass, final mass and gravity. Create a function called deltav and solve the equation with the given parameters: 800 kg mr 500 kg from part a) Isp m 1000 s (use thrust when m 000 kg's Fhruw g 9.8 m/s2

Explanation / Answer

function force = thrust(m, V, A,diffP0P1)
   force = (m * V) + (A * diffP0P1)
end

function chVel = deltav(mi,mf,Fthrust,g)
Isp = Fthrust / 1000
chVel = g * Isp * log(mi/mf)
end

force = thrust(500,30.28,15,128)
fprintf("Mass = 500 kg/s, Thrush: %f ",force);

force = thrust(1000,30.28,15,128)
chVal = deltav(1800,1500,force,9.8)
fprintf("Mass = 1000 kg/s, Thrush: %f ",force);
fprintf("Fthrust(m = 1000 kg/s) = %f, mi = %d, mj = %d, Change in velocity: %f ",force, 1800,1500,chVal);

force = thrust(850,30.28,15,128)
fprintf("Mass = 850 kg/s, Thrush: %f ",force);

force = thrust(750,30.28,15,128)
fprintf("Mass = 750 kg/s, Thrush: %f ",force);
       

------------------output-------------------------

force = 17060
force = 17060
Mass = 500 kg/s, Thrush: 17060.000000
force = 32200
force = 32200
Isp = 32.200
chVel = 57.533
chVal = 57.533
Mass = 1000 kg/s, Thrush: 32200.000000
Fthrust(m = 1000 kg/s) = 32200.000000, mi = 1800, mj = 1500, Change in velocity: 57.533390

force = 27658
force = 27658
Mass = 850 kg/s, Thrush: 27658.000000
force = 24630
force = 24630
Mass = 750 kg/s, Thrush: 24630.000000