一、openfoam生成的非均勻固體Solid數據分析
對于Solid/dealii-output文件,固體的數據文件,
# vtk DataFile Version 3.0
#This file was generated by the deal.II library on 2024/7/10 at 9:46:15
ASCII
DATASET UNSTRUCTURED_GRIDPOINTS 108000 double
0 0 -1.524
0.009525 0 -1.524
0.01905 0 -1.524
5.71584e-08 0.013716 -1.524
0.00952503 0.013716 -1.524
0.01905 0.013716 -1.524
6.28932e-08 0.027432 -1.524
……
(共20多萬行)
數據解析如下:? ? ??
line 8:points 108000 ? # 代表108000個point
line 108008:CELLS 4000 112000 ? #應該是4000個cell
line 112012 POINT_DATA 108000 ? #代表108000個 VECTORS displacement數據
line 112013:VECTORS displacement double #矢量數據位置,108000行,每行是三元組
line 220014: SCALARS strain_xx double 1 ?#占1行,后面跟了一大行數據,但是一行里預計有108000個strain_xx數據,SCALARS代表標量
line 220017:SCALARS strain_xy double 1
line 220018: SCALARS strain_xy double 1
后面跟的都是這幾個數據(strai_xx,xy,xz,……)
共220040行
然后看paraview中展示的??
在Solid/linear_elasticity.prm文件里
?set Mesh n_x ? ? ? ? ? ?= 8
? set Mesh n_y ? ? ? ? ? ?= 25
? set Mesh n_z ? ? ? ? ? ?= 20 ?# 100
這個8x25x20 = 4000個cell,定義cell數目
故在paraview的information中能看到
cells:4000
points:108000
>>>>>>>>>>cells中一個單元格由27個point組成,27:表示這個單元由27個頂點組成。所以4000個cellx27(每個cell由27個point表示) = 108000個point
根據上面分析,也就是說固體方面:108000個points的坐標在變化,4000個cell是不變的(因為對points序號),還有cell的位移值(等屬性值)4000個矢量是變化的,其他不變。
二、VTK數據格式分析
這個部分可以參照官網的解析:
3. Understanding Data — ParaView Documentation 5.11.0 documentation
三、paraview官方用戶指導文檔和使用方法
官網文檔鏈接:在paraview軟件中,點擊工具欄中的help->paraview guide 即可直接跳轉到瀏覽器打開官網指導頁面。
官網鏈接如下:Welcome to ParaView Documentation ! — ParaView Documentation 5.11.0 documentation
?指導手冊如下:(屬于上面鏈接里的)
ParaView Reference Manual — ParaView Documentation 5.11.0 documentation
用戶指導如下:(屬于上面鏈接里的)
ParaView User’s Guide — ParaView Documentation 5.11.0 documentation