Static Public Member Functions | List of all members
writeFuns Class Reference

Various functions for collecting and writing binary data. More...

Static Public Member Functions

static void write (std::ostream &, const bool, DynamicList< floatScalar > &)
 Write floats ascii or binary. More...
 
static void write (std::ostream &, const bool, DynamicList< label > &)
 Write labels ascii or binary. More...
 
static void write (std::ostream &, const bool, List< floatScalar > &)
 Write floats ascii or binary. More...
 
static void write (std::ostream &, const bool, labelList &)
 Write labels ascii or binary. More...
 
static void insert (const point &, DynamicList< floatScalar > &dest)
 Append point to given DynamicList. More...
 
static void insert (const labelList &, DynamicList< label > &)
 Append elements of labelList to given DynamicList. More...
 
static void insert (const List< scalar > &, DynamicList< floatScalar > &)
 Append elements of scalarList to given DynamicList. More...
 
static void insert (const labelList &map, const List< scalar > &source, DynamicList< floatScalar > &)
 Append elements of scalarList to given DynamicList using map. More...
 
static void insert (const List< point > &source, DynamicList< floatScalar > &)
 Append points to given DynamicList of floats. More...
 
static void insert (const labelList &map, const List< point > &source, DynamicList< floatScalar > &)
 Append points to given DynamicList of floats using map. More...
 
static void write (std::ostream &, const bool, List< floatScalar > &)
 
static void write (std::ostream &, const bool, DynamicList< floatScalar > &)
 
static void write (std::ostream &, const bool, labelList &)
 
static void write (std::ostream &, const bool, DynamicList< label > &)
 
static void writeHeader (std::ostream &, const bool isBinary, const std::string &title)
 
static void writeCellDataHeader (std::ostream &, const label nCells, const label nFields)
 
static void writePointDataHeader (std::ostream &, const label nPoints, const label nFields)
 
static void insert (const scalar, DynamicList< floatScalar > &)
 
static void insert (const point &, DynamicList< floatScalar > &)
 
static void insert (const sphericalTensor &, DynamicList< floatScalar > &)
 
static void insert (const symmTensor &, DynamicList< floatScalar > &)
 
static void insert (const tensor &, DynamicList< floatScalar > &)
 
static void insert (const labelList &, DynamicList< label > &)
 Append elements to DynamicList. More...
 
template<class Type >
static void insert (const List< Type > &, DynamicList< floatScalar > &)
 
template<class Type >
static void write (std::ostream &, const bool binary, const GeometricField< Type, fvPatchField, volMesh > &, const vtkMesh &)
 Write volField with cell values (including decomposed cells) More...
 
template<class Type >
static void write (std::ostream &, const bool binary, const GeometricField< Type, pointPatchField, pointMesh > &, const vtkMesh &)
 Write pointField on all mesh points. Interpolate to cell centre. More...
 
template<class Type >
static void write (std::ostream &, const bool binary, const GeometricField< Type, fvPatchField, volMesh > &, const GeometricField< Type, pointPatchField, pointMesh > &, const vtkMesh &)
 Write interpolated field on points and original cell values on. More...
 
template<class Type , template< class > class PatchField, class GeoMesh >
static void write (std::ostream &, const bool binary, const PtrList< GeometricField< Type, PatchField, GeoMesh >> &, const vtkMesh &)
 Write generic GeometricFields. More...
 
template<class Type >
static void write (std::ostream &, const bool binary, const volPointInterpolation &, const PtrList< GeometricField< Type, fvPatchField, volMesh >> &, const vtkMesh &)
 Interpolate and write volFields. More...
 

Detailed Description

Various functions for collecting and writing binary data.

The LITTLE_ENDIAN is based on 32bit words. It is not clear how 64bit labels should be handled, currently they are split into two 32bit words and swapWord applied to these two.

writeFuns should be a namespace rather than a class.

Source files

Source files

Definition at line 58 of file writeFuns.H.

Member Function Documentation

◆ write() [1/13]

static void write ( std::ostream &  ,
const bool  ,
DynamicList< floatScalar > &   
)
static

Write floats ascii or binary.

If binary optionally in-place swaps argument

◆ write() [2/13]

static void write ( std::ostream &  ,
const bool  ,
DynamicList< label > &   
)
static

Write labels ascii or binary.

If binary optionally in-place swaps argument

◆ write() [3/13]

static void write ( std::ostream &  ,
const bool  ,
List< floatScalar > &   
)
static

Write floats ascii or binary.

If binary optionally in-place swaps argument

◆ write() [4/13]

static void write ( std::ostream &  ,
const bool  ,
labelList  
)
static

Write labels ascii or binary.

If binary optionally in-place swaps argument

◆ insert() [1/13]

static void insert ( const point ,
DynamicList< floatScalar > &  dest 
)
static

Append point to given DynamicList.

◆ insert() [2/13]

static void insert ( const labelList ,
DynamicList< label > &   
)
static

Append elements of labelList to given DynamicList.

◆ insert() [3/13]

static void insert ( const List< scalar > &  ,
DynamicList< floatScalar > &   
)
static

Append elements of scalarList to given DynamicList.

◆ insert() [4/13]

static void insert ( const labelList map,
const List< scalar > &  source,
DynamicList< floatScalar > &   
)
static

Append elements of scalarList to given DynamicList using map.

◆ insert() [5/13]

static void insert ( const List< point > &  source,
DynamicList< floatScalar > &   
)
static

Append points to given DynamicList of floats.

◆ insert() [6/13]

static void insert ( const labelList map,
const List< point > &  source,
DynamicList< floatScalar > &   
)
static

Append points to given DynamicList of floats using map.

◆ write() [5/13]

static void write ( std::ostream &  ,
const bool  ,
List< floatScalar > &   
)
static

◆ write() [6/13]

static void write ( std::ostream &  ,
const bool  ,
DynamicList< floatScalar > &   
)
static

◆ write() [7/13]

static void write ( std::ostream &  ,
const bool  ,
labelList  
)
static

◆ write() [8/13]

static void write ( std::ostream &  ,
const bool  ,
DynamicList< label > &   
)
static

◆ writeHeader()

static void writeHeader ( std::ostream &  ,
const bool  isBinary,
const std::string &  title 
)
static

◆ writeCellDataHeader()

static void writeCellDataHeader ( std::ostream &  ,
const label  nCells,
const label  nFields 
)
static

◆ writePointDataHeader()

static void writePointDataHeader ( std::ostream &  ,
const label  nPoints,
const label  nFields 
)
static

◆ insert() [7/13]

static void insert ( const scalar  ,
DynamicList< floatScalar > &   
)
static

◆ insert() [8/13]

static void insert ( const point ,
DynamicList< floatScalar > &   
)
static

◆ insert() [9/13]

static void insert ( const sphericalTensor ,
DynamicList< floatScalar > &   
)
static

◆ insert() [10/13]

static void insert ( const symmTensor ,
DynamicList< floatScalar > &   
)
static

◆ insert() [11/13]

static void insert ( const tensor ,
DynamicList< floatScalar > &   
)
static

◆ insert() [12/13]

static void insert ( const labelList ,
DynamicList< label > &   
)
static

Append elements to DynamicList.

◆ insert() [13/13]

static void insert ( const List< Type > &  ,
DynamicList< floatScalar > &   
)
static

◆ write() [9/13]

static void write ( std::ostream &  ,
const bool  binary,
const GeometricField< Type, fvPatchField, volMesh > &  ,
const vtkMesh  
)
static

Write volField with cell values (including decomposed cells)

◆ write() [10/13]

static void write ( std::ostream &  ,
const bool  binary,
const GeometricField< Type, pointPatchField, pointMesh > &  ,
const vtkMesh  
)
static

Write pointField on all mesh points. Interpolate to cell centre.

for decomposed cell centres.

◆ write() [11/13]

static void write ( std::ostream &  ,
const bool  binary,
const GeometricField< Type, fvPatchField, volMesh > &  ,
const GeometricField< Type, pointPatchField, pointMesh > &  ,
const vtkMesh  
)
static

Write interpolated field on points and original cell values on.

decomposed cell centres.

◆ write() [12/13]

static void write ( std::ostream &  ,
const bool  binary,
const PtrList< GeometricField< Type, PatchField, GeoMesh >> &  ,
const vtkMesh  
)
static

Write generic GeometricFields.

◆ write() [13/13]

static void write ( std::ostream &  ,
const bool  binary,
const volPointInterpolation ,
const PtrList< GeometricField< Type, fvPatchField, volMesh >> &  ,
const vtkMesh  
)
static

Interpolate and write volFields.


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