You are on page 1of 2

MATLABandItsApplication

FinalExamination
2009/1/14

1. (25%)Aconeshapedpaperdrinkingcup(thekindusedatwaterfountains)hasa
radiusRandaheightH.Ifthewaterheightinthecupish,thewatervolumeis
givenby
V=1/3(R/H)2h3
SupposethatthecupsdimensionsareR=1.5inchandH=4inch.Iftheflowrate
fromthefountainintothecupis2in3/sec,howlongwillittaketofillthecupto
thebrim?Pleasesolvethisproblembyusing(1)MATLABprogramming,and(2)
simulink,respectively.Youshouldalsoplotthewaterheightasafunctionoftime
forbothmethods.

2. (25%)Usesimulinktosolvethefollowingproblemfor0t100:
dy1/dt=f(t)0.5(y1y2)0.5
dy2/dt=0.25(y1y2)0.50.2(y2)0.5
y1(0)=12;y2(0)=7
f(t)=1fort 30; f(t)=1.5fort 30

3. (15%)Solvethefollowingequations:
x1+2x2x3+x4=1
2x13x2+4x3+x4=5
3x1x2x32x4=2
x1+5x22x3+4x4=3

4. (20%)Giventhefollowingexperimentaldata:
Flowrate(q,m3/s) 1 2 3 4 5 6
Temperature(T,oC) 2.2 7.8 13.9 27.8 41.2 62.1
(a) Findthetemperatureforq=2.5,3.5,4.5;
(b) Findlinearandquadraticcorrelations.


5. (15%)ThefollowingtablepresentsratedataforthereactionAR.Itis
suggestedfittingtheratedatawithamodelintheformofreversiblefirstorder
reactions,
rR=k1CAk2CR
whererR is the rate of generationof component R (gmol/cm3s); CA and CR are
therespectiveconcentrationsofcomponentsAandR(gmol/cm3);andk1andk2
arereactionratecoefficients(s1).Calculatetheparametersofthisreactionrate
expressionusingthedatainTable
(Note:rR,(gmol/cm3s)x108;CA,,CR,,(gmol/cm3)x104).
No rR CA CR
1 1.25 2.00 7.98
2 2.50 4.00 5.95
3 4.05 6.00 4.00
4 0.75 1.50 8.49
5 2.80 4.00 5.99
6 3.57 5.50 4.50
7 2.86 4.50 5.47
8 3.44 5.00 4.98
9 2.44 4.00 5.99

You might also like