![]() |
OpenLB 1.8.1
|
#include <vtuSurfaceWriter.h>
Public Member Functions | |
VTUsurfaceWriter (std::string name, CuboidDecomposition3D< T > &cuboidDecomposition, LoadBalancer< T > &loadBalancer, bool binary=false) | |
void | createMasterFile () |
void | write (std::size_t iT) |
writes vtu files and assigns values | |
void | addPoint (Vector< T, 3 > &new_position) |
Add single location to output set. | |
void | addPoints (std::vector< Vector< T, 3 > > &new_positions) |
Add multiple locations to output set. | |
void | addConnectivity (std::vector< std::vector< int > > &connections) |
Define connectivity between previously-added output points, rendering them a surface. | |
void | addSTL (STLreader< T > &stlReader) |
Add full STL surface as output surface. | |
void | addFunctor (AnalyticalF3D< T, T > &f) |
Schedule analytical functor for output. | |
void | addFunctor (SuperF3D< T, T > &f) |
Schedule lattice functor for output (interpolates) | |
Protected Member Functions | |
void | preamblePVD (const std::string &fullNamePVD) |
void | closePVD (const std::string &fullNamePVD) |
void | preambleVTU (const std::string &fullName, int num) |
performes <VTKFile ...>, <ImageData ...> and <PieceExtent ...> | |
void | closeVTU (const std::string &fullNamePiece) |
performes </ImageData> and </VTKFile> | |
void | dataPVD (int iT, int i, const std::string &fullNamePVD, const std::string &namePiece) |
performes <DataSet timestep= ... file=namePiece > | |
void | dataPVDmaster (int iT, int i, const std::string &fullNamePVDMaster, const std::string &namePiece) |
performes <DataSet timestep= ... file=namePiece > | |
void | dataArray (const std::string &fullName) |
void | writeFunctor (const std::string &fullName, std::ofstream &fout, SuperF3D< T, T > &f) |
interpolates and writes functors stored at functors | |
void | writeAnalyticalFunctor (const std::string &fullName, std::ofstream &fout, AnalyticalF3D< T, T > &f) |
writes functors. | |
void | writePosition (std::ofstream &fout) |
writes coordinates of points | |
std::vector< std::vector< T > > | removeDuplicates (const std::vector< std::vector< T > > &points) |
removes duplicates from points, needed for STL files | |
std::vector< std::vector< int > > | mapTrianglesToIndices (STLreader< T > &stlReader) |
Static Protected Member Functions | |
static bool | areVectorsEqual (const std::vector< T > &v1, const std::vector< T > &v2, T epsilon=1e-6) |
Protected Attributes | |
std::string | _name |
std::vector< SuperF3D< T, T > * > | _functors |
std::vector< AnalyticalF3D< T, T > * > | _functorsA |
std::vector< Vector< T, 3 > > | pos |
std::vector< std::vector< int > > | connectivity |
CuboidDecomposition3D< T > & | _cuboidDecomposition |
LoadBalancer< T > & | _loadBalancer |
bool | _binary |
OstreamManager | clout |
Definition at line 36 of file vtuSurfaceWriter.h.
olb::VTUsurfaceWriter< T >::VTUsurfaceWriter | ( | std::string | name, |
CuboidDecomposition3D< T > & | cuboidDecomposition, | ||
LoadBalancer< T > & | loadBalancer, | ||
bool | binary = false ) |
Definition at line 36 of file vtuSurfaceWriter.hh.
void olb::VTUsurfaceWriter< T >::addConnectivity | ( | std::vector< std::vector< int > > & | connections | ) |
Define connectivity between previously-added output points, rendering them a surface.
Definition at line 72 of file vtuSurfaceWriter.hh.
void olb::VTUsurfaceWriter< T >::addFunctor | ( | AnalyticalF3D< T, T > & | f | ) |
Schedule analytical functor for output.
Definition at line 46 of file vtuSurfaceWriter.hh.
void olb::VTUsurfaceWriter< T >::addFunctor | ( | SuperF3D< T, T > & | f | ) |
Schedule lattice functor for output (interpolates)
Definition at line 52 of file vtuSurfaceWriter.hh.
void olb::VTUsurfaceWriter< T >::addPoint | ( | Vector< T, 3 > & | new_position | ) |
Add single location to output set.
Definition at line 66 of file vtuSurfaceWriter.hh.
void olb::VTUsurfaceWriter< T >::addPoints | ( | std::vector< Vector< T, 3 > > & | new_positions | ) |
Add multiple locations to output set.
Definition at line 58 of file vtuSurfaceWriter.hh.
void olb::VTUsurfaceWriter< T >::addSTL | ( | STLreader< T > & | stlReader | ) |
Add full STL surface as output surface.
Definition at line 509 of file vtuSurfaceWriter.hh.
References olb::STLreader< T >::getMesh(), and olb::STLmesh< T >::getTriangles().
|
staticprotected |
Definition at line 452 of file vtuSurfaceWriter.hh.
|
protected |
Definition at line 199 of file vtuSurfaceWriter.hh.
References olb::singleton::MpiManager::getRank(), and olb::singleton::mpi().
|
protected |
performes </ImageData> and </VTKFile>
Definition at line 130 of file vtuSurfaceWriter.hh.
void olb::VTUsurfaceWriter< T >::createMasterFile | ( | ) |
Definition at line 171 of file vtuSurfaceWriter.hh.
References olb::createFileName(), olb::singleton::directories(), olb::singleton::MpiManager::getRank(), olb::singleton::Directories::getVtkOutDir(), and olb::singleton::mpi().
|
protected |
Definition at line 218 of file vtuSurfaceWriter.hh.
References olb::singleton::MpiManager::getRank(), and olb::singleton::mpi().
|
protected |
performes <DataSet timestep= ... file=namePiece >
Definition at line 142 of file vtuSurfaceWriter.hh.
|
protected |
performes <DataSet timestep= ... file=namePiece >
Definition at line 154 of file vtuSurfaceWriter.hh.
|
protected |
Definition at line 463 of file vtuSurfaceWriter.hh.
References olb::STLreader< T >::getMesh(), and olb::STLmesh< T >::getTriangles().
|
protected |
Definition at line 185 of file vtuSurfaceWriter.hh.
|
protected |
performes <VTKFile ...>, <ImageData ...> and <PieceExtent ...>
Definition at line 115 of file vtuSurfaceWriter.hh.
|
protected |
removes duplicates from points, needed for STL files
Definition at line 432 of file vtuSurfaceWriter.hh.
void olb::VTUsurfaceWriter< T >::write | ( | std::size_t | iT | ) |
writes vtu files and assigns values
Definition at line 81 of file vtuSurfaceWriter.hh.
References olb::createFileName(), olb::singleton::directories(), olb::singleton::MpiManager::getRank(), olb::singleton::Directories::getVtkOutDir(), and olb::singleton::mpi().
|
protected |
writes functors.
Definition at line 340 of file vtuSurfaceWriter.hh.
References olb::Base64Encoder< T >::encode(), olb::GenericF< T, S >::getName(), olb::singleton::MpiManager::getRank(), olb::GenericF< T, S >::getTargetDim(), olb::singleton::mpi(), and olb::singleton::MpiManager::reduceVect().
|
protected |
interpolates and writes functors stored at functors
Definition at line 333 of file vtuSurfaceWriter.hh.
|
protected |
writes coordinates of points
Definition at line 321 of file vtuSurfaceWriter.hh.
|
protected |
Definition at line 45 of file vtuSurfaceWriter.h.
|
protected |
Definition at line 43 of file vtuSurfaceWriter.h.
|
protected |
Definition at line 39 of file vtuSurfaceWriter.h.
|
protected |
Definition at line 40 of file vtuSurfaceWriter.h.
|
protected |
Definition at line 44 of file vtuSurfaceWriter.h.
|
protected |
Definition at line 38 of file vtuSurfaceWriter.h.
|
protected |
Definition at line 47 of file vtuSurfaceWriter.h.
|
protected |
Definition at line 42 of file vtuSurfaceWriter.h.
|
protected |
Definition at line 41 of file vtuSurfaceWriter.h.