OpenLB 1.7
Loading...
Searching...
No Matches
Classes | Namespaces
vtiReader.h File Reference

The VTI reader is able to read from VTI files and create and fill corresponding data structures. More...

#include <string>
#include <vector>
#include "io/xmlReader.h"
#include "geometry/cuboid3D.h"
#include "geometry/cuboidGeometry3D.h"
#include "core/superData.h"
#include "core/blockData.h"
#include "io/ostreamManager.h"
#include "communication/loadBalancer.h"
+ Include dependency graph for vtiReader.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  olb::BaseVTIreader< T >
 
class  olb::BaseVTIreader3D< T, BaseType >
 
class  olb::BlockVTIreader3D< T, BaseType >
 
class  olb::SuperVTIreader3D< T, BaseType >
 

Namespaces

namespace  olb
 Top level namespace for all of OpenLB.
 

Detailed Description

The VTI reader is able to read from VTI files and create and fill corresponding data structures.

The reading process starts with the construction of the reader object. The name of the data type to be read (e.g. "physVelocity") is mandatory.

Single cuboids (BlockVTIreader) and cuboid geometries (SuperVTIreader) are supported in 2D and 3D.

The Base reader class is reading the generic information of the VTI file like origin, extend and number of nodes of the surrounding cuboid as well as the size (dimension) of the data vector to be read.

In case of cuboid geometries, the reader follows these steps:

  1. Create a CuboidGeometry and add all Cuboids.
  2. Create a (Heuristic) LoadBalancer out of the CuboidGeometry.
  3. Create a SuperData object out of the CuboidGeometry and LoadBalancer and by that also allocate all the neccessary memory for the actual data.
  4. Iterate through the VTI data and fill the BlockData objects of SuperData.

Definition in file vtiReader.h.