Created
June 13, 2017 12:42
-
-
Save capitalaslash/cf6d5d14735e79b4e501b28a6696cf4f to your computer and use it in GitHub Desktop.
meshio physical names test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env python2 | |
if __name__ == '__main__': | |
import sys | |
import meshio | |
mesh = meshio.read('triangle_pipe.msh', 'gmsh-ascii') | |
meshio.write('triangle_pipe.vtu', *mesh) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$MeshFormat | |
2.2 0 8 | |
$EndMeshFormat | |
$Nodes | |
6 | |
1 0 0 0 | |
2 1 0 0 | |
3 0 1 0 | |
4 0 0 1 | |
5 1 0 1 | |
6 0 1 1 | |
$EndNodes | |
$Elements | |
11 | |
1 2 2 1 21 1 2 3 | |
2 2 2 3 29 4 1 5 | |
3 2 2 3 29 1 2 5 | |
4 2 2 3 33 5 2 6 | |
5 2 2 3 33 2 3 6 | |
6 2 2 3 37 6 3 1 | |
7 2 2 3 37 6 1 4 | |
8 2 2 2 38 4 5 6 | |
9 4 2 4 1 1 2 3 6 | |
10 4 2 4 1 5 4 6 1 | |
11 4 2 4 1 2 1 5 6 | |
$EndElements |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment