VTK 文件时间序列数据存储示例
vtk DataFile Version 3.0
Time series data ASCII
DATASET UNSTRUCTURED_GRID FIELD FieldData 1 TIME 1 1 float
POINTS 4 float 0 0 0 1 0 0 1 1 0 0 1 0
CELLS 1 5 4 0 1 2 3
CELL_TYPES 1 7
POINT_DATA 4 FIELD FieldData 1 TIME 1 1 float
SCALARS Temperature float LOOKUP_TABLE default 25.0 26.0 27.0 28.0
VECTORS Velocity float 1.0 0.0 0.0 1.0 0.0 0.0 0.0 1.0 0.0 0.0 1.0 0.0
The key to storing time series data in a vtk file is to include the 'TIME' field in the 'FieldData' section. This field specifies the time value for the current data set. In this example, there is only one time step with a value of 1.0.
The data itself is stored in the 'POINT_DATA' section, with each variable (in this case, temperature and velocity) given its own field. The values for each variable are listed for each point in the mesh.
原文地址: https://www.cveoy.top/t/topic/obTr 著作权归作者所有。请勿转载和采集!