OpenLB 1.7
|
SuperVTMwriter2D writes any SuperF2D to vtk-based output files. More...
#include <superVtmWriter2D.h>
Public Member Functions | |
SuperVTMwriter2D (std::string name, int overlap=1, bool binary=true) | |
void | write (int iT=0) |
writes functors stored in pointerVec every thread writes a vti file with data from his cuboids the vti files are linked in a pvd file | |
void | write (SuperF2D< T, W > &f, int iT=0) |
writes functor instantaneously, same vti-pvd file structure as above | |
void | write (std::shared_ptr< SuperF2D< T, W > > ptr_f, int iT=0) |
void | createMasterFile () |
have to be called before calling write(int iT=0), since it creates | |
void | addFunctor (SuperF2D< T, W > &f) |
put functor to _pointerVec to simplify writing process of several functors | |
void | addFunctor (SuperF2D< 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 | |
SuperVTMwriter2D writes any SuperF2D to vtk-based output files.
In .pvd files, there are only links/references to a VTKmultiblock file 'vtm'
.pvd file structur 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 superVtmWriter2D.h.
olb::SuperVTMwriter2D< T, OUT_T, W >::SuperVTMwriter2D | ( | std::string | name, |
int | overlap = 1, | ||
bool | binary = true ) |
Definition at line 49 of file superVtmWriter2D.hh.
void olb::SuperVTMwriter2D< T, OUT_T, W >::addFunctor | ( | SuperF2D< T, W > & | f | ) |
put functor to _pointerVec to simplify writing process of several functors
Definition at line 211 of file superVtmWriter2D.hh.
void olb::SuperVTMwriter2D< T, OUT_T, W >::addFunctor | ( | SuperF2D< T, W > & | f, |
const std::string & | functorName ) |
put functor with specific name to _pointerVec to simplify writing process of several functors
Definition at line 217 of file superVtmWriter2D.hh.
References olb::GenericF< T, S >::getName().
void olb::SuperVTMwriter2D< T, OUT_T, W >::clearAddedFunctors | ( | ) |
to clear stored functors, not yet used due to lack of necessity
Definition at line 224 of file superVtmWriter2D.hh.
void olb::SuperVTMwriter2D< T, OUT_T, W >::createMasterFile | ( | ) |
have to be called before calling write(int iT=0), since it creates
Definition at line 195 of file superVtmWriter2D.hh.
References olb::createFileName(), olb::singleton::directories(), olb::singleton::MpiManager::getRank(), olb::singleton::Directories::getVtkOutDir(), and olb::singleton::mpi().
std::string olb::SuperVTMwriter2D< T, OUT_T, W >::getName | ( | ) | const |
void olb::SuperVTMwriter2D< T, OUT_T, W >::write | ( | int | iT = 0 | ) |
writes functors stored in pointerVec every thread writes a vti file with data from his cuboids the vti files are linked in a pvd file
Definition at line 57 of file superVtmWriter2D.hh.
References olb::createFileName(), olb::singleton::directories(), olb::CuboidGeometry2D< T >::get(), olb::CuboidGeometry2D< T >::getMotherCuboid(), olb::CuboidGeometry2D< T >::getNc(), olb::CuboidGeometry2D< T >::getPhysR(), olb::singleton::MpiManager::getRank(), olb::singleton::Directories::getVtkOutDir(), olb::LoadBalancer< T >::glob(), olb::singleton::mpi(), and olb::LoadBalancer< T >::size().
void olb::SuperVTMwriter2D< T, OUT_T, W >::write | ( | std::shared_ptr< SuperF2D< T, W > > | ptr_f, |
int | iT = 0 ) |
Definition at line 189 of file superVtmWriter2D.hh.
void olb::SuperVTMwriter2D< T, OUT_T, W >::write | ( | SuperF2D< T, W > & | f, |
int | iT = 0 ) |
writes functor instantaneously, same vti-pvd file structure as above
Definition at line 132 of file superVtmWriter2D.hh.
References olb::SuperStructure< T, D >::communicate(), olb::createFileName(), olb::singleton::directories(), olb::CuboidGeometry2D< T >::get(), olb::SuperStructure< T, D >::getCuboidGeometry(), olb::SuperStructure< T, D >::getLoadBalancer(), olb::CuboidGeometry2D< T >::getMotherCuboid(), olb::GenericF< T, S >::getName(), olb::CuboidGeometry2D< T >::getNc(), olb::CuboidGeometry2D< T >::getPhysR(), olb::singleton::MpiManager::getRank(), olb::SuperF2D< T, W >::getSuperStructure(), olb::singleton::Directories::getVtkOutDir(), olb::LoadBalancer< T >::glob(), olb::singleton::mpi(), and olb::LoadBalancer< T >::size().