|
|
◆ writevtkug()
| def writevtkug |
( |
fname |
, |
|
|
n |
, |
|
|
x |
, |
|
|
y |
, |
|
|
z |
, |
|
|
ne |
, |
|
|
kc |
, |
|
|
u |
|
|
) |
| |
Write coordinates and their values to VTK file (Solution of PDE by FEM)
- Purpose
- Write solution of PDE by FEM to the VTK file (including mesh information).
- 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. (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.
= 15: 1-node point. |
| [in] | u | Numpy ndarray (1-dimensional, float, n)
Values at the points. |
|