Skip to content

Lib_VTK_IO_GEO

GEO interface definition for Lib_VTK_IO.

Source: src/third_party/VTKFortran/references/legacy/Lib_VTK_IO_GEO.f90

Dependencies

Contents

Interfaces

VTK_GEO

Procedure for saving mesh with different topologies in VTK-legacy standard.

VTK_GEO is an interface to 16 different functions, there are 2 functions for each of 4 different topologies actually supported: one function for mesh coordinates with R8P precision and one for mesh coordinates with R4P precision.

@note This function must be called after VTK_INI. It saves the mesh geometry. The inputs that must be passed change depending on the topologies chosen. Not all VTK topologies have been implemented (polydata topologies are absent).

Examples of usage

Structured points calling

fortran
 integer(I4P):: Nx,Ny,Nz
 real(I8P)::    X0,Y0,Z0,Dx,Dy,Dz
 ...
 E_IO=VTK_GEO(Nx,Ny,Nz,X0,Y0,Z0,Dx,Dy,Dz)
 ...

Structured grid calling

fortran
 integer(I4P):: Nx,Ny,Nz,Nnodes
 real(R8P)::    X(1:Nnodes),Y(1:Nnodes),Z(1:Nnodes)
 ...
 E_IO=VTK_GEO(Nx,Ny,Nz,Nnodes,X,Y,Z)
 ...

Rectilinear grid calling

fortran
 integer(I4P):: Nx,Ny,Nz
 real(R8P)::    X(1:Nx),Y(1:Ny),Z(1:Nz)
 ...
 E_IO=VTK_GEO(Nx,Ny,Nz,X,Y,Z)
 ...

Unstructured grid calling

fortran
 integer(I4P):: NN
 real(R4P)::    X(1:NN),Y(1:NN),Z(1:NN)
 ...
 E_IO=VTK_GEO(NN,X,Y,Z)
 ...

Module procedures: VTK_GEO_UNST_R8, VTK_GEO_UNST_P_R8, VTK_GEO_UNST_R4, VTK_GEO_UNST_P_R4, VTK_GEO_STRP_R8, VTK_GEO_STRP_R4, VTK_GEO_STRG_1DA_R8, VTK_GEO_STRG_3DA_R8, VTK_GEO_STRG_1DAP_R8, VTK_GEO_STRG_3DAP_R8, VTK_GEO_STRG_1DA_R4, VTK_GEO_STRG_3DA_R4, VTK_GEO_STRG_1DAP_R4, VTK_GEO_STRG_3DAP_R4, VTK_GEO_RECT_R8, VTK_GEO_RECT_R4

Functions

VTK_GEO_STRP_R8

Function for saving mesh with STRUCTURED_POINTS topology (R8P).

Returns: integer(kind=I4P)

fortran
function VTK_GEO_STRP_R8(Nx, Ny, Nz, X0, Y0, Z0, Dx, Dy, Dz, cf) result(E_IO)

Arguments

NameTypeIntentAttributesDescription
Nxinteger(kind=I4P)inNumber of nodes in x direction.
Nyinteger(kind=I4P)inNumber of nodes in y direction.
Nzinteger(kind=I4P)inNumber of nodes in z direction.
X0real(kind=R8P)inX coordinate of origin.
Y0real(kind=R8P)inY coordinate of origin.
Z0real(kind=R8P)inZ coordinate of origin.
Dxreal(kind=R8P)inSpace step in x direction.
Dyreal(kind=R8P)inSpace step in y direction.
Dzreal(kind=R8P)inSpace step in z direction.
cfinteger(kind=I4P)inoptionalCurrent file index (for concurrent files IO).

Call graph

VTK_GEO_STRP_R4

Function for saving mesh with STRUCTURED_POINTS topology (R4P).

Returns: integer(kind=I4P)

fortran
function VTK_GEO_STRP_R4(Nx, Ny, Nz, X0, Y0, Z0, Dx, Dy, Dz, cf) result(E_IO)

Arguments

NameTypeIntentAttributesDescription
Nxinteger(kind=I4P)inNumber of nodes in x direction.
Nyinteger(kind=I4P)inNumber of nodes in y direction.
Nzinteger(kind=I4P)inNumber of nodes in z direction.
X0real(kind=R4P)inX coordinate of origin.
Y0real(kind=R4P)inY coordinate of origin.
Z0real(kind=R4P)inZ coordinate of origin.
Dxreal(kind=R4P)inSpace step in x direction.
Dyreal(kind=R4P)inSpace step in y direction.
Dzreal(kind=R4P)inSpace step in z direction.
cfinteger(kind=I4P)inoptionalCurrent file index (for concurrent files IO).

Call graph

VTK_GEO_STRG_1DA_R8

Function for saving mesh with STRUCTURED_GRID topology (R8P, 1D arrays).

Returns: integer(kind=I4P)

fortran
function VTK_GEO_STRG_1DA_R8(Nx, Ny, Nz, NN, X, Y, Z, cf) result(E_IO)

Arguments

NameTypeIntentAttributesDescription
Nxinteger(kind=I4P)inNumber of nodes in x direction.
Nyinteger(kind=I4P)inNumber of nodes in y direction.
Nzinteger(kind=I4P)inNumber of nodes in z direction.
NNinteger(kind=I4P)inNumber of all nodes.
Xreal(kind=R8P)inX coordinates [1:NN].
Yreal(kind=R8P)inY coordinates [1:NN].
Zreal(kind=R8P)inZ coordinates [1:NN].
cfinteger(kind=I4P)inoptionalCurrent file index (for concurrent files IO).

Call graph

VTK_GEO_STRG_1DAP_R8

Function for saving mesh with STRUCTURED_GRID topology (R8P, 1D arrays, packed API).

Returns: integer(kind=I4P)

fortran
function VTK_GEO_STRG_1DAP_R8(Nx, Ny, Nz, NN, XYZ, cf) result(E_IO)

Arguments

NameTypeIntentAttributesDescription
Nxinteger(kind=I4P)inNumber of nodes in x direction.
Nyinteger(kind=I4P)inNumber of nodes in y direction.
Nzinteger(kind=I4P)inNumber of nodes in z direction.
NNinteger(kind=I4P)inNumber of all nodes.
XYZreal(kind=R8P)inX, Y and Z coordinates [1:3,1:NN].
cfinteger(kind=I4P)inoptionalCurrent file index (for concurrent files IO).

Call graph

VTK_GEO_STRG_3DA_R8

Function for saving mesh with STRUCTURED_GRID topology (R8P, 3D arrays).

Returns: integer(kind=I4P)

fortran
function VTK_GEO_STRG_3DA_R8(Nx, Ny, Nz, NN, X, Y, Z, cf) result(E_IO)

Arguments

NameTypeIntentAttributesDescription
Nxinteger(kind=I4P)inNumber of nodes in x direction.
Nyinteger(kind=I4P)inNumber of nodes in y direction.
Nzinteger(kind=I4P)inNumber of nodes in z direction.
NNinteger(kind=I4P)inNumber of all nodes.
Xreal(kind=R8P)inX coordinates [1:Nx,1:Ny,1:Nz].
Yreal(kind=R8P)inY coordinates [1:Nx,1:Ny,1:Nz].
Zreal(kind=R8P)inZ coordinates [1:Nx,1:Ny,1:Nz].
cfinteger(kind=I4P)inoptionalCurrent file index (for concurrent files IO).

Call graph

VTK_GEO_STRG_3DAP_R8

Function for saving mesh with STRUCTURED_GRID topology (R8P, 3D arrays, packed API).

Returns: integer(kind=I4P)

fortran
function VTK_GEO_STRG_3DAP_R8(Nx, Ny, Nz, NN, XYZ, cf) result(E_IO)

Arguments

NameTypeIntentAttributesDescription
Nxinteger(kind=I4P)inNumber of nodes in x direction.
Nyinteger(kind=I4P)inNumber of nodes in y direction.
Nzinteger(kind=I4P)inNumber of nodes in z direction.
NNinteger(kind=I4P)inNumber of all nodes.
XYZreal(kind=R8P)inX, Y and Z coordinates [1:3,1:Nx,1:Ny,1:Nz].
cfinteger(kind=I4P)inoptionalCurrent file index (for concurrent files IO).

Call graph

VTK_GEO_STRG_1DA_R4

Function for saving mesh with STRUCTURED_GRID topology (R4P, 1D arrays).

Returns: integer(kind=I4P)

fortran
function VTK_GEO_STRG_1DA_R4(Nx, Ny, Nz, NN, X, Y, Z, cf) result(E_IO)

Arguments

NameTypeIntentAttributesDescription
Nxinteger(kind=I4P)inNumber of nodes in x direction.
Nyinteger(kind=I4P)inNumber of nodes in y direction.
Nzinteger(kind=I4P)inNumber of nodes in z direction.
NNinteger(kind=I4P)inNumber of all nodes.
Xreal(kind=R4P)inX coordinates [1:NN].
Yreal(kind=R4P)inY coordinates [1:NN].
Zreal(kind=R4P)inZ coordinates [1:NN].
cfinteger(kind=I4P)inoptionalCurrent file index (for concurrent files IO).

Call graph

VTK_GEO_STRG_1DAP_R4

Function for saving mesh with STRUCTURED_GRID topology (R4P, 1D arrays, packed API).

Returns: integer(kind=I4P)

fortran
function VTK_GEO_STRG_1DAP_R4(Nx, Ny, Nz, NN, XYZ, cf) result(E_IO)

Arguments

NameTypeIntentAttributesDescription
Nxinteger(kind=I4P)inNumber of nodes in x direction.
Nyinteger(kind=I4P)inNumber of nodes in y direction.
Nzinteger(kind=I4P)inNumber of nodes in z direction.
NNinteger(kind=I4P)inNumber of all nodes.
XYZreal(kind=R4P)inX, Y and Z coordinates [1:3,1:NN].
cfinteger(kind=I4P)inoptionalCurrent file index (for concurrent files IO).

Call graph

VTK_GEO_STRG_3DA_R4

Function for saving mesh with STRUCTURED_GRID topology (R4P, 3D arrays).

Returns: integer(kind=I4P)

fortran
function VTK_GEO_STRG_3DA_R4(Nx, Ny, Nz, NN, X, Y, Z, cf) result(E_IO)

Arguments

NameTypeIntentAttributesDescription
Nxinteger(kind=I4P)inNumber of nodes in x direction.
Nyinteger(kind=I4P)inNumber of nodes in y direction.
Nzinteger(kind=I4P)inNumber of nodes in z direction.
NNinteger(kind=I4P)inNumber of all nodes.
Xreal(kind=R4P)inX coordinates [1:Nx,1:Ny,1:Nz].
Yreal(kind=R4P)inY coordinates [1:Nx,1:Ny,1:Nz].
Zreal(kind=R4P)inZ coordinates [1:Nx,1:Ny,1:Nz].
cfinteger(kind=I4P)inoptionalCurrent file index (for concurrent files IO).

Call graph

VTK_GEO_STRG_3DAP_R4

Function for saving mesh with STRUCTURED_GRID topology (R4P, 3D arrays, packed API).

Returns: integer(kind=I4P)

fortran
function VTK_GEO_STRG_3DAP_R4(Nx, Ny, Nz, NN, XYZ, cf) result(E_IO)

Arguments

NameTypeIntentAttributesDescription
Nxinteger(kind=I4P)inNumber of nodes in x direction.
Nyinteger(kind=I4P)inNumber of nodes in y direction.
Nzinteger(kind=I4P)inNumber of nodes in z direction.
NNinteger(kind=I4P)inNumber of all nodes.
XYZreal(kind=R4P)inX, Y and Z coordinates [1:3,1:Nx,1:Ny,1:Nz].
cfinteger(kind=I4P)inoptionalCurrent file index (for concurrent files IO).

Call graph

VTK_GEO_RECT_R8

Function for saving mesh with RECTILINEAR_GRID topology (R8P).

Returns: integer(kind=I4P)

fortran
function VTK_GEO_RECT_R8(Nx, Ny, Nz, X, Y, Z, cf) result(E_IO)

Arguments

NameTypeIntentAttributesDescription
Nxinteger(kind=I4P)inNumber of nodes in x direction.
Nyinteger(kind=I4P)inNumber of nodes in y direction.
Nzinteger(kind=I4P)inNumber of nodes in z direction.
Xreal(kind=R8P)inX coordinates.
Yreal(kind=R8P)inY coordinates.
Zreal(kind=R8P)inZ coordinates.
cfinteger(kind=I4P)inoptionalCurrent file index (for concurrent files IO).

Call graph

VTK_GEO_RECT_R4

Function for saving mesh with RECTILINEAR_GRID topology (R4P).

Returns: integer(kind=I4P)

fortran
function VTK_GEO_RECT_R4(Nx, Ny, Nz, X, Y, Z, cf) result(E_IO)

Arguments

NameTypeIntentAttributesDescription
Nxinteger(kind=I4P)inNumber of nodes in x direction.
Nyinteger(kind=I4P)inNumber of nodes in y direction.
Nzinteger(kind=I4P)inNumber of nodes in z direction.
Xreal(kind=R4P)inX coordinates.
Yreal(kind=R4P)inY coordinates.
Zreal(kind=R4P)inZ coordinates.
cfinteger(kind=I4P)inoptionalCurrent file index (for concurrent files IO).

Call graph

VTK_GEO_UNST_R8

Function for saving mesh with UNSTRUCTURED_GRID topology (R8P).

Returns: integer(kind=I4P)

fortran
function VTK_GEO_UNST_R8(NN, X, Y, Z, cf) result(E_IO)

Arguments

NameTypeIntentAttributesDescription
NNinteger(kind=I4P)inNumber of nodes.
Xreal(kind=R8P)inX coordinates of all nodes [1:NN].
Yreal(kind=R8P)inY coordinates of all nodes [1:NN].
Zreal(kind=R8P)inZ coordinates of all nodes [1:NN].
cfinteger(kind=I4P)inoptionalCurrent file index (for concurrent files IO).

Call graph

VTK_GEO_UNST_P_R8

Function for saving mesh with UNSTRUCTURED_GRID topology (R8P, packed API).

Returns: integer(kind=I4P)

fortran
function VTK_GEO_UNST_P_R8(NN, XYZ, cf) result(E_IO)

Arguments

NameTypeIntentAttributesDescription
NNinteger(kind=I4P)inNumber of nodes.
XYZreal(kind=R8P)inX, Y and Z coordinates of all nodes [1:3,1:NN].
cfinteger(kind=I4P)inoptionalCurrent file index (for concurrent files IO).

Call graph

VTK_GEO_UNST_R4

Function for saving mesh with UNSTRUCTURED_GRID topology (R4P).

Returns: integer(kind=I4P)

fortran
function VTK_GEO_UNST_R4(NN, X, Y, Z, cf) result(E_IO)

Arguments

NameTypeIntentAttributesDescription
NNinteger(kind=I4P)innumber of nodes.
Xreal(kind=R4P)inX coordinates of all nodes [1:NN].
Yreal(kind=R4P)inY coordinates of all nodes [1:NN].
Zreal(kind=R4P)inZ coordinates of all nodes [1:NN].
cfinteger(kind=I4P)inoptionalCurrent file index (for concurrent files IO).

Call graph

VTK_GEO_UNST_P_R4

Function for saving mesh with UNSTRUCTURED_GRID topology (R4P, packed API).

Returns: integer(kind=I4P)

fortran
function VTK_GEO_UNST_P_R4(NN, XYZ, cf) result(E_IO)

Arguments

NameTypeIntentAttributesDescription
NNinteger(kind=I4P)innumber of nodes.
XYZreal(kind=R4P)inX, Y and Z coordinates of all nodes [1:3,1:NN].
cfinteger(kind=I4P)inoptionalCurrent file index (for concurrent files IO).

Call graph