|
|
◆ writevtkug()
| void writevtkug |
( |
char * |
fname, |
|
|
int |
n, |
|
|
double |
x[], |
|
|
double |
y[], |
|
|
double |
z[], |
|
|
int |
ne, |
|
|
int |
ldkc, |
|
|
int |
kc[], |
|
|
double |
u[], |
|
|
int * |
info |
|
) |
| |
Write coordinates and their values to VTK (Solution of PDE by FEM)
- Purpose
- Write solution of PDE by FEM to the VTK file (including mesh information).
- Parameters
-
| [in] | fname | Output file name. |
| [in] | n | Number of points. |
| [in] | x[] | Array x[lx] (lx >= n)
x-coordinates of nodes. |
| [in] | y[] | Array y[ly] (ly >= n)
y-coordinates of nodes. |
| [in] | z[] | Arraz z[lz] (lz >= n)
z-coordinates of nodes. |
| [in] | ne | Number of elements of FEM. (ne >= 1) |
| [in] | ldkc | Leading dimension of the array kc[]. (ldkc >= ns + 1 (ns is the number of nodes in the element)) |
| [in] | kc[] | Array kc[ldkc*lkc] (lkc >= ne)
Connection matrix: kc[ldkc*(k-1)] is the type of element k, kc[ldkc*(k-1) + 1], ..., kc[ldkc*(k-1) + ns] 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[] | Arrau u[lu] (lu >= n)
Values at the points. |
| [out] | info | Return code.
= 0: Normal return.
= i < 0: The (-i)-th argument is invalid or has an illegal value.
= 11: File open error.
= 12: Invalid element type. |
|