OpenLB 1.7
|
#include <vtkWriter.h>
Public Member Functions | |
VTKwriter (const std::string &name, bool binary=true, bool compress=true) | |
constructor | |
void | addFunctor (FUNCTOR &f) |
put functor to _pointerVec to simplify writing process of several functors | |
void | addFunctor (FUNCTOR &f, const std::string &functorName) |
put functor with specific name to _pointerVec to simplify writing process of several functors | |
template<bool vtmAsMaster, typename F > | |
void | write (int iT, std::string nameCollection, F applyFunctors) |
to clear stored functors, not yet used due to lack of necessity | |
void | write (int iT=0) |
void | write (FUNCTOR &f, int iT=0) |
void | write (std::shared_ptr< FUNCTOR > ptr_f, int iT=0) |
void | createMasterFile () |
have to be called before calling write(int iT=0), since it creates | |
Static Public Attributes | |
static constexpr bool | parallel = FUNCTOR::isSuper |
static constexpr unsigned | D = FUNCTOR::d |
Protected Member Functions | |
void | preamblePVD (const std::string &fullNamePVD) |
performes <VTKFile ...> and <Collection> | |
void | dataPVD (int iT, const std::string &fullNamePVD, const std::string &namePiece) |
performes <DataSet timestep= ... file=namePiece > | |
void | closePVD (const std::string &fullNamePVD) |
performes </Collection> and </VTKFile> | |
void | preambleVTM (const std::string &fullNameVTM) |
performes <VTKFile ...> and <Collection> | |
void | closeVTM (const std::string &fullNameVTM) |
performes </Collection> and </VTKFile> | |
void | dataVTM (int iC, const std::string &fullNameVTM, const std::string &namePiece) |
performes <DataSet timestep= ... file=namePiece > used for linking vti into pvd files | |
template<bool vtmAsMaster = false> | |
void | writeVTM (int iT, int rankSize, std::string fileExtension, std::string nameCollection) |
wrapper for VTM file creation | |
void | preambleVTU (const std::string &fullName, Vector< int, 1 > extent1) |
performes <VTKFile ...>, <ImageData ...> and <PieceExtent ...> | |
void | closeVTU (const std::string &fullNamePiece) |
performes </ImageData> and </VTKFile> | |
void | cellDataVTU (const std::string &fullName, Vector< int, 1 > extent1) |
TODO: add description: connectivity, offsete, type of unscructured nodes. | |
void | preambleVTI (const std::string &fullName, const LatticeR< D > extent0, const LatticeR< D > extent1, PhysR< T, D > origin, T delta) |
performes <VTKFile ...>, <ImageData ...>, <PieceExtent ...> and <PointData ...> | |
void | closeVTI (const std::string &fullNamePiece) |
performes </ImageData> and </VTKFile> | |
void | closePiece (const std::string &fullNamePiece) |
performes </PointData> and </Piece> | |
template<unsigned sourceDim> | |
void | dataArrayPoints (const std::string &fullName, Vector< int, sourceDim > extent1, int iC=0) |
writes points necessary for VTU | |
template<unsigned sourceDim> | |
void | dataArraySingleFunctor (const std::string &fullName, FUNCTOR &f, Vector< int, sourceDim > extent1, int iC=0) |
writes functors stored at pointerVec | |
Definition at line 56 of file vtkWriter.h.
olb::VTKwriter< T, FUNCTOR, VTKTYPE >::VTKwriter | ( | const std::string & | name, |
bool | binary = true, | ||
bool | compress = true ) |
constructor
Definition at line 35 of file vtkWriter.hh.
void olb::VTKwriter< T, FUNCTOR, VTKTYPE >::addFunctor | ( | FUNCTOR & | f | ) |
put functor to _pointerVec to simplify writing process of several functors
Definition at line 41 of file vtkWriter.hh.
void olb::VTKwriter< T, FUNCTOR, VTKTYPE >::addFunctor | ( | FUNCTOR & | f, |
const std::string & | functorName ) |
put functor with specific name to _pointerVec to simplify writing process of several functors
Definition at line 47 of file vtkWriter.hh.
|
protected |
TODO: add description: connectivity, offsete, type of unscructured nodes.
Definition at line 519 of file vtkWriter.hh.
|
protected |
performes </PointData> and </Piece>
Definition at line 394 of file vtkWriter.hh.
|
protected |
performes </Collection> and </VTKFile>
Definition at line 422 of file vtkWriter.hh.
|
protected |
performes </ImageData> and </VTKFile>
Definition at line 381 of file vtkWriter.hh.
|
protected |
performes </Collection> and </VTKFile>
Definition at line 452 of file vtkWriter.hh.
|
protected |
performes </ImageData> and </VTKFile>
Definition at line 323 of file vtkWriter.hh.
void olb::VTKwriter< T, FUNCTOR, VTKTYPE >::createMasterFile | ( | ) |
have to be called before calling write(int iT=0), since it creates
Definition at line 283 of file vtkWriter.hh.
References olb::createFileName(), olb::singleton::directories(), olb::singleton::MpiManager::getRank(), olb::singleton::Directories::getVtkOutDir(), and olb::singleton::mpi().
|
protected |
writes points necessary for VTU
Definition at line 501 of file vtkWriter.hh.
|
protected |
writes functors stored at pointerVec
Definition at line 548 of file vtkWriter.hh.
References olb::Base64Encoder< T >::encode(), olb::VTI, and olb::VTU.
|
protected |
performes <DataSet timestep= ... file=namePiece >
Definition at line 480 of file vtkWriter.hh.
|
protected |
performes <DataSet timestep= ... file=namePiece > used for linking vti into pvd files
Definition at line 465 of file vtkWriter.hh.
|
protected |
performes <VTKFile ...> and <Collection>
Definition at line 407 of file vtkWriter.hh.
|
protected |
performes <VTKFile ...>, <ImageData ...>, <PieceExtent ...> and <PointData ...>
Definition at line 341 of file vtkWriter.hh.
|
protected |
performes <VTKFile ...> and <Collection>
Definition at line 438 of file vtkWriter.hh.
|
protected |
performes <VTKFile ...>, <ImageData ...> and <PieceExtent ...>
Definition at line 299 of file vtkWriter.hh.
void olb::VTKwriter< T, FUNCTOR, VTKTYPE >::write | ( | FUNCTOR & | f, |
int | iT = 0 ) |
Definition at line 254 of file vtkWriter.hh.
void olb::VTKwriter< T, FUNCTOR, VTKTYPE >::write | ( | int | iT, |
std::string | nameCollection, | ||
F | applyFunctors ) |
to clear stored functors, not yet used due to lack of necessity
Definition at line 92 of file vtkWriter.hh.
References olb::createFileName(), olb::singleton::directories(), olb::singleton::MpiManager::getRank(), olb::LoadBalancer< T >::getRankSize(), olb::singleton::Directories::getVtkOutDir(), olb::LoadBalancer< T >::glob(), olb::singleton::mpi(), olb::LoadBalancer< T >::size(), olb::VTI, and olb::VTU.
void olb::VTKwriter< T, FUNCTOR, VTKTYPE >::write | ( | int | iT = 0 | ) |
Definition at line 224 of file vtkWriter.hh.
void olb::VTKwriter< T, FUNCTOR, VTKTYPE >::write | ( | std::shared_ptr< FUNCTOR > | ptr_f, |
int | iT = 0 ) |
Definition at line 276 of file vtkWriter.hh.
|
protected |
wrapper for VTM file creation
Definition at line 56 of file vtkWriter.hh.
References olb::createFileName(), olb::singleton::directories(), and olb::singleton::Directories::getVtkOutDir().
|
staticconstexpr |
Definition at line 59 of file vtkWriter.h.
|
staticconstexpr |
Definition at line 58 of file vtkWriter.h.