Loading...
Searching...
No Matches
vtuSizing Class Reference

Sizing descriptions and routines for transcribing an OpenFOAM volume mesh into a VTK unstructured grid, with possible decomposition of polyhedral cells into primitive cell types. More...

#include <foamVtuSizing.H>

Inheritance diagram for vtuSizing:

Public Types

enum class  contentType : unsigned char {
  LEGACY , XML , INTERNAL1 , INTERNAL2 ,
  HDF
}
 Types of content that the storage may represent. More...
enum class  slotType : unsigned char {
  CELLS , CELLS_OFFSETS , FACES , FACES_OFFSETS ,
  POLY_FACEIDS , POLY_FACEIDS_OFFSETS
}
 The possible storage 'slots' that can be used. More...
enum class  selectionModeType : unsigned char { FULL_MESH , SUBSET_MESH , SHAPE_MESH }
 How the mesh cells have been selected or defined. More...

Public Member Functions

 vtuSizing () noexcept
 Default construct.
 vtuSizing (const polyMesh &mesh)
 Construct sizing by analyzing the mesh.
 vtuSizing (const polyMesh &mesh, const bool decompose)
 Construct sizing by analyzing the mesh.
void reset (const polyMesh &mesh, const bool decompose=false)
 Reset sizing by analyzing the mesh.
void reset (const polyMesh &mesh, const labelUList &subsetCellsIds, const bool decompose=false)
 Reset sizing by analyzing a subset of the mesh.
void resetShapes (const UList< cellShape > &shapes)
 Reset sizing using primitive shapes only (ADVANCED USAGE).
void clear () noexcept
 Reset all sizes to zero.
bool decompose () const noexcept
 Query the decompose flag (normally off).
bool manifold () const noexcept
 Manifold mesh cells detected? Globally consistent quantity.
selectionModeType selectionMode () const noexcept
 Query how the mesh cells have been selected or defined.
bool hasPolyCells () const noexcept
 Has polyhedral cells?
label nCells () const noexcept
 Number of cells for the mesh.
label nPoints () const noexcept
 Number of points for the mesh.
label nVertLabels () const noexcept
 Number of vertex labels for the mesh.
label nFaceLabels () const noexcept
 Number of polyhedral face labels for the mesh, without any prefixing information.
label nFaceLabels (contentType output) const
 Number of polyhedral face labels for the mesh with format-dependent prefixing information.
label nCellsPoly () const noexcept
 Number of output polyhedral cells for the mesh.
label nFacesPoly () const noexcept
 Number of (non-unique) faces used by polyhedral cells.
label nVertPoly () const noexcept
 Number of vertex labels for polyhedral cells of the mesh.
label nAddCells () const noexcept
 Number of additional (decomposed) cells for the mesh.
label nAddPoints () const noexcept
 Number of additional (decomposed) points for the mesh.
label nAddVerts () const noexcept
 Number of additional (decomposed) vertices for the mesh.
label nFieldCells () const noexcept
 Number of field cells = nCells + nAddCells.
label nFieldPoints () const noexcept
 Number of field points = nPoints + nAddPoints.
void setNumPoints (label n) noexcept
 Alter number of mesh points (ADVANCED USAGE).
void setNumAddPoints (label n) noexcept
 Alter number of additional (cell-centre) points (ADVANCED USAGE).
label sizeOf (const enum contentType output, const enum slotType slot) const noexcept
 Return the required size for the storage slot.
template<vtuSizing::slotType slot>
label sizeOf (contentType output) const noexcept
 Return the required size for the storage slot.
void populateLegacy (const polyMesh &mesh, UList< uint8_t > &cellTypes, labelUList &connectivity, foamVtkMeshMaps &maps) const
 Populate lists for Legacy output.
void populateXml (const polyMesh &mesh, UList< uint8_t > &cellTypes, labelUList &connectivity, labelUList &offsets, labelUList &faces, labelUList &facesOffsets, foamVtkMeshMaps &maps) const
 Populate lists for XML output.
void populateHdf (const polyMesh &mesh, UList< uint8_t > &cellTypes, labelUList &connectivity, labelUList &offsets, labelUList &faces, labelUList &facesOffsets, labelUList &polyFaceIds, labelUList &polyFaceOffsets, foamVtkMeshMaps &maps) const
 Populate lists for HDF output.
void populateInternal (const polyMesh &mesh, UList< uint8_t > &cellTypes, UList< int > &connectivity, UList< int > &offsets, UList< int > &faces, UList< int > &facesOffsets, foamVtkMeshMaps &maps, const enum contentType output) const
 Populate lists for Internal VTK format.
void populateInternal (const polyMesh &mesh, UList< uint8_t > &cellTypes, UList< int > &connectivity, UList< int > &offsets, UList< int > &faces, UList< int > &facesOffsets, labelUList &cellMap, labelUList &addPointsIds, const enum contentType output) const
 Populate lists for Internal VTK format.
void populateInternal (const polyMesh &mesh, UList< uint8_t > &cellTypes, UList< long > &connectivity, UList< long > &offsets, UList< long > &faces, UList< long > &facesOffsets, foamVtkMeshMaps &maps, const enum contentType output) const
 Populate lists for Internal VTK format.
void populateInternal (const polyMesh &mesh, UList< uint8_t > &cellTypes, UList< long > &connectivity, UList< long > &offsets, UList< long > &faces, UList< long > &facesOffsets, labelUList &cellMap, labelUList &addPointsIds, const enum contentType output) const
 Populate lists for Internal VTK format.
void populateInternal (const polyMesh &mesh, UList< uint8_t > &cellTypes, UList< long long > &connectivity, UList< long long > &offsets, UList< long long > &faces, UList< long long > &facesOffsets, foamVtkMeshMaps &maps, const enum contentType output) const
 Populate lists for Internal VTK format.
void populateInternal (const polyMesh &mesh, UList< uint8_t > &cellTypes, UList< long long > &connectivity, UList< long long > &offsets, UList< long long > &faces, UList< long long > &facesOffsets, labelUList &cellMap, labelUList &addPointsIds, const enum contentType output) const
 Populate lists for Internal VTK format.
void info (Ostream &os) const
 Report some information.
bool operator== (const vtuSizing &rhs) const
 Test equality.
bool operator!= (const vtuSizing &rhs) const
 Test inequality.
label sizeLegacy () const
 The calculated size for legacy storage.
label sizeLegacy (slotType slot) const
 The calculated size for legacy storage of the specified slot.
label sizeXml (slotType slot) const
 The calculated size for xml storage of the specified slot.
label sizeInternal1 (slotType slot) const
 The calculated size for vtk-internal storage of the specified slot.
label sizeInternal2 (slotType slot) const
 The calculated size for vtk-internal storage of the specified slot.

Static Public Member Functions

static void renumberVertLabels (labelUList &connectivity, const label pointOffset, const contentType output)
 Renumber vertex labels by (global) point offset.
static void renumberFaceLabels (labelUList &faceLabels, const label pointOffset, const contentType output)
 Renumber faces stream labels by (global) point offset.
static void renumberFaceOffsets (labelUList &faceOffsets, const label beginOffset, const contentType output)
 Renumber face offsets with a specified (global) begin offset.
static labelList copyVertLabels (const labelUList &connectivity, const label pointOffset, const contentType output)
 Copy vertex labels with a (global) point offset.
static labelList copyFaceLabels (const labelUList &faceLabels, const label pointOffset, const contentType output)
 Copy faces stream labels with a (global) point offset.
static labelList copyFaceOffsets (const labelUList &faceOffsets, const label beginOffset, const contentType output)
 Copy face offsets with a specified (global) begin offset.
static void renumberVertLabelsLegacy (labelUList &connectivity, const label pointOffset)
 Renumber vertex labels by (global) point offset - legacy format.
static void renumberVertLabelsXml (labelUList &connectivity, const label pointOffset)
 Renumber vertex labels by (global) point offset - XML format.
static void renumberFaceLabelsXml (labelUList &faceLabels, const label pointOffset)
 Renumber faces stream labels by (global) point offset - XML format.
static void renumberFaceOffsetsXml (labelUList &faceOffsets, const label beginOffset)
 Renumber face offsets with a specified begin offset - XML format.
static labelList copyVertLabelsLegacy (const labelUList &connectivity, const label pointOffset)
 Copy vertex labels with a (global) point offset - legacy format.
static labelList copyVertLabelsXml (const labelUList &connectivity, const label pointOffset)
 Copy vertex labels with a (global) point offset - XML format.
static labelList copyFaceLabelsXml (const labelUList &faceLabels, const label pointOffset)
 Copy faces stream labels with a (global) point offset - XML format.
static labelList copyFaceOffsetsXml (const labelUList &faceOffsets, const label beginOffset)
 Copy face offsets with an offset from previous - XML format.

Protected Member Functions

void populateShapesLegacy (const UList< cellShape > &shapes, UList< uint8_t > &cellTypes, labelUList &connectivity, foamVtkMeshMaps &maps) const
 Reset list for primitive shapes only (ADVANCED USAGE).
void populateShapesXml (const UList< cellShape > &shapes, UList< uint8_t > &cellTypes, labelUList &connectivity, labelUList &offsets, labelUList &faces, labelUList &facesOffsets, foamVtkMeshMaps &maps) const
 Reset list for primitive shapes only (ADVANCED USAGE).

Static Protected Member Functions

static labelList dummyFaceOffsets (const label numCells, const enum contentType output, label beginOffset=0)
 Return a list of dummy faceOffsets.

Detailed Description

Sizing descriptions and routines for transcribing an OpenFOAM volume mesh into a VTK unstructured grid, with possible decomposition of polyhedral cells into primitive cell types.

This class is intended to populate externally allocated arrays with content that is compatible with what VTK expects. This approach allows an improved separation of the OpenFOAM mesh description and the storage, and allows support of alternative storage containers (eg, std::vector, vtkDataArray). The ideal goal would be a zero-copy mechanism, but this does not work for several reasons:

  • OpenFOAM and VTK have different point ordering for prism
  • polyhedral decomposition
  • face-stream are required for VTK
  • VTK internal storage includes list size as part of the data
  • VTK includes storage may be a different base size (eg, long long) compared to the OpenFOAM label.
Data Entries (slots)

These are the storage entries normally associate with each output-type:

legacy output (vtk DataFile Version 2.0)
types vtk cell type (1-255)
cells nLabels and unique vertex labels used by the cell, or
[nLabels nFaces, nFace0Pts, id0,id1,..., nFace1Pts, id0,...]
xml output
types vtk cell type (1-255)
connectivity unique vertex labels used by the cell
offsets end offset for each of connectivity
faces face stream for polyhedral cells
[nFaces, nFace0Pts, id0,id1,..., nFace1Pts, id0,...]
faceoffsets end offset for each of faces, with -1 for primitive cells
internal1 storage (VTK-8 and earlier)
types vtk cell type (1-255)
connectivity nLabels and unique vertex labels used by the cell
location begin location for each of connectivity
faces face stream for polyhedral cells
[nFaces, nFace0Pts, id0,id1,..., nFace1Pts, id0,...]
facelocation begin location for each of faces, with -1 for primitive cells
internal2 storage (with VTK_CELL_ARRAY_V2)
types vtk cell type (1-255)
connectivity unique vertex labels used by the cell
offsets begin/end offsets for connectivity
faces face stream for polyhedral cells
[nFaces, nFace0Pts, id0,id1,..., nFace1Pts, id0,...]
facelocation begin location for each of faces, with -1 for primitive cells
hdf storage (similar to internal2)
Types vtk cell type (1-255)
Connectivity unique vertex labels used by the cell
Offsets begin/end offsets for Connectivity
FaceConnectivity faces for polyhedral cells (their vertex labels)
[id0,id1,...]
FaceOffsets begin/end offsets for FaceConnectivity.
PolyhedronToFaces face ids (faces are defined by FaceOffsets/FaceConnectivity)
PolyhedronOffsets begin/end offsets for PolyhedronToFaces
Has size nCells+1

The VTK storage concept for "connectivity" and "faces" somewhat resemble a CompactListList.

Note
It is possible to specify a global point offset (via the globalIndex) so that the cell point labels will use global numbering. There is no support for point renumbering with merged mesh points, since it likely more efficient to use VTK point-blanking to mark duplicate points instead of merging points ourselves.
The VTK_CELL_ARRAY_V2 define (from vtkCellArray.h) indicates if the new (internal2) new format is being used.
Source files

Definition at line 238 of file foamVtuSizing.H.

Member Enumeration Documentation

◆ contentType

enum class contentType : unsigned char
strong

Types of content that the storage may represent.

Enumerator
LEGACY 

Legacy VTK content.

XML 

XML (VTU) content.

INTERNAL1 

Internal vtkUnstructuredGrid content (old).

INTERNAL2 

Internal vtkUnstructuredGrid content, VTK_CELL_ARRAY_V2.

HDF 

Similar to INTERNAL2, but with VTKHDF specifics.

Definition at line 247 of file foamVtuSizing.H.

◆ slotType

enum class slotType : unsigned char
strong

The possible storage 'slots' that can be used.

Enumerator
CELLS 

Cell connectivity (ALL).

CELLS_OFFSETS 

Cell connectivity offsets: end-offsets (XML), locations (INTERNAL1), begin/end offsets (INTERNAL2, HDF)

FACES 

Polyhedral face-stream (XML, INTERNAL) or face vertices (HDF).

FACES_OFFSETS 

Polyhedral faces offsets: end-offsets (XML), begin locations (INTERNAL), begin/end offsets (HDF)

POLY_FACEIDS 

Polyhedral face lookup (HDF only).

POLY_FACEIDS_OFFSETS 

Polyhedral face lookup offsets (HDF only): per-cell begin/end offsets (HDF) otherwise

Definition at line 259 of file foamVtuSizing.H.

◆ selectionModeType

enum class selectionModeType : unsigned char
strong

How the mesh cells have been selected or defined.

Enumerator
FULL_MESH 

The entire mesh.

SUBSET_MESH 

A mesh subset, using all mesh points.

SHAPE_MESH 

A limited subset of primitive shapes.

Definition at line 283 of file foamVtuSizing.H.

Constructor & Destructor Documentation

◆ vtuSizing() [1/3]

vtuSizing ( )
noexcept

Default construct.

References Foam::noexcept.

Referenced by operator!=(), operator==(), vtuSizing(), and vtuSizing().

Here is the caller graph for this function:

◆ vtuSizing() [2/3]

vtuSizing ( const polyMesh & mesh)
explicit

Construct sizing by analyzing the mesh.

No polyhedral decomposition.

References mesh, and vtuSizing().

Here is the call graph for this function:

◆ vtuSizing() [3/3]

vtuSizing ( const polyMesh & mesh,
const bool decompose )

Construct sizing by analyzing the mesh.

Optionally with polyhedral decomposition.

References decompose(), mesh, and vtuSizing().

Here is the call graph for this function:

Member Function Documentation

◆ populateShapesLegacy()

void populateShapesLegacy ( const UList< cellShape > & shapes,
UList< uint8_t > & cellTypes,
labelUList & connectivity,
foamVtkMeshMaps & maps ) const
protected

Reset list for primitive shapes only (ADVANCED USAGE).

References cellTypes.

◆ populateShapesXml()

void populateShapesXml ( const UList< cellShape > & shapes,
UList< uint8_t > & cellTypes,
labelUList & connectivity,
labelUList & offsets,
labelUList & faces,
labelUList & facesOffsets,
foamVtkMeshMaps & maps ) const
protected

Reset list for primitive shapes only (ADVANCED USAGE).

References cellTypes.

◆ dummyFaceOffsets()

labelList dummyFaceOffsets ( const label numCells,
const enum contentType output,
label beginOffset = 0 )
staticprotected

Return a list of dummy faceOffsets.

◆ reset() [1/2]

void reset ( const polyMesh & mesh,
const bool decompose = false )

Reset sizing by analyzing the mesh.

Optionally with polyhedral decomposition.

References decompose(), mesh, and reset().

Referenced by reset(), and reset().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ reset() [2/2]

void reset ( const polyMesh & mesh,
const labelUList & subsetCellsIds,
const bool decompose = false )

Reset sizing by analyzing a subset of the mesh.

A labelUList::null() selection corresponds to the entire mesh. Polyhedral decomposition is disabled for subsets.

References decompose(), mesh, and reset().

Here is the call graph for this function:

◆ resetShapes()

void resetShapes ( const UList< cellShape > & shapes)

Reset sizing using primitive shapes only (ADVANCED USAGE).

Effectively removes any polyhedrals!

References resetShapes().

Referenced by resetShapes().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ clear()

void clear ( )
noexcept

Reset all sizes to zero.

References clear(), decompose(), manifold(), Foam::noexcept, and selectionMode().

Referenced by clear().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ decompose()

bool decompose ( ) const
inlinenoexcept

Query the decompose flag (normally off).

Definition at line 25 of file foamVtuSizingI.H.

References Foam::noexcept.

Referenced by clear(), vtuCells::reset(), reset(), reset(), vtuCells::vtuCells(), vtuCells::vtuCells(), vtuCells::vtuCells(), vtuCells::vtuCells(), and vtuSizing().

Here is the caller graph for this function:

◆ manifold()

bool manifold ( ) const
inlinenoexcept

Manifold mesh cells detected? Globally consistent quantity.

Definition at line 31 of file foamVtuSizingI.H.

References Foam::noexcept.

Referenced by clear().

Here is the caller graph for this function:

◆ selectionMode()

Foam::vtk::vtuSizing::selectionModeType selectionMode ( ) const
inlinenoexcept

Query how the mesh cells have been selected or defined.

Definition at line 38 of file foamVtuSizingI.H.

References Foam::noexcept.

Referenced by clear(), and vtuCells::useCellMap().

Here is the caller graph for this function:

◆ hasPolyCells()

bool hasPolyCells ( ) const
inlinenoexcept

Has polyhedral cells?

Definition at line 556 of file foamVtuSizing.H.

References hasPolyCells(), and Foam::noexcept.

Referenced by hasPolyCells().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ nCells()

Foam::label nCells ( ) const
inlinenoexcept

Number of cells for the mesh.

Definition at line 44 of file foamVtuSizingI.H.

References Foam::noexcept.

◆ nPoints()

Foam::label nPoints ( ) const
inlinenoexcept

Number of points for the mesh.

Definition at line 50 of file foamVtuSizingI.H.

References Foam::noexcept.

◆ nVertLabels()

Foam::label nVertLabels ( ) const
inlinenoexcept

Number of vertex labels for the mesh.

Definition at line 56 of file foamVtuSizingI.H.

References Foam::noexcept.

◆ nFaceLabels() [1/2]

Foam::label nFaceLabels ( ) const
inlinenoexcept

Number of polyhedral face labels for the mesh, without any prefixing information.

Definition at line 62 of file foamVtuSizingI.H.

References Foam::noexcept.

Referenced by nFaceLabels().

Here is the caller graph for this function:

◆ nFaceLabels() [2/2]

label nFaceLabels ( contentType output) const

Number of polyhedral face labels for the mesh with format-dependent prefixing information.

References nAddCells(), nAddPoints(), nAddVerts(), nCellsPoly(), nFaceLabels(), nFacesPoly(), nFieldCells(), nFieldPoints(), Foam::noexcept, and nVertPoly().

Here is the call graph for this function:

◆ nCellsPoly()

Foam::label nCellsPoly ( ) const
inlinenoexcept

Number of output polyhedral cells for the mesh.

Definition at line 68 of file foamVtuSizingI.H.

References Foam::noexcept.

Referenced by nFaceLabels().

Here is the caller graph for this function:

◆ nFacesPoly()

Foam::label nFacesPoly ( ) const
inlinenoexcept

Number of (non-unique) faces used by polyhedral cells.

Definition at line 74 of file foamVtuSizingI.H.

References Foam::noexcept.

Referenced by nFaceLabels().

Here is the caller graph for this function:

◆ nVertPoly()

Foam::label nVertPoly ( ) const
inlinenoexcept

Number of vertex labels for polyhedral cells of the mesh.

Definition at line 80 of file foamVtuSizingI.H.

References Foam::noexcept.

Referenced by nFaceLabels().

Here is the caller graph for this function:

◆ nAddCells()

Foam::label nAddCells ( ) const
inlinenoexcept

Number of additional (decomposed) cells for the mesh.

Definition at line 86 of file foamVtuSizingI.H.

References Foam::noexcept.

Referenced by nFaceLabels(), and vtuCells::useCellMap().

Here is the caller graph for this function:

◆ nAddPoints()

Foam::label nAddPoints ( ) const
inlinenoexcept

Number of additional (decomposed) points for the mesh.

Definition at line 92 of file foamVtuSizingI.H.

References Foam::noexcept.

Referenced by nFaceLabels().

Here is the caller graph for this function:

◆ nAddVerts()

Foam::label nAddVerts ( ) const
inlinenoexcept

Number of additional (decomposed) vertices for the mesh.

Definition at line 98 of file foamVtuSizingI.H.

References Foam::noexcept.

Referenced by nFaceLabels().

Here is the caller graph for this function:

◆ nFieldCells()

Foam::label nFieldCells ( ) const
inlinenoexcept

Number of field cells = nCells + nAddCells.

Definition at line 104 of file foamVtuSizingI.H.

References Foam::noexcept.

Referenced by vtuAdaptor::internal(), and nFaceLabels().

Here is the caller graph for this function:

◆ nFieldPoints()

Foam::label nFieldPoints ( ) const
inlinenoexcept

Number of field points = nPoints + nAddPoints.

Definition at line 110 of file foamVtuSizingI.H.

References Foam::noexcept.

Referenced by isoSurfaceTopo::isoSurfaceTopo(), and nFaceLabels().

Here is the caller graph for this function:

◆ setNumPoints()

void setNumPoints ( label n)
inlinenoexcept

Alter number of mesh points (ADVANCED USAGE).

Definition at line 632 of file foamVtuSizing.H.

References n, Foam::noexcept, and setNumPoints().

Referenced by isoSurfaceTopo::isoSurfaceTopo(), and setNumPoints().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setNumAddPoints()

void setNumAddPoints ( label n)
inlinenoexcept

Alter number of additional (cell-centre) points (ADVANCED USAGE).

Definition at line 637 of file foamVtuSizing.H.

References n.

◆ sizeOf() [1/2]

label sizeOf ( const enum contentType output,
const enum slotType slot ) const
noexcept

Return the required size for the storage slot.

Referenced by vtuAdaptor::internal(), sizeInternal1(), sizeInternal2(), sizeLegacy(), sizeLegacy(), sizeOf(), and sizeXml().

Here is the caller graph for this function:

◆ sizeOf() [2/2]

template<vtuSizing::slotType slot>
label sizeOf ( contentType output) const
inlinenoexcept

Return the required size for the storage slot.

Definition at line 655 of file foamVtuSizing.H.

References sizeOf().

Here is the call graph for this function:

◆ populateLegacy()

void populateLegacy ( const polyMesh & mesh,
UList< uint8_t > & cellTypes,
labelUList & connectivity,
foamVtkMeshMaps & maps ) const

Populate lists for Legacy output.

References cellTypes, and mesh.

◆ populateXml()

void populateXml ( const polyMesh & mesh,
UList< uint8_t > & cellTypes,
labelUList & connectivity,
labelUList & offsets,
labelUList & faces,
labelUList & facesOffsets,
foamVtkMeshMaps & maps ) const

Populate lists for XML output.

References cellTypes, and mesh.

◆ populateHdf()

void populateHdf ( const polyMesh & mesh,
UList< uint8_t > & cellTypes,
labelUList & connectivity,
labelUList & offsets,
labelUList & faces,
labelUList & facesOffsets,
labelUList & polyFaceIds,
labelUList & polyFaceOffsets,
foamVtkMeshMaps & maps ) const

Populate lists for HDF output.

References cellTypes, and mesh.

◆ populateInternal() [1/6]

void populateInternal ( const polyMesh & mesh,
UList< uint8_t > & cellTypes,
UList< int > & connectivity,
UList< int > & offsets,
UList< int > & faces,
UList< int > & facesOffsets,
foamVtkMeshMaps & maps,
const enum contentType output ) const

Populate lists for Internal VTK format.

Referenced by vtuAdaptor::internal().

Here is the caller graph for this function:

◆ populateInternal() [2/6]

void populateInternal ( const polyMesh & mesh,
UList< uint8_t > & cellTypes,
UList< int > & connectivity,
UList< int > & offsets,
UList< int > & faces,
UList< int > & facesOffsets,
labelUList & cellMap,
labelUList & addPointsIds,
const enum contentType output ) const

Populate lists for Internal VTK format.

◆ populateInternal() [3/6]

void populateInternal ( const polyMesh & mesh,
UList< uint8_t > & cellTypes,
UList< long > & connectivity,
UList< long > & offsets,
UList< long > & faces,
UList< long > & facesOffsets,
foamVtkMeshMaps & maps,
const enum contentType output ) const

Populate lists for Internal VTK format.

◆ populateInternal() [4/6]

void populateInternal ( const polyMesh & mesh,
UList< uint8_t > & cellTypes,
UList< long > & connectivity,
UList< long > & offsets,
UList< long > & faces,
UList< long > & facesOffsets,
labelUList & cellMap,
labelUList & addPointsIds,
const enum contentType output ) const

Populate lists for Internal VTK format.

◆ populateInternal() [5/6]

void populateInternal ( const polyMesh & mesh,
UList< uint8_t > & cellTypes,
UList< long long > & connectivity,
UList< long long > & offsets,
UList< long long > & faces,
UList< long long > & facesOffsets,
foamVtkMeshMaps & maps,
const enum contentType output ) const

Populate lists for Internal VTK format.

◆ populateInternal() [6/6]

void populateInternal ( const polyMesh & mesh,
UList< uint8_t > & cellTypes,
UList< long long > & connectivity,
UList< long long > & offsets,
UList< long long > & faces,
UList< long long > & facesOffsets,
labelUList & cellMap,
labelUList & addPointsIds,
const enum contentType output ) const

Populate lists for Internal VTK format.

◆ renumberVertLabels()

void renumberVertLabels ( labelUList & connectivity,
const label pointOffset,
const contentType output )
static

Renumber vertex labels by (global) point offset.

Referenced by copyVertLabels(), renumberVertLabelsLegacy(), and renumberVertLabelsXml().

Here is the caller graph for this function:

◆ renumberFaceLabels()

void renumberFaceLabels ( labelUList & faceLabels,
const label pointOffset,
const contentType output )
static

Renumber faces stream labels by (global) point offset.

References faceLabels().

Referenced by copyFaceLabels(), and renumberFaceLabelsXml().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ renumberFaceOffsets()

void renumberFaceOffsets ( labelUList & faceOffsets,
const label beginOffset,
const contentType output )
static

Renumber face offsets with a specified (global) begin offset.

Referenced by copyFaceOffsets(), and renumberFaceOffsetsXml().

Here is the caller graph for this function:

◆ info()

void info ( Ostream & os) const

Report some information.

References os().

Here is the call graph for this function:

◆ operator==()

bool operator== ( const vtuSizing & rhs) const

Test equality.

References Foam::rhs(), and vtuSizing().

Here is the call graph for this function:

◆ operator!=()

bool operator!= ( const vtuSizing & rhs) const

Test inequality.

References Foam::rhs(), and vtuSizing().

Here is the call graph for this function:

◆ copyVertLabels()

labelList copyVertLabels ( const labelUList & connectivity,
const label pointOffset,
const contentType output )
inlinestatic

Copy vertex labels with a (global) point offset.

Definition at line 805 of file foamVtuSizing.H.

References renumberVertLabels().

Referenced by copyVertLabelsLegacy(), and copyVertLabelsXml().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ copyFaceLabels()

labelList copyFaceLabels ( const labelUList & faceLabels,
const label pointOffset,
const contentType output )
inlinestatic

Copy faces stream labels with a (global) point offset.

Definition at line 820 of file foamVtuSizing.H.

References faceLabels(), and renumberFaceLabels().

Referenced by copyFaceLabelsXml().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ copyFaceOffsets()

labelList copyFaceOffsets ( const labelUList & faceOffsets,
const label beginOffset,
const contentType output )
inlinestatic

Copy face offsets with a specified (global) begin offset.

Definition at line 835 of file foamVtuSizing.H.

References renumberFaceOffsets().

Referenced by copyFaceOffsetsXml().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ renumberVertLabelsLegacy()

void renumberVertLabelsLegacy ( labelUList & connectivity,
const label pointOffset )
inlinestatic

Renumber vertex labels by (global) point offset - legacy format.

Definition at line 851 of file foamVtuSizing.H.

References LEGACY, renumberVertLabels(), and renumberVertLabelsLegacy().

Referenced by renumberVertLabelsLegacy().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ renumberVertLabelsXml()

void renumberVertLabelsXml ( labelUList & connectivity,
const label pointOffset )
inlinestatic

Renumber vertex labels by (global) point offset - XML format.

Definition at line 864 of file foamVtuSizing.H.

References renumberVertLabels(), renumberVertLabelsXml(), and XML.

Referenced by renumberVertLabelsXml().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ renumberFaceLabelsXml()

void renumberFaceLabelsXml ( labelUList & faceLabels,
const label pointOffset )
inlinestatic

Renumber faces stream labels by (global) point offset - XML format.

Definition at line 877 of file foamVtuSizing.H.

References faceLabels(), renumberFaceLabels(), renumberFaceLabelsXml(), and XML.

Referenced by renumberFaceLabelsXml().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ renumberFaceOffsetsXml()

void renumberFaceOffsetsXml ( labelUList & faceOffsets,
const label beginOffset )
inlinestatic

Renumber face offsets with a specified begin offset - XML format.

Definition at line 890 of file foamVtuSizing.H.

References renumberFaceOffsets(), renumberFaceOffsetsXml(), and XML.

Referenced by renumberFaceOffsetsXml().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ copyVertLabelsLegacy()

labelList copyVertLabelsLegacy ( const labelUList & connectivity,
const label pointOffset )
inlinestatic

Copy vertex labels with a (global) point offset - legacy format.

Definition at line 903 of file foamVtuSizing.H.

References copyVertLabels(), copyVertLabelsLegacy(), and LEGACY.

Referenced by copyVertLabelsLegacy().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ copyVertLabelsXml()

labelList copyVertLabelsXml ( const labelUList & connectivity,
const label pointOffset )
inlinestatic

Copy vertex labels with a (global) point offset - XML format.

Definition at line 917 of file foamVtuSizing.H.

References copyVertLabels(), copyVertLabelsXml(), and XML.

Referenced by copyVertLabelsXml().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ copyFaceLabelsXml()

labelList copyFaceLabelsXml ( const labelUList & faceLabels,
const label pointOffset )
inlinestatic

Copy faces stream labels with a (global) point offset - XML format.

Definition at line 931 of file foamVtuSizing.H.

References copyFaceLabels(), copyFaceLabelsXml(), faceLabels(), and XML.

Referenced by copyFaceLabelsXml().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ copyFaceOffsetsXml()

labelList copyFaceOffsetsXml ( const labelUList & faceOffsets,
const label beginOffset )
inlinestatic

Copy face offsets with an offset from previous - XML format.

Definition at line 945 of file foamVtuSizing.H.

References copyFaceOffsets(), copyFaceOffsetsXml(), and XML.

Referenced by copyFaceOffsetsXml().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sizeLegacy() [1/2]

label sizeLegacy ( ) const
inline

The calculated size for legacy storage.

Definition at line 959 of file foamVtuSizing.H.

References CELLS, LEGACY, sizeLegacy(), and sizeOf().

Referenced by sizeLegacy(), and sizeLegacy().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sizeLegacy() [2/2]

label sizeLegacy ( slotType slot) const
inline

The calculated size for legacy storage of the specified slot.

Definition at line 968 of file foamVtuSizing.H.

References LEGACY, sizeLegacy(), and sizeOf().

Here is the call graph for this function:

◆ sizeXml()

label sizeXml ( slotType slot) const
inline

The calculated size for xml storage of the specified slot.

Definition at line 977 of file foamVtuSizing.H.

References sizeOf(), sizeXml(), and XML.

Referenced by sizeXml().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sizeInternal1()

label sizeInternal1 ( slotType slot) const
inline

The calculated size for vtk-internal storage of the specified slot.

Definition at line 986 of file foamVtuSizing.H.

References INTERNAL1, sizeInternal1(), and sizeOf().

Referenced by sizeInternal1().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sizeInternal2()

label sizeInternal2 ( slotType slot) const
inline

The calculated size for vtk-internal storage of the specified slot.

Definition at line 995 of file foamVtuSizing.H.

References INTERNAL2, sizeInternal2(), and sizeOf().

Referenced by sizeInternal2().

Here is the call graph for this function:
Here is the caller graph for this function:

The documentation for this class was generated from the following files: