|
|
◆ writegmsh22()
| def writegmsh22 |
( |
fname |
, |
|
|
n |
, |
|
|
x |
, |
|
|
y |
, |
|
|
z |
, |
|
|
ne |
, |
|
|
kc |
, |
|
|
lb |
|
|
) |
| |
Write FEM mesh information to Gmsh file
- Purpose
- Write FEM mesh information to the file in Gmsh format (Version 2.2).
- Returns
- info (int)
= 0: Successful exit.
= i < 0: The (-i)-th argument is invalid or has an illegal value.
= 11: File open error.
= 12: Invalid element type.
- Parameters
-
| [in] | fname | Output file name. |
| [in] | n | Number of points. |
| [in] | x | Numpy ndarray (1-dimensional, float, n)
x-coordinates of nodes. |
| [in] | y | Numpy ndarray (1-dimensional, float, n)
y-coordinates of nodes. |
| [in] | z | Numpy ndarray (1-dimensional, float, n)
z-coordinates of nodes. |
| [in] | ne | Number of elements of FEM (including boundary elements). (ne >= 1) |
| [in] | kc | Numpy ndarray (2-dimensional, int32, ldkc x ne) (ldkc = nn + 1 (where nn is the number of nodes in the element))
Connection matrix: kc[k, 0] is the type of element k, kc[k, 1], ..., kc[k, nn] point to the nodes of element k.
The type of element is as follows:
= 1: 2-node line.
= 2: 3-node triangle.
= 3: 4-node quadrangle.
= 4: 4-node tetrahedron.
= 5: 8-node hexahedron.
= 6: 6-node prism.
= 7: 5-node pyramid.
= 8: 3-node second order line.
= 10: 9-node second order quadrangle.
= 11: 10-node second order tetrahedron.
= 12: 27-node second order hexahedron.
= 13: 18-node second order prism.
= 14: 14-node second order pyramid.
= 15: 1-node point.
= 16: 8-node second order quadrangle.
= 17: 20-node second order hexahedron.
= 18: 15-node second order prism.
= 19: 13-node second order pyramid.
= 20: 9-node third order incomplete triangle.
= 21: 10-node third order triangle.
= 22: 12-node fourth order incomplete triangle.
= 23: 15-node fourth order triangle.
= 24: 15-node fifth order incomplete triangle.
= 25: 21-node fifth order complete triangle.
= 26: 4-node third order edge.
= 28: 6-node fifth order edge.
= 29: 20-node third order tetrahedron.
= 30: 35-node fourth order tetrahedron.
= 31: 56-node fifth order tetrahedron.
= 92: 64-node third order hexahedron.
= 93: 125-node fourth order hexahedron. |
| [in] | lb | Numpy ndarray (2-dimensional, int32, ldlb x ne) (ldlb = nlb + 1 (where nlb is the number of labels for the element))
Label numbers of the elements: lb[k, 0] is the number of labels for element k, lb[k, 1], ..., lb[k, nlb] are the labels for the element k. |
|