meshio可以解决各种标准格式网格之间的读取,写入和转换。
There are various mesh formats available for representing unstructured meshes. meshio can read and write all of the following and smoothly converts between them:
Abaqus、ANSYS msh、DOLFIN XML、Exodus、FLAC3D、H5M、Kratos/MDPA、Medit、MED/Salome、Nastran (bulk data)、Gmsh (versions 2 and 4)、OFF、PERMAS、STL、TetGen .node/.ele、SVG (2D only, output only)、VTK、VTU、XDMF
reference: https://github.com/nschloe/meshio/blob/main/README.md
安装
pip3 install meshio[all] --user
Spyder:!pip install meshio
读取
meshio主要是字典操作,存储的数据及source code可见下图
节点
![]() |
![]() |
---|---|
cells
![]() |
![]() |
---|---|
写入
转换
Time series
Time series
The XDMF format supports time series with a shared mesh. You can write times series data using meshio with
and read it with
Comments NOTHING