Skip to content

vtk_fortran_pvtk_file

Parallel (partioned) VTK file class.

Source: src/lib/vtk_fortran_pvtk_file.f90

Dependencies

Contents

Derived Types

pvtk_file

VTK parallel (partioned) file class.

Components

NameTypeAttributesDescription
xml_writerclass(xml_writer_abstract)allocatableXML writer.

Type-Bound Procedures

NameAttributesDescription
initializepass(self)Initialize file.
finalizepass(self)Finalize file.

Functions

initialize

Initialize file (writer).

@note This function must be the first to be called.

Supported topologies are:

  • PRectilinearGrid;
  • PStructuredGrid;
  • PUnstructuredGrid.

Example of usage

fortran
 type(pvtk_file) :: pvtk
 integer(I4P)    :: nx1, nx2, ny1, ny2, nz1, nz2
 ...
 error = pvtk%initialize('XML_RECT_BINARY.pvtr','PRectilinearGrid',nx1=nx1,nx2=nx2,ny1=ny1,ny2=ny2,nz1=nz1,nz2=nz2)
 ...

@note The file extension is necessary in the file name. The XML standard has different extensions for each different topologies (e.g. pvtr for rectilinear topology). See the VTK-standard file for more information.

Returns: integer(kind=I4P)

fortran
function initialize(self, filename, mesh_topology, mesh_kind, nx1, nx2, ny1, ny2, nz1, nz2) result(error)

Arguments

NameTypeIntentAttributesDescription
selfclass(pvtk_file)inoutVTK file.
filenamecharacter(len=*)inFile name.
mesh_topologycharacter(len=*)inMesh topology.
mesh_kindcharacter(len=*)inKind of mesh data: Float64, Float32, ecc.
nx1integer(kind=I4P)inoptionalInitial node of x axis.
nx2integer(kind=I4P)inoptionalFinal node of x axis.
ny1integer(kind=I4P)inoptionalInitial node of y axis.
ny2integer(kind=I4P)inoptionalFinal node of y axis.
nz1integer(kind=I4P)inoptionalInitial node of z axis.
nz2integer(kind=I4P)inoptionalFinal node of z axis.

Call graph

finalize

Finalize file (writer).

Returns: integer(kind=I4P)

fortran
function finalize(self) result(error)

Arguments

NameTypeIntentAttributesDescription
selfclass(pvtk_file)inoutVTK file.

Call graph