Docsity

Problem Set for Assignment - Dynamics Aero Systems | ENAE 301, Assignments of Aerospace Engineering

Toggle sidebar
bg1
Df. F.D!g;g te>rFe3r
Homework 1
Assigned: Tuesday September 7*, Due: Tuesday September 14ft at the start ofclass.
This homework covers Newton's second law = f , phrasing the equations of
motion for an unconstrained particle with a given force nelO f1;, f , t) , solving the
equations ofmotion (right now just analytically, we will start doing numerically in the
next homework), and computer animations using Matlab. There is also a question on
what differential equations can and cannot be solved analylically using Mathematica.
1) A projectile is larmched from the position (xo,yo,zo) = (0,0,0) at time t:0 with initial
velocity io = (V,,Yr,f"). Assuming the force of gravity is constant j = 10,0,-mg), find
the position of the projectile as a function of time. In other words, find analytical
expressions for x(t), y(t), and z(t). Make sure to use the initial position and velocity
inforrration that you have been ttm. ., ., '
Extra Credit) For a projectile in two-dimensions (not three as above) we found that the
path of the projectile is given by [x(t),y(t)1=l(Yo cos?)t,(lr, sin?)t - (S l2)t'7] where g
is the launch angle, and Vo is the magnitude of the larmch velocity. (As in question 1, this
projectile is launched from (xo , yo ) = (0,0) .) lf Yo is fixed, at what angle should the
projectile be larmched so that it travels the marimum possible horizontal distance? (Hint:
First find the distance traveled as a fimction of 0 , then find the best d.)
For the next 2 computer (Matlab and Mathematica) problems: you may work in pairs.
2)Mathematica is a powerful software package for solving equations analylically. We are
going to use it to see which differential equations it can and cannot solve analytically.
The command 'DSolve' (type "?? DSolve" atthe prompt andthen hit lshift]+lenter] at
the same time to get help on this command) attempts to analytically solve a given
differential equation.
To solve the differential equation dy/dt: y type " DSolve[ y'[t] - y[t], y , t] " and hit
[shift]+[enter]. Here y' denotes dy/dt, andthe [t] says that y is a function of t.
Mathematical easily solves this equation and returns * { {v+ Flrnction[ [t], et c[1i ] ] ] ..
which correctly states that the solution is y[t] : c e'where rc[l] is a constant.
To solve the differential equation &y/dtz: y type "DSolve[ y"[t] == y[t], y , tl". This is
also solved easily.
Denote dy/dtby y' and &vldf by y". Can Mathematica solve the following differential
equations?
a) Y':l
d
-mv
dt
pf2

Partial preview of the text

Download Problem Set for Assignment - Dynamics Aero Systems | ENAE 301 and more Assignments Aerospace Engineering in PDF only on Docsity!

Df. F.D!g;g te>rFe3r

Homework 1

Assigned: Tuesday (^) September 7*, Due: Tuesday September 14ft at the start ofclass.

This homework covers Newton's second law = f , phrasing the equations of

motion for an (^) unconstrained particle with a given force nelO (^) f1;, f (^) , t) (^) , solving the equations (^) ofmotion (right (^) now just^ analytically, we will start doing numerically in the

next homework), and computer animations using Matlab. There is also a question on

what differential equations can and cannot be solved analylically using Mathematica.

  1. A projectile^ is larmched from the position (xo,yo,zo) (^) = (0,0,0) (^) at time t:0 with initial

velocity io = (V,,Yr,f").^ Assuming the force of gravity is constant j^ = 10,0,-mg), find

the position of the projectile as a function of time. In other words, find analytical

expressions (^) for x(t), y(t), (^) and z(t). Make sure to use the initial position (^) and velocity

inforrration that you^ have been ttm.

., .,^

Extra Credit) For a projectile in two-dimensions (not three as above) we found that the

path of the projectile is given by [x(t),y(t)1=l(Yo cos?)t,(lr, sin?)t (^) - (S (^) l2)t'7] where g

is the launch angle, and Vo is the magnitude of the larmch velocity. (As in question 1, this

projectile is launched from (xo , yo ) = (0,0) .) lf Yo is fixed, at what angle should the

projectile be larmched so that it travels the marimum possible horizontal distance? (Hint:

First find the distance traveled (^) as a fimction of (^0) , then find the best d.)

For the next 2 computer (Matlab (^) and Mathematica) problems: you may (^) work in pairs.

2)Mathematica is a powerful software package for solving equations analylically. We are

going to (^) use it to see which differential equations it (^) can and cannot solve analytically.

The command 'DSolve' (type "?? (^) DSolve" atthe prompt (^) andthen hit (^) lshift]+lenter] at

the same time to get help on this command) attempts to analytically solve a given

differential equation.

To solve the differential equation dy/dt: y type " DSolve[ y'[t] - y[t], y , t] " and hit

[shift]+[enter]. Here^ y'^ denotes^ dy/dt, andthe^ [t] says^ that^ y^ is^ a^ function^ of t.

Mathematical easily solves this equation and returns *^ {^ {v+^ Flrnction[^ [t], et^ c[1i^ ] ] ] ..

which correctly states that the solution is y[t] :^ c e'where rc[l] is a constant.

To solve the (^) differential equation &y/dtz: y type "DSolve[ y"[t] (^) == y[t], y (^) , tl". This (^) is also solved easily.

Denote dy/dtby y' (^) and &vldf by y". (^) Can Mathematica solve the (^) following differential equations?

a) Y':l

d

-mvdt

,p:'x'rcp? g"6lrJ#s ."|fi

b) (^) Y': sin(Y) c) y':t'^ -v {) t" J^ rrrz' e) y" :^ IlQ+rt € this is similar to ow high altitude projectile (^) case. 0 y,,:y^ cos(y) If Mathematica gets (^) stuck (which would correspond to a "camot solve") then you can go to Kernel ) Abort Evaluation to intemrpt (^) the current computation.

Save your^ Mathematica *.nb^ file and then submit it to us using the online blackboard

systern (^ umd.blackboard.com rmder: course map ) tools ) (^) &gital drop box). Make

sure you^ include the names of both people in the first line of the *.nb file. In addition,

please include a short description of yourresults in your individual homework writeups

saylng whether you could or couldn't solve the differential equations for equations a*f

above.

  1. For this problem you^ will animate the motion of the projectile in the (^) extra credit

question (you don't have to do the extra credit problern to do this problem, the motion

solution is^ simply given in the extra credit problem statement). First learn how to use the

o'animation" featute in Matlab. (This is not the same as the "movie"

fi,mction which uses a

huge amount of memory (^) and is not what you (^) want.) Basically, (^) if you want to animate a point you draw it at one spot, then (^) erase it and redraw it atthe next spot, and so on. How

the object is erased is set by Matlab's "EraseMode". Here is an extract from the online

help searchable web-page (^) $ttp: / /www.rnathworks.corn/search/).

Erase Mode The EraseMode property (^) controls how and when the object is drawn and deleted. By default, when an object is added or changed" new (^) objects or changes are not drawn (^) until the axes are refreshed. This occurs instantly from the command (^) line, however. in M-files the axes are not updated until a DRAWNOU GETFRAME, (^) or PAUSE statsment is executed, or retum to the command prompt is given. (^) When the (^) D(es are updated, every object is also updated. This (^) means that they are redrawn. Not all (^) objects have an EraseMode property, only lines, patches, surfaces, and text.

NORMAL When EraseMode is set to normal, the default, the axes will control (^) when the object is updated. This means that the axes (^) will flicker (^) when an obiect is drawn. changed, or deleted.

BACKGROUND Whsn EraseMode is set to background, the object deletes its graphics (^) by drawing itself in the figue's (^) background colqr. The major disadvantage (^) with this method is that objects behind this object (^) are damaged.

XOR When EraseMode is set to xor, the (^) object is drawn and erased by xoding it (^) with the (^) color beneath it. When the object is (^) erased, objects behind it are not damaged.

NONE When EraseMode is set to none, tlre object is not erased (^) when it is moved or destroyed.