Dune Core Modules (unstable)

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, Precision prec=Precision::float32)
 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.
 
Precision precision () const
 The precision used for the output of 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 18, 22:30, 2024)