You are on page 1of 31
ASSIGNMENT ON NUMERICAL METHODS Name: Dinesh.K Roll.No : 22MATA11 | ° a Explath the Crank Nicolson method and Wolve dtu OU gubfect to the condeefon Ox? at : Sucb, eyitlo cele RAY Ok, Ol Col 520 for ftve tme steps. Caank Nicolson method 3 Re ~~ The Crank- Nfcolson method a technique that makes the. -fPnite - aAefference approxfmatfons of the Same order. The dbfference quotfent for the Huh" cyslagestve (> WH) a, Gan ue ConsPdered a Gontrat- défferenie approxtmatio at the midpotnt of the time Step. Lf we do take ths as a cntral- Adffferene approximation, we need to equate it wa Control - Al fferene approxématfon op the spattal clortvattve at the ame halfway pofnt un the time step , and this we obtain by averaging two approxfmatfons for aU 52 one computed at the strat and the other at the end of the Oo tne time step we get. CU ae ee q dt cp ax? re i+ ‘ ? Heed Jn dei Uj -Uy le is Up RU +My ui pit Ate re 20 (ax)® (ax? Tf solve for tne u-vales at the end Sie ead a(uy" ull) kK At ut, 10 ea Gg “CP Cax)® ae ieee RL ye yen ea PU — RU = TG pe Pi ee i+) i+ itt j df i eres ee, +4 Uj eotae a Tie aos - yu; +yUz fe J+) i+ ee mC = OMe vue ¢(2-a) us i+r a +r? where , 7) K At CP (Ax)? ThA Crank- Nicolson formula fnvolves solving a set of simultaneous equations itt Foxe ee tach cn be cause the’ equation Given tne fnrtfal cCondétfon , U(a.0) 20. > WhO) 26) [Fiver rou] Using the given condétfons ,we have the fo Uowlng table, i 0.5 a uray [ersered) mel 9 Up = Vajonaaas tl 2? U,= a oe ‘a ie Ve fototis+2] > Uy = os Uy = 0-875 R) Explatn the theta method. In ths method we make more general statement by approximation to apply at A4ome pofnt within the time interval. LF we interpret ft to ap ply ot a fraction of At. ue thenesctUchosseis time - duntvatlve proxtmation to a wefghted veto Se ap op the spatial dortvatives at the beginnéng andl ends COMmmnne ttme Intervol giving ths aclation, ; 7 ied Vind Ur [ ie (lo) Gury ~2uy + Uj) “ent. [— fs At a foe Nate Te hae al (ax)? & Observe that using 6<0-5 gives the Nfcolson method whereas using 6=0 explectt method, Tf we wse Crank - gives the e=1, the theta method & opten catted the frpltet mothod . (dx)? es ir ates hd: Ui tee ( k ) o(w per apy) pe > Uae gee | itl i j ee u; Ue Kk. dt pt ae reat pid ‘yur ] c plan? it} 7 itt he sie nea U; Syd oor eee eur | i+) 4 sis! a ik 7 a, oe = eA masta ah pe i gr j ae yu:,, ter Uae aa : i+t i iad Poult § ~n—— ie tei ee! cyl etsy = Me i+ k At For any Value of 6, the Te CP (Ax)? typfcal equation sb, (by ©) i+! J j J a tes 9 Ui = t [1-8) (ujy BY + at s+! O(Ui+) » ®@® Uy = \y [ug to 420 +s] Auy = UstU2tRO 4uUy —U2 -U3= eo, é Matrix form, eel i Oley 260] al 4. 0 =| |e Use eS |) liso a a eee ee loo o -) -) 4) Ly 20 Augmented matrix us, | | 4 \-l)—| | Ov 2bo itm 48) OF Uz = 60 — Uz - 60 +4(Yo)= 20 > —Up,= -80 > Ur= BO -U, +4(80) -(4o) = 180 -u,=-100 > uy, =100 The Values ar, U)=l00, Us= BO, Uz-60 and Un = 40. a O -15y,. 0805 18, 1yoy Ra 3 xR, 2 ‘ -\N8. vee ! Ro @ Rs + Anenratiite an. £4) : 6y 118 Iyou 128 O -Isy-o805 j18-140U by -IS.1kOy By S oo -118. You ase a ° — 1b6.2835 ee ine «Re “U8. 1 yoy by 64 —-118-lyou ey] [yr ° © 6h -11g-1h0Ou! | Yo} = 128 © © -lbb.2835] [3 308.16] By Back Aubstitutfen, i [66.2835 Ya~ 308 (b) = J, =-1.8532) Brea ofendargans 128 = [ye= - 4204] Gy Y, 4167-8657 — 118-6048 = o-- Bove; 24 24 with the boundary Dane Ov condétfons uUlort)=°, uly, t) £0, UlM0)=Ul4-A and Aa=1\, the Values upto t= #. pie ens Pe uw Given ‘that ss a — go lve the uation ull_-/)- 4 24 (\-t)uer, ati =2 ,Ulsd=-1- (we a Set of equations Sos Uisi- QU; +Ui-y ull. he a F Take h=0-5 , Given that Ao=1,%)=1-5, Xo=2 1 Age The — typtcal equarfon ws, ah Whey eerie, =O — At the Jebt ondpofnt ,at %=%0 an 5 (+) (uUL- Us.) -Ma) (w= ua) 2h - (2x2.5) Se dled U- F e (Maes hoe 0.52 oe (axes) [( 228) (e-20)] a (Cui - 0.70192 Uo tly.D38%) — 2. 2U)- 2.70192 Us tly .0385 = O = 2Uy - 2.70192 Us = — 14.0385 T=1 > Us-2u,te=0 fi-5> Uy 2Usty-o 1-2 > U,-auotUg=0 | i-6> Us_ 2Ug+uz=0 1-3 > uy -2UgtUy=o0 |i27> Us - U7 +Ug =0 je > Uz ~2Uy+Usc0 -y Up-auz=-l00 Matzix form eo the above equatfors, Baio? 2 OF ° U “ly 038! og elt OO) 0 peed O:0 OC Baa ulo.y)=0 and ulgo,y)= 100 method. Jake h=5. austen Given, atu 4 Oru on? ay* Uta od 0 Jy LEGan LOI O ie u(2o.y)= [00 and h-5 piee dae ange 20 4) oS To find tre midpoint (Us) ¢ owner Us = L [raat Co | = y, [test or = a0 Se pee Us: Yl cyte, tCet Us] = A[ ot100 +0425] U3 < ark, Use Shoe Uy 626 ,Us= 95, Us = 31.25.

You might also like