Dune Core Modules (2.6.0)

Dune::VTK::FieldInfo Class Reference

Descriptor struct for VTK fields. More...

#include <dune/grid/io/file/vtk/common.hh>

Public Types

enum class  Type { scalar , vector , tensor }
 VTK data type. More...
 

Public Member Functions

 FieldInfo (std::string name, Type type, std::size_t size)
 Create a FieldInfo instance with the given name, type and size.
 
std::string name () const
 The name of the data field.
 
Type type () const
 The type of the data field.
 
std::size_t size () const
 The number of components in the data field.
 

Detailed Description

Descriptor struct for VTK fields.

This struct provides general information about a data field to be written to a VTK file.

It currently stores the data type and the number of components as well as the name of the field.

Member Enumeration Documentation

◆ Type

VTK data type.

Enumerator
scalar 

scalar field (may also be multi-component, but is treated as a simply array by ParaView

vector 

vector-valued field (always 3D, will be padded if necessary)

tensor 

tensor field (always 3x3)


The documentation for this class was generated from the following file:
Creative Commons License   |  Legal Statements / Impressum  |  Hosted by TU Dresden  |  generated with Hugo v0.80.0 (Apr 27, 22:29, 2024)