These Simulink blocks contain transfer functions that model the pressure and flow transients for axisymmetric 2D viscous flow of a compressible fluid in a straight rigid circular cross section pipelines. Three models are available: (1) pressures at the ends (2) flow rates at the ends (3) pressure at one end and flow rate at the other Filtering is incorporated to reduce numerical oscillation (Gibbs phenomenon). See J. Dyn. Systems, Meas. & Control vol 122 (2000) pp. 153-162.
標(biāo)簽: transients functions Simulink transfer
上傳時間: 2014-01-22
上傳用戶:Shaikh
Floyd-Warshall算法描述 1)適用范圍: a)APSP(All Pairs Shortest Paths) b)稠密圖效果最佳 c)邊權(quán)可正可負(fù) 2)算法描述: a)初始化:dis[u,v]=w[u,v] b)For k:=1 to n For i:=1 to n For j:=1 to n If dis[i,j]>dis[i,k]+dis[k,j] Then Dis[I,j]:=dis[I,k]+dis[k,j] c)算法結(jié)束:dis即為所有點(diǎn)對的最短路徑矩陣 3)算法小結(jié):此算法簡單有效,由于三重循環(huán)結(jié)構(gòu)緊湊,對于稠密圖,效率要高于執(zhí)行|V|次Dijkstra算法。時間復(fù)雜度O(n^3)。 考慮下列變形:如(I,j)∈E則dis[I,j]初始為1,else初始為0,這樣的Floyd算法最后的最短路徑矩陣即成為一個判斷I,j是否有通路的矩陣。更簡單的,我們可以把dis設(shè)成boolean類型,則每次可以用“dis[I,j]:=dis[I,j]or(dis[I,k]and dis[k,j])”來代替算法描述中的藍(lán)色部分,可以更直觀地得到I,j的連通情況。
標(biāo)簽: Floyd-Warshall Shortest Pairs Paths
上傳時間: 2013-12-01
上傳用戶:dyctj
out< "please input the number of the nodes"<<endl cin>>nodesNum cout<<"please input the graph"<<endl for( i = 1 i<=nodesNum i++) for( j = 1 j <= nodesNum j++) cin>>graph[i][j] */
標(biāo)簽: lt the nodesNum number
上傳時間: 2013-11-29
上傳用戶:libinxny
數(shù)據(jù)結(jié)構(gòu)(嚴(yán)慰敏)配套純c代碼實(shí)驗(yàn)十 typedef int InfoType // 定義其它數(shù)據(jù)項(xiàng)的類型 typedef int KeyType // 定義RedType類型的關(guān)鍵字為整型 struct RedType // 記錄類型(同c10-1.h) { KeyType key // 關(guān)鍵字項(xiàng) InfoType otherinfo // 其它數(shù)據(jù)項(xiàng) } typedef char KeysType // 定義關(guān)鍵字類型為字符型 #include"c1.h" #include"c10-3.h" void InitList(SLList &L,RedType D[],int n) { // 初始化靜態(tài)鏈表L(把數(shù)組D中的數(shù)據(jù)存于L中) char c[MAX_NUM_OF_KEY],c1[MAX_NUM_OF_KEY] int i,j,max=D[0].key //
標(biāo)簽: typedef int InfoType KeyType
上傳時間: 2016-03-03
上傳用戶:2404
INTERNATIONAL ORGANIZATION FOR STANDARDIZATION ORGANISATION INTERNATIONALE NORMALISATION ISO/IEC JTC 1/SC 29/WG 11 CODING OF MOVING PICTURES AND AUDIO
標(biāo)簽: STANDARDIZATION INTERNATIONALE INTERNATIONAL NORMALISATION
上傳時間: 2016-03-04
上傳用戶:siguazgb
若在矩陣Am×n中存在一個元素A[i-1,j-1],其滿足A[i-1,j-1]是第i行元素中最小值,且又是第j列元素中最大值,則稱此元素為該矩陣的一個馬鞍點(diǎn)。用二維數(shù)組存儲矩陣Am×n ,設(shè)計算法求出矩陣中所有馬鞍點(diǎn)。
上傳時間: 2013-12-13
上傳用戶:ynwbosss
一個MATLAB範(fàn)例,可以用來計算分形盒維度
標(biāo)簽: MATLAB
上傳時間: 2016-03-16
上傳用戶:星仔
/*目的:使一個複數(shù)可顯數(shù)出來,可做+-/*,還要可以做>>跟<<的功能 題目:定義一個複數(shù)的class叫Complex,a(實(shí)部)與b(虛部)為double的型態(tài),i表示根號-1, 1.必須包含一個建構(gòu)子有兩個參數(shù)(double型態(tài)),能被用來設(shè)定物件中的變數(shù)為任意值 2.包含一個建構(gòu)子只有一個參數(shù)(double型態(tài)),呼叫參數(shù)的實(shí)部且定義為"實(shí)部+0i" 3.包含一個預(yù)建構(gòu)子可把物件初始化為0+0i 4.overload以下的operator以致於可以正確的執(zhí)行:+ - * / << >> */
標(biāo)簽:
上傳時間: 2013-12-27
上傳用戶:lindor
進(jìn)銷存管理系統(tǒng)(JSP版) 【系統(tǒng)配置】 先將此目錄下的\WEB-INF\classes\JXC 為JavaBean 本系統(tǒng)這里使用的ACCESS數(shù)據(jù)數(shù)據(jù)庫。 數(shù)據(jù)源名稱:JXC, (也可以改變j\WEB-INF\classes\JXC\db.properties的文件)。 數(shù)據(jù)庫為: jxcDB.mdb 編寫環(huán)境: win2000+j2sdk1.4.1_01+tomcat4.1.2.7
標(biāo)簽: WEB-INFclassesJXC JavaBean ACCESS JSP
上傳時間: 2014-01-03
上傳用戶:努力努力再努力
A* sudo sudo/* B* adduser script adduser C* rmuser script rmuser E* tout tout/* F* dumdum dumdum G* lostfile lostfile H* Mkfl.localsys Makefile.localsys I* spacegripe spacegripe J* sendmail.cf sendmail.cf N* remote remote.c O* distributed conrol distrib/* P* hosts and name server makerevhosts Q* xargs xargs/*
標(biāo)簽: adduser script rmuser sudo
上傳時間: 2016-03-29
上傳用戶:gxrui1991
蟲蟲下載站版權(quán)所有 京ICP備2021023401號-1