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

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

Write floats ascii or binary.

If binary optionally in-place swaps argument

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

Write labels ascii or binary.

If binary optionally in-place swaps argument

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

Write floats ascii or binary.

If binary optionally in-place swaps argument

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

Write labels ascii or binary.

If binary optionally in-place swaps argument

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

Append point to given DynamicList.

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

Append elements of labelList to given DynamicList.

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

Append elements of scalarList to given DynamicList.

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

Append elements of scalarList to given DynamicList using map.

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

Append points to given DynamicList of floats.

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

Append points to given DynamicList of floats using map.

static void write ( std::ostream &  ,
const bool  ,
List< floatScalar > &   
)
static
static void write ( std::ostream &  ,
const bool  ,
DynamicList< floatScalar > &   
)
static
static void write ( std::ostream &  ,
const bool  ,
labelList  
)
static
static void write ( std::ostream &  ,
const bool  ,
DynamicList< label > &   
)
static
static void writeHeader ( std::ostream &  ,
const bool  isBinary,
const std::string &  title 
)
static
static void writeCellDataHeader ( std::ostream &  ,
const label  nCells,
const label  nFields 
)
static
static void writePointDataHeader ( std::ostream &  ,
const label  nPoints,
const label  nFields 
)
static
static void insert ( const scalar  ,
DynamicList< floatScalar > &   
)
static
static void insert ( const point ,
DynamicList< floatScalar > &   
)
static
static void insert ( const sphericalTensor ,
DynamicList< floatScalar > &   
)
static
static void insert ( const symmTensor ,
DynamicList< floatScalar > &   
)
static
static void insert ( const tensor ,
DynamicList< floatScalar > &   
)
static
static void insert ( const labelList ,
DynamicList< label > &   
)
static

Append elements to DynamicList.

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

Write volField with cell values (including decomposed cells)

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.

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.

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

Write generic GeometricFields.

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: