1. 結(jié)構(gòu)數(shù)據(jù)
結(jié)構(gòu)數(shù)據(jù)可以是一維、二維或三維的,下面以二維的數(shù)據(jù)格式為例。
1.1 f=point格式
在記事本中寫入以下字符,并將文件以.plt或.dat為后綴命名。
Variables=x,y,u
Zone I=5,J=4,f=point
2.000000 5.000000 -19.178485
4.000000 7.000000 26.279464
6.000000 9.000000 24.727109
8.000000 11.000000 -79.999217
10.000000 13.000000 42.016704
2.000000 8.000000 19.787165
4.000000 10.0000000 -21.760844
6.000000 12.000000 -32.194375
8.000000 14.000000 79.248588
10.000000 16.000000 -28.790332
2.000000 11.000000 -19.999804
4.0000000 13.000000 16.806681
6.000000 15.000000 39.017270
8.000000 17.000000 -76.911799
10.000000 19.000000 14.987721
2.000000 14.000000 19.812147
4.000000 16.000000 -11.516133
6.000000 18.000000 -45.059235
8.000000 20.000000 73.035620
10.000000 22.000000 -0.885131
其中數(shù)據(jù)總數(shù)為I*J=20,結(jié)構(gòu)數(shù)據(jù)順序?yàn)閜oint格式,順序?yàn)椋?I,J)=(1,1), (I,J)=(2,1), … (I,J)=(Imax,1), (I,J)=(1,2), (I,J)=(2,2), (I,J)=(Imax,2), … (I,J)=(Imax,Jmax).
Tecplot打開后云圖為
1.2 f=block格式
將f=point改為f=block,結(jié)構(gòu)數(shù)據(jù)順序改為block格式,順序?yàn)椋核衳(按point格式順序),所有y,所有u。
Variables=x,y,u
Zone I=5,J=4,f=block
2.000000 4.000000 6.000000 8.000000 10.000000
2.000000 4.000000 6.000000 8.000000 10.00000
2.000000 4.000000 6.000000 8.000000 10.000000
2.000000 4.000000 6.000000 8.000000 10.000000
5.000000 7.000000 9.000000 11.000000 13.000000
8.000000 10.000000 12.000000 14.000000 16.000000
11.000000 13.000000 15.000000 17.000000 19.000000
14.000000 16.000000 18.000000 20.000000 22.000000
-19.178485 26.279464 24.727109 -79.999217 42.016704
19.787165 -21.760844 -32.194375 79.248588 -28.790332
-19.999804 16.806681 39.017270 -76.911799 14.987721
19.812147 -11.516133 -45.059235 73.035620 -0.885131
Tecplot打開后的云圖與point格式形同。
2. 非結(jié)構(gòu)數(shù)據(jù)
2.1 f=fepoint格式
在記事本中寫入以下字符,并將文件以.plt或.dat為后綴命名。
Variables=x,y,u,v
Zone n=5,e=4,f=fepoint,et=triangle
0.0 0.0 1.0 2.0
-1.0 -1.0 0.0 2.2
-1.0 1.0 0.0 3.0
1.0 1.0 0.0 3.4
1.0 -1.0 0.0 1.1
1 2 3
1 3 4
1 4 5
1 5 2
“n=5,e=4”表示有5 個(gè)點(diǎn)和四個(gè)單元。
“et=triangle”表示單元形狀為三角形。
對(duì)每個(gè)點(diǎn)都有與之相關(guān)的4 個(gè)數(shù)字?!癴=fepoint”意味著數(shù)據(jù)文件中的點(diǎn)是如下排列的:(第一行為編號(hào)1的點(diǎn),第n行為編號(hào)n的點(diǎn))
x y u v
x y u v
x y u v
點(diǎn)數(shù)據(jù)后是單元構(gòu)成描述,每一行為該單元的三個(gè)頂點(diǎn)編號(hào)。
Tecplot打開后云圖為
2.2 f=feblock格式
如果用“f=feblock”來代之,那么Tecplot會(huì)先期望關(guān)于x 的值,然后是y 和z 的,如下所示:
x x x x...x
y y y y...y
u u u u...u
v v v v...v
2.3 datapacking=block格式
在記事本中寫入以下字符,并將文件以.plt或.dat為后綴命名。文章來源:http://www.zghlxwxcb.cn/news/detail-605840.html
variables ="x","y","S1"
zone N=8,E=3, datapacking=block
varlocation=([3]=cellcentered)
zonetype=fequadrilateral
0 0 0 0 1 1 1 1
0 1 2 3 0 1 2 3
10
-5
1.0
1 5 6 2
2 6 7 3
3 7 8 4
”N=8,E=3”表示有8個(gè)點(diǎn)和3個(gè)單元;
“varlocation=([3]=cellcentered)”表示x、y是格點(diǎn)數(shù)據(jù),S1是格心數(shù)據(jù);
第5行是x坐標(biāo),第6行是y坐標(biāo),7-9行是三個(gè)格心數(shù)據(jù),10-12行是單元節(jié)點(diǎn)編號(hào);
“zonetype=fequadrilateral”表示單元形狀為四邊形。(ZONETYPE=FETRIANGLE表示形狀為三角形與四邊形混合)
Tecplot打開后云圖為文章來源地址http://www.zghlxwxcb.cn/news/detail-605840.html
到了這里,關(guān)于Tecplot數(shù)據(jù)結(jié)構(gòu)——結(jié)構(gòu)數(shù)據(jù)(結(jié)構(gòu)網(wǎng)格)與非結(jié)構(gòu)數(shù)據(jù)(非結(jié)構(gòu)網(wǎng)格)的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!