下載本文檔
版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡介
1、程序說明該程序用于求解邊值問題的非線性blasius方程的數(shù)值解,該方程用來描述通過一塊無限大 平板的不可壓縮的兩維穩(wěn)定流問題。2f + #'=0rj = qj' = 0j'=0 = ooj' = 該程序用matlab編寫,由s.m和q.m兩個(gè)程序組成,s.m為主程序,采用了打靶法和rkf(龍格一庫塔一費(fèi)爾伯格)法,在matlab中,rkf法選用函數(shù)ode45。在用打靶法解題 過程中需要先選定兩個(gè)初始值(即/”的值)用于殼代計(jì)算,在疊代過程屮,第一次采用的 是一次多項(xiàng)式插值法,以后各次均采用的二次多項(xiàng)式插值法。具體程序執(zhí)行如下:執(zhí)行s.m;命令窗口提不:請輸入第
2、一個(gè)任意初始值:鍵入 0.3 i命令窗口提示:請輸入第二個(gè)任意初始值:鍵入 0.4 i程序執(zhí)行完畢。得到數(shù)值解圖像blasius方程數(shù)值解»ityl003320504255726080.2000000000000000.0066406847857570.0664064190007350.3319769302816470.4000000000()00000.0265592724911030327613973480840.331462940642616().6()()0000000()0000 0.8000000(x)0000001.0000()00000()0000 1.2000000
3、000000001.4000000000000001.600000000000000 1.800000000000000 2.0000()00000()0000 2.2()00000000000002.4000000000000002.600000000000000 2.8000000(x)000000 3.0000()00000()0000 3.2000000000000003.4000000000000003.600000000000000 3.800000000000000 4.0000()00000()0000 4.2()0000000000000 4.400000000(x)00()
4、04.600000000000000 4.8000000(x)000000 5.0000000000000005.1999999999999995.4000000000000005.600000000000000 5.8000000(x)000000 6.0000()00000()00006.199999999999999 6.4000000000()00006.600000000000000 6.8000000(x)000000 7.000000000000000 7.2()00000000000007.400000000000000 7.6()()0000000()0000 7.80000
5、00(x)000000 8.00000(xxxx)0(xx)08.199999999999999 8.4()0000000000000 &6000000000()0000 8.800(x)(xxxxx)(xx)l0.05973(x)613687400.1060972955378420 j 655630308847090.2379442372687800.3229688368951930.4202943904016780.5294908391591200.6500090694701540.7811822070295200.922272805631476l0724798222828611.
6、23095013742149513967879095445581.5690699253450891.746915448703586l929487686i5i9372.11600040345103123057193897850772.4980051682669552.6923282496160702.8882185732850133.0852829165367123.2832378195729693.4818387609016073.6808868432804853.8802589909031934.0798506041197964.2795889371535254.47942546080237
7、84.6793245667901774.8792638411282275.0792278579105125.2792069916857195.4791951859411135.6791886128001275.8791851213661386.0791832861942996.2791824324459446.4791820464355976.6791819596757446.8791819969198927.0791821042849740989342481540270.2647059995571820.32977379236129603937674819581910.45625845607
8、06150.5167580586411450.5747519024337040.6297515231340940.6812962493004080.7289734807030940.7724470697584080.8114975840686250.8460296386569050.8760707526453200.9017600525255140.9233315164928120.3300728033338630.3273817832153040322998326329412031658337896866003078582244110800.2966520460002810.28292117
9、08769290.2667503112865620.2483521305350800.2280826783899610.2064502635288600.1840142968552940.1613698166261030.1391267370976360.1178630219633190.0980812457014450.94ii092427556170.0801396036425370.9555059580929050.9669559021448410.9758675850986780.9826747519817110.9877958568329080.9915456498326390.99
10、42360903768370.9961530675400220.9974749309396950.9983722945980170.9989716023318460.9993613586634180.9996114936251530.9997679250728730.9998642056028700.9999222231417720.9999563977383570.9999762929671100.9999874576967800.9999937774180380.9999971163979160.9999989986192810.9999999086952431.000(x)0408873
11、3781.0000006683416040.0642505072864560.0505198555190640.0389779(x)7545260.0294990019228060.0218594718910810.0159005197994420.0113619761129650.0079338458866240.0054398826722100.0036575684193940.0024070675612300.0015552120973740.0009833902265680.0006102416322990.0003709387997750.0002209429557240.00012
12、91919511690.0000737706389280.0(xx)415764274920.0000227021832820.0000124160834290.0000064108401470.0000034314837860.000001736982564().()000008322352839.0000000000000007.2791822572191481.000()007653700940.000000489499078查看魂代過程,可在命令窗口執(zhí)行» y0.3000000000000000.40000000000000003331153697266140.3320504
13、255726080.9345673820190331.1321572580226841.0021378204450411.000000765370094%y表示二0時(shí)的值,x表示二* (實(shí)際為9)時(shí)對應(yīng)于“下/的值。 從中可以看到趨近過程。數(shù)值解和精確解的比較ff ff數(shù)值解精確解數(shù)值解精確解數(shù)值解精確解000000.3320504255726080.3320610.1655630308847090.165770.3297737923612960.329790.3229983263294120.3230190.6500090694701540.650030.6297515231340940.6
14、29770.2667503112865620.2667531.3967879095445581.396820.8460296386569050.846050.1613698166261030.1613642.3057193897850772.305760.9555059580929050.955520.0642505072864560.0642353.2832378195729693.283290.9915456498326390.991150.0159005197994420.0159164.2795889371535254.279640.9989716023318460.998680.00
15、24070675612300.0024075.2792069916857195.279260.9999222231417720.999220.0002209429557240.0002286.2791824324459446.279230.999997116397916.000000.0000124160834290.000018.87.0791821042849747.079231.000(x)06683416()41 .()00000.000000832235283().(x)00()從上表對比可知,數(shù)量解和精確解的結(jié)果幾乎一致。該程序最大的優(yōu)點(diǎn)就是可以對輸入不同的初始值,來觀察疊代次數(shù)和
16、對結(jié)果的影響。例如:當(dāng)輸入初始值為0.1和1時(shí),與前面的比較見下表:ff0.3000000000000000.1000000000000000.9345673820190330.4488602810575830.4000000000000001.0000000000000001.1321572580226842.0856232646779450.3331153697266140.4030528867111931.0021378204450411.1379108554528040.3320504255726080.3335715199474381.0000007653700941.0030524
17、9393212103320434110618550.9999866815772260.3320500444862901.000000000224372很明顯可以看出疊代次數(shù)不一樣,第二次比第一次多計(jì)算兩次,但對結(jié)果的影響兒乎可以忽 略不計(jì)。說明疊代初值對疊代次數(shù)的影響非常大,如選初值為3和40,則需要計(jì)算172次,但仍然能夠?qū)(0)精確計(jì)算到0.332050043715133。s.m:clear,elfy(l)=inputciw輸入第一個(gè)任意初始值l,y 1 =ode45(q,0:029,0,0, y( 1);x(l)=yl(length(t),2);y(2)=i叩utc請輸入第二個(gè)任意初始值:jt,y2=ode45('q',0:029,0,0,y(2);x(2)=y2(length(t),2);y(3)=polyval(polyfit(x(l) x,y(1) y(2),l),l);t,y3=ode45(q,0:029,0,0,y(3);x =y3(length(t),2);n=0;while 1n=n+l;y(n+3)=polyval(polyfit(x(n) x(n+l) x(n+2),y(n) y(n+1) y(n+2),2),1
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 采購合同明白模板
- 不解除合同上訴狀
- 邊坡塌方合同
- 報(bào)刊征訂合同范本
- 山東省棗莊市臺兒莊區(qū)2024-2025學(xué)年九年級上學(xué)期期中考試化學(xué)試題
- 遼寧省鞍山市海城市南臺鎮(zhèn)2024-2025學(xué)年六年級上學(xué)期期末英語試題(含答案)
- 河南省部分學(xué)校2024-2025學(xué)年高一上學(xué)期期中考試歷史試題
- 《棉堿溶性滌綸低彈絲包芯紗本色布》
- 甘肅省武威市涼州片區(qū)2024-2025學(xué)年八年級上學(xué)期期中考試英語試題(含答案無聽力音頻及原文)
- 設(shè)計(jì)服務(wù)相關(guān)行業(yè)投資規(guī)劃報(bào)告
- 江蘇省南通市2024-2025學(xué)年七年級上學(xué)期期中英語試卷(含答案解析)
- 干燥裝置和設(shè)備市場發(fā)展預(yù)測和趨勢分析
- 2022年甘肅省公務(wù)員錄用考試《行測》真題及答案解析
- 施工現(xiàn)場倉庫、?;饭芾碇贫?/a>
- 高三語文補(bǔ)寫句子公開課教案省公開課獲獎?wù)n件說課比賽一等獎?wù)n件
- 稅收的經(jīng)濟(jì)效應(yīng)課件
- 3.2推動高質(zhì)量發(fā)展 課件-高中政治統(tǒng)編版必修二經(jīng)濟(jì)與社會-1
- 2024屆清華大學(xué)強(qiáng)基計(jì)劃數(shù)學(xué)學(xué)科筆試試題(附答案)
- 山東省濰坊市2025屆高三年級10月聯(lián)考語文試題及答案
- 南京上元門過江通道環(huán)境影響報(bào)告書-全本公示稿
- 交通安全知識培訓(xùn)試題(帶答案)試卷打印版
評論
0/150
提交評論