关于tecplot动画的制作
本帖最后由 敷衍会致命 于 2016-4-12 14:36 编辑tecplot——画等高线和做动画的流程
2008-10-10 11:22
Tecplot构筑结构网格有两种方式:point format和block format。如果结构网格可以用矩阵的形式表示,就可以简单的采用point format。如果结构网格的形式不规则,则需采用block foramt。以下给出的是某体育场挑篷风压系数用point format形式的画等高线和动画的方法:
准备数据文件***.dat,具体格式如下
ZONE I=6, J=15, DATAPACKING=POINT
-5.262823e-001 5.411879e-001 -2.110815e-002
-5.526198e-001 5.682714e-001 -6.681525e-002
-5.789566e-001 5.953541e-001 -4.080281e-002
-6.052941e-001 6.224376e-001 2.571309e-002
-6.438320e-001 6.620669e-001 -8.019539e-002
-6.682328e-001 6.871588e-001 -1.360135e-001
-4.594741e-001 5.989498e-001 -4.683557e-002
-4.824683e-001 6.289240e-001 -7.068866e-002
-5.054618e-001 6.588973e-001 -3.307859e-002
-5.284559e-001 6.888714e-001 -2.361174e-002
-5.621017e-001 7.327305e-001 -2.491354e-001
-5.834049e-001 7.605005e-001 -2.451434e-001
-4.001978e-001 6.400774e-001 1.833046e-002
-4.202255e-001 6.721097e-001 -4.995719e-002
-4.402526e-001 7.041412e-001 -1.037999e-001
-4.602803e-001 7.361735e-001 -1.568479e-001
-4.895855e-001 7.830443e-001 -3.819960e-001
-5.081404e-001 8.127211e-001 -4.587529e-001
-3.230127e-001 6.822904e-001 -1.280022e-001
-3.391777e-001 7.164353e-001 -1.074133e-001
-3.553422e-001 7.505792e-001 3.492958e-002
-3.715072e-001 7.847240e-001 -9.383666e-002
-3.951604e-001 8.346859e-001 -4.812919e-001
-4.101367e-001 8.663199e-001 -7.347351e-001
-2.408038e-001 7.154515e-001 2.140500e-001
-2.528547e-001 7.512559e-001 -1.244920e-001
-2.649053e-001 7.870593e-001 -1.528999e-001
-2.769562e-001 8.228637e-001 -1.233560e-001
-2.945895e-001 8.752538e-001 -3.742452e-001
-3.057542e-001 9.084253e-001 -4.407615e-001
-1.552487e-001 7.387525e-001 -1.458504e-001
-1.630180e-001 7.757229e-001 -2.086260e-001
-1.707872e-001 8.126924e-001 -1.326864e-001
-1.785565e-001 8.496629e-001 -4.671797e-002
-1.899248e-001 9.037593e-001 -3.059270e-001
-1.971229e-001 9.380111e-001 -4.550705e-001
-6.721031e-002 7.518911e-001 -8.676520e-002
-7.057381e-002 7.895190e-001 -1.243857e-001
-7.393723e-002 8.271460e-001 -1.365894e-001
-7.730073e-002 8.647740e-001 -2.429007e-001
-8.222232e-002 9.198325e-001 -4.377060e-001
-8.533848e-002 9.546935e-001 -5.008940e-001
0.000000e+000 7.548890e-001 -2.592741e-001
0.000000e+000 7.926670e-001 -1.240889e-001
0.000000e+000 8.304440e-001 -1.739784e-001
0.000000e+000 8.682220e-001 -2.093508e-001
0.000000e+000 9.235000e-001 -6.185222e-001
0.000000e+000 9.585000e-001 -6.683037e-001
6.721031e-002 7.518911e-001 -1.194447e-001
7.057381e-002 7.895190e-001 8.131764e-003
7.393723e-002 8.271460e-001 -1.446243e-003
7.730073e-002 8.647740e-001 -1.806337e-001
8.222232e-002 9.198325e-001 -5.415050e-001
8.533848e-002 9.546935e-001 -7.481181e-001
1.552487e-001 7.387525e-001 -1.876519e-001
1.630180e-001 7.757229e-001 -1.213665e-001
1.707872e-001 8.126924e-001 -8.349868e-002
1.785565e-001 8.496629e-001 -8.080804e-002
1.899248e-001 9.037593e-001 -3.080228e-001
1.971229e-001 9.380111e-001 -1.044956e+000
2.408038e-001 7.154515e-001 -2.047140e-001
2.528547e-001 7.512559e-001 -2.030429e-001
2.649053e-001 7.870593e-001 -2.465079e-001
2.769562e-001 8.228637e-001 -1.437423e-001
2.945895e-001 8.752538e-001 -3.200182e-001
3.057542e-001 9.084253e-001 -5.658432e-001
3.230127e-001 6.822904e-001 -1.515386e-002
3.391777e-001 7.164353e-001 -1.923771e-001
3.553422e-001 7.505792e-001 -1.279201e-001
3.715072e-001 7.847240e-001 -1.280820e-001
3.951604e-001 8.346859e-001 -4.558869e-001
4.101367e-001 8.663199e-001 -4.321642e-001
4.001978e-001 6.400774e-001 -6.422219e-002
4.202255e-001 6.721097e-001 -8.145336e-002
4.402526e-001 7.041412e-001 -4.546598e-002
4.602803e-001 7.361735e-001 -1.823771e-001
4.895855e-001 7.830443e-001 -5.396572e-001
5.081404e-001 8.127211e-001 -6.356800e-001
4.594741e-001 5.989498e-001 -9.890124e-002
4.824683e-001 6.289240e-001 -1.302543e-001
5.054618e-001 6.588973e-001 -8.966376e-002
5.284559e-001 6.888714e-001 -7.865604e-002
5.621017e-001 7.327305e-001 -3.552826e-001
5.834049e-001 7.605005e-001 -3.289717e-001
5.262823e-001 5.411879e-001 6.560535e-002
5.526198e-001 5.682714e-001 -3.819034e-002
5.789566e-001 5.953541e-001 -3.127659e-002
6.052941e-001 6.224376e-001 2.538160e-002
6.438320e-001 6.620669e-001 -7.692963e-002
6.682328e-001 6.871588e-001 -2.549150e-001
前两列是结构网格点的坐标,后一列是风压系数,‘ZONE I=6, J=15, DATAPACKING=POINT’代表各点风压系数按6行15列排列。用tecplot中load data file导入,initial plot采用2D Cartesion,选取contour就得到等高线图;作动画为将很多Zone按照上述方法组合形成****.dat,导入tecplot后,选show first zone only,及contour就得到动画的第一帧,在tools-〉animate-〉zones下就可以做动画了。
其实在tecplot的安装文件里就有例子的。
要求有一定的数据格式:
TITLE="Animate"
VARIABLES=X,Y,Z,I,J
zone i=61,j=71 f=POINT
(给出第一层的x,y,z,i,j)
zone i=61,j=71 f=POINT
(给出第二层的x,y,z,i,j)
.....
然后在tecplot的loaddatafile打开该数据文件
在field里面设定好level,color等属性后
在tools--animate--zone即可生成动画了,里面有提示是显示在屏幕上还是生成avi文件
teti (2005-6-07 17:26:00)
X,Y,Z,I,J,分别表示什么啊?
zone i=61,j=71 f=POINT呢?
呵呵,问得有点不好意思
flasit (2005-6-07 19:27:00)
感谢zulsine的指点,
准备去看看
zulsine (2005-6-07 22:32:00)
X,Y,Z,I,J,分别表示数据格式,我当时做的一个河道的地形,x,y是坐标,z是高程,i,j为网格编号
zone i=61,j=71 f=POINT呢?
i=61说明网格节点61个,j=71说明总共有71个断面,f=POINT说明数据是以点的方式存的
根据你的数据和实现的目标,这些都可以修改
zulsine (2005-6-07 22:36:00)
TITLE="Animate"
VARIABLES=X,Y,Z,I,J
zone i=61,j=3 f=POINT
622265.1 3865216 250 1 69
622242 3865192 237.5 2 69
622218.9 3865168 225 3 69
622197.8 3865141 232.5 4 69
622176.6 3865114 240 5 69
622156.6 3865086 245 6 69
622136.6 3865059 250 7 69
622117.8 3865030 243.5 8 69
622098.8 3865001 237 9 69
622080.8 3864972 243.5 10 69
622062.6 3864943 250 11 69
622045.1 3864913 260 12 69
622027.7 3864883 270 13 69
622010.7 3864853 270 14 69
621993.7 3864823 270 15 69
621976.9 3864793 266 16 69
621960.2 3864763 262 17 69
621943.6 3864732 271 18 69
621927.1 3864702 280 19 69
621910.6 3864672 267.5 20 69
621894.1 3864641 255 21 69
621877.6 3864611 272.5 22 69
621861.2 3864580 290 23 69
621844.8 3864550 293.5 24 69
621828.4 3864519 297 25 69
621811.9 3864489 293.5 26 69
621795.5 3864458 290 27 69
621779 3864427 280 28 69
621762.5 3864397 270 29 69
621746 3864366 262.5 30 69
621729.5 3864336 255 31 69
621713.1 3864305 250 32 69
621696.6 3864274 245 33 69
621680.1 3864244 205.5 34 69
621663.7 3864213 166 35 69
621647.4 3864182 140 36 69
621631 3864151 129.8 37 69
621614.8 3864121 127.6 38 69
621598.5 3864090 125.8 39 69
621582.5 3864059 128.2 40 69
621566.5 3864027 134 41 69
621550.8 3863996 136 42 69
621535 3863965 138 43 69
621519.6 3863933 139.2 44 69
621504.3 3863902 143.1 45 69
621489.5 3863870 147 46 69
621474.6 3863838 148 47 69
621460.4 3863806 154 48 69
621446.1 3863774 160 49 69
621432.6 3863741 164 50 69
621419.1 3863708 168 51 69
621406.5 3863675 186.5 52 69
621393.9 3863642 205 53 69
621382.4 3863608 207.5 54 69
621370.9 3863574 210 55 69
621360.7 3863540 210 56 69
621350.5 3863506 210 57 69
621342.7 3863471 205 58 69
621334.9 3863437 200 59 69
621328 3863402 206 60 69
621321.1 3863368 212 61 69
622285.05 3865200.5 256 1 70
622262.45 3865176 240.5 2 70
622239.85 3865152 225 3 70
622219.3 3865125 229.25 4 70
622198.65 3865098.5 233.5 5 70
622179.25 3865070.5 235.5 6 70
622159.9 3865043.5 237.5 7 70
622141.7 3865014.5 238.5 8 70
622123.4 3864986 239.5 9 70
622106.1 3864957 249 10 70
622088.65 3864928 258.5 11 70
622071.85 3864898 268.5 12 70
622055.15 3864868 278.5 13 70
622038.9 3864838 273 14 70
622022.65 3864808 267.5 15 70
622006.65 3864778 260.5 16 70
621990.65 3864748 253.5 17 70
621974.85 3864717.5 261.75 18 70
621959.05 3864687.5 270 19 70
621943.35 3864657 260 20 70
621927.6 3864626.5 250 21 70
621911.95 3864596.5 265 22 70
621896.25 3864565.5 280 23 70
621880.6 3864535.5 283 24 70
621864.95 3864504.5 286 25 70
621849.25 3864474.5 281.75 26 70
621833.6 3864443.5 277.5 27 70
621817.9 3864413 275 28 70
621802.2 3864382.5 272.5 29 70
621786.45 3864352 267.5 30 70
621770.75 3864321.5 262.5 31 70
621755.1 3864291 253.75 32 70
621739.4 3864260 245 33 70
621723.7 3864230 205.75 34 70
621708.05 3864199 166.5 35 70
621692.5 3864168.5 145 36 70
621676.9 3864137.5 133.9 37 70
621661.45 3864107 129.15 38 70
621646 3864076 127.7 39 70
621630.8 3864045.5 128.3 40 70
621615.55 3864014 131 41 70
621600.6 3863983 134.5 42 70
621585.6 3863951.5 137.3 43 70
621571 3863920 138.1 44 70
621556.45 3863889 140.8 45 70
621542.4 3863857 143.75 46 70
621528.2 3863825.5 145 47 70
621514.75 3863793.5 151 48 70
621501.2 3863761.5 158 49 70
621488.45 3863729 161.75 50 70
621475.6 3863696.5 165.5 51 70
621463.65 3863663.5 176 52 70
621451.7 3863631 186.5 53 70
621440.8 3863597.5 189.5 54 70
621429.9 3863564 192.5 55 70
621420.2 3863530 195.75 56 70
621410.5 3863496.5 199 57 70
621403.05 3863461.5 198.25 58 70
621395.6 3863427.5 197.5 59 70
621388.9 3863392.5 204.25 60 70
621382.2 3863358 211 61 70
622305 3865185 262 1 71
622282.9 3865160 243.5 2 71
622260.8 3865136 225 3 71
622240.8 3865109 226 4 71
622220.7 3865083 227 5 71
622201.9 3865055 226 6 71
622183.2 3865028 225 7 71
622165.6 3864999 233.5 8 71
622148 3864971 242 9 71
622131.4 3864942 254.5 10 71
622114.7 3864913 267 11 71
622098.6 3864883 277 12 71
622082.6 3864853 287 13 71
622067.1 3864823 276 14 71
622051.6 3864793 265 15 71
622036.4 3864763 255 16 71
622021.1 3864733 245 17 71
622006.1 3864703 252.5 18 71
621991 3864673 260 19 71
621976.1 3864642 252.5 20 71
621961.1 3864612 245 21 71
621946.3 3864582 257.5 22 71
621931.3 3864551 270 23 71
621916.4 3864521 272.5 24 71
621901.5 3864490 275 25 71
621886.6 3864460 270 26 71
621871.7 3864429 265 27 71
621856.8 3864399 270 28 71
621841.9 3864368 275 29 71
621826.9 3864338 272.5 30 71
621812 3864307 270 31 71
621797.1 3864277 257.5 32 71
621782.2 3864246 245 33 71
621767.3 3864216 206 34 71
621752.4 3864185 167 35 71
621737.6 3864155 150 36 71
621722.8 3864124 138 37 71
621708.1 3864093 130.7 38 71
621693.5 3864062 129.6 39 71
621679.1 3864032 128.4 40 71
621664.6 3864001 128 41 71
621650.4 3863970 133 42 71
621636.2 3863938 136.6 43 71
621622.4 3863907 137 44 71
621608.6 3863876 138.5 45 71
621595.3 3863844 140.5 46 71
621581.8 3863813 142 47 71
621569.1 3863781 148 48 71
621556.3 3863749 156 49 71
621544.3 3863717 159.5 50 71
621532.1 3863685 163 51 71
621520.8 3863652 165.5 52 71
621509.5 3863620 168 53 71
621499.2 3863587 171.5 54 71
621488.9 3863554 175 55 71
621479.7 3863520 181.5 56 71
621470.5 3863487 188 57 71
621463.4 3863452 191.5 58 71
621456.3 3863418 195 59 71
621449.8 3863383 202.5 60 71
621443.3 3863348 210 61 71
转自:http://blog.sina.com.cn/s/blog_a319f5ff0101l1if.html
页:
[1]