OpenLB 1.7
|
SuperVTMwriter3D writes any SuperF3D to vtk-based output files. More...
#include <superVtmWriter3D.h>
Public Member Functions | |
SuperVTMwriter3D (const std::string &name, int overlap=1, bool binary=true, bool compress=true) | |
Construct writer for functor output. | |
SuperVTMwriter3D (CuboidGeometry3D< T > &cGeometry, const std::string &name, int overlap=1, bool binary=true, bool compress=true) | |
Construct writer for CuboidGeometry3D debugging. | |
void | write (int iT=0) |
writes functors stored in pointerVec every process writes a vti file with data for each of its cuboids the vti files are linked in a pvd file | |
void | writePVD (int iT) |
writes only the linking pvd file for timestep iT, blocks must be written separately (e.g. asynchronously) | |
void | writeGlobalVTI (int iT, int iC) |
writes the vti file for cuboid iC at timestep iT | |
void | writeVTI (int iT, int iCloc) |
writes the vti file for cuboid iCloc at timestep iT | |
void | write (SuperF3D< T, W > &f, int iT=0) |
writes functor instantaneously, same vti-pvd file structure as above | |
void | write (std::shared_ptr< SuperF3D< T, W > > ptr_f, int iT=0) |
void | createMasterFile () |
have to be called before calling write(int iT=0), since it creates | |
void | addFunctor (SuperF3D< T, W > &f) |
put functor to _pointerVec to simplify writing process of several functors | |
void | addFunctor (SuperF3D< T, W > &f, const std::string &functorName) |
put functor with specific name to _pointerVec to simplify writing process of several functors | |
void | clearAddedFunctors () |
to clear stored functors, not yet used due to lack of necessity | |
std::string | getName () const |
getter for _name | |
SuperVTMwriter3D writes any SuperF3D to vtk-based output files.
In .pvd files, there are only links/references to a VTKmultiblock file 'vtm'
.pvd file structure the time series is represented by different 'vtm' files.
.vtm file This file links cuboids ('vti') and represents the entire data of a single timestep.
Definition at line 51 of file superVtmWriter3D.h.
olb::SuperVTMwriter3D< T, OUT_T, W >::SuperVTMwriter3D | ( | const std::string & | name, |
int | overlap = 1, | ||
bool | binary = true, | ||
bool | compress = true ) |
Construct writer for functor output.
Definition at line 54 of file superVtmWriter3D.hh.
olb::SuperVTMwriter3D< T, OUT_T, W >::SuperVTMwriter3D | ( | CuboidGeometry3D< T > & | cGeometry, |
const std::string & | name, | ||
int | overlap = 1, | ||
bool | binary = true, | ||
bool | compress = true ) |
Construct writer for CuboidGeometry3D debugging.
Definition at line 62 of file superVtmWriter3D.hh.
void olb::SuperVTMwriter3D< T, OUT_T, W >::addFunctor | ( | SuperF3D< T, W > & | f | ) |
put functor to _pointerVec to simplify writing process of several functors
Definition at line 257 of file superVtmWriter3D.hh.
void olb::SuperVTMwriter3D< T, OUT_T, W >::addFunctor | ( | SuperF3D< T, W > & | f, |
const std::string & | functorName ) |
put functor with specific name to _pointerVec to simplify writing process of several functors
Definition at line 263 of file superVtmWriter3D.hh.
References olb::GenericF< T, S >::getName().
void olb::SuperVTMwriter3D< T, OUT_T, W >::clearAddedFunctors | ( | ) |
to clear stored functors, not yet used due to lack of necessity
Definition at line 270 of file superVtmWriter3D.hh.
void olb::SuperVTMwriter3D< T, OUT_T, W >::createMasterFile | ( | ) |
have to be called before calling write(int iT=0), since it creates
Definition at line 241 of file superVtmWriter3D.hh.
References olb::createFileName(), olb::singleton::directories(), olb::singleton::MpiManager::getRank(), olb::singleton::Directories::getVtkOutDir(), and olb::singleton::mpi().
std::string olb::SuperVTMwriter3D< T, OUT_T, W >::getName | ( | ) | const |
void olb::SuperVTMwriter3D< T, OUT_T, W >::write | ( | int | iT = 0 | ) |
writes functors stored in pointerVec every process writes a vti file with data for each of its cuboids the vti files are linked in a pvd file
Definition at line 70 of file superVtmWriter3D.hh.
References olb::CuboidGeometry3D< T >::getNc(), and olb::LoadBalancer< T >::size().
void olb::SuperVTMwriter3D< T, OUT_T, W >::write | ( | std::shared_ptr< SuperF3D< T, W > > | ptr_f, |
int | iT = 0 ) |
Definition at line 235 of file superVtmWriter3D.hh.
void olb::SuperVTMwriter3D< T, OUT_T, W >::write | ( | SuperF3D< T, W > & | f, |
int | iT = 0 ) |
writes functor instantaneously, same vti-pvd file structure as above
Definition at line 183 of file superVtmWriter3D.hh.
References olb::SuperStructure< T, D >::communicate(), olb::createFileName(), olb::singleton::directories(), olb::CuboidGeometry3D< T >::get(), olb::SuperStructure< T, D >::getCuboidGeometry(), olb::SuperStructure< T, D >::getLoadBalancer(), olb::CuboidGeometry3D< T >::getMotherCuboid(), olb::GenericF< T, S >::getName(), olb::CuboidGeometry3D< T >::getNc(), olb::CuboidGeometry3D< T >::getPhysR(), olb::singleton::MpiManager::getRank(), olb::SuperF3D< T, W >::getSuperStructure(), olb::singleton::Directories::getVtkOutDir(), olb::LoadBalancer< T >::glob(), olb::singleton::mpi(), and olb::LoadBalancer< T >::size().
void olb::SuperVTMwriter3D< T, OUT_T, W >::writeGlobalVTI | ( | int | iT, |
int | iC ) |
writes the vti file for cuboid iC at timestep iT
Definition at line 128 of file superVtmWriter3D.hh.
References olb::createFileName(), olb::singleton::directories(), olb::CuboidGeometry3D< T >::get(), olb::CuboidGeometry3D< T >::getMotherCuboid(), olb::CuboidGeometry3D< T >::getPhysR(), and olb::singleton::Directories::getVtkOutDir().
void olb::SuperVTMwriter3D< T, OUT_T, W >::writePVD | ( | int | iT | ) |
writes only the linking pvd file for timestep iT, blocks must be written separately (e.g. asynchronously)
Definition at line 103 of file superVtmWriter3D.hh.
References olb::createFileName(), olb::singleton::directories(), olb::CuboidGeometry3D< T >::getNc(), olb::singleton::Directories::getVtkOutDir(), and olb::singleton::mpi().
void olb::SuperVTMwriter3D< T, OUT_T, W >::writeVTI | ( | int | iT, |
int | iCloc ) |
writes the vti file for cuboid iCloc at timestep iT
Definition at line 155 of file superVtmWriter3D.hh.
References olb::createFileName(), olb::singleton::directories(), olb::CuboidGeometry3D< T >::get(), olb::CuboidGeometry3D< T >::getMotherCuboid(), olb::CuboidGeometry3D< T >::getPhysR(), olb::singleton::Directories::getVtkOutDir(), and olb::LoadBalancer< T >::glob().