PetscViewerVTKFieldType — PETSc 3.25.4 documentation

Skip to main content
`Ctrl`+`K`

# PetscViewerVTKFieldType

Categorizes a field that is being written through a `PETSCVIEWERVTK` viewer so that the VTK writer can place it on the correct mesh entity and with the correct component layout

## Synopsis

    typedef enum {
      PETSC_VTK_INVALID,
      PETSC_VTK_POINT_FIELD,
      PETSC_VTK_POINT_VECTOR_FIELD,
      PETSC_VTK_CELL_FIELD,
      PETSC_VTK_CELL_VECTOR_FIELD
    } PetscViewerVTKFieldType;

## Values

- `PETSC_VTK_INVALID` - sentinel for an uninitialized entry

- `PETSC_VTK_POINT_FIELD` - scalar (or generic multi-component) field stored at mesh points

- `PETSC_VTK_POINT_VECTOR_FIELD` - vector-valued field stored at mesh points

- `PETSC_VTK_CELL_FIELD` - scalar (or generic multi-component) field stored on mesh cells

- `PETSC_VTK_CELL_VECTOR_FIELD` - vector-valued field stored on mesh cells

## See Also

`PETSCVIEWERVTK`, `PetscViewerVTKAddField()`, `PetscViewerVTKOpen()`, `PetscViewer`

## Level

developer

## Location

include/petscviewer.h

Index of all Viewer routines
Table of Contents for all manual pages
Index of all manual pages