XLPack 7.0
Python API Reference Manual
Loading...
Searching...
No Matches

◆ writevtkug()

def writevtkug ( fname  ,
,
,
,
,
ne  ,
kc  ,
 
)

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]fnameOutput file name.
[in]nNumber of points.
[in]xNumpy ndarray (1-dimensional, float, n)
x-coordinates of nodes.
[in]yNumpy ndarray (1-dimensional, float, n)
y-coordinates of nodes.
[in]zNumpy ndarray (1-dimensional, float, n)
z-coordinates of nodes.
[in]neNumber of elements of FEM. (ne >= 1)
[in]kcNumpy 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]uNumpy ndarray (1-dimensional, float, n)
Values at the points.