![]() |
|
#include <WallVTKWriter.h>
Public Member Functions | |
WallVTKWriter (WallHandler &wallHandler) | |
WallVTKWriter (const WallVTKWriter &)=default | |
void | getVTKData (VTKContainer &vtk) const |
void | writeVTK () const override |
std::string | getName () const |
void | setWriteWallSurfaceAreaVTK (bool writeWallSurfaceAreaVTK) |
bool | getWriteWallSurfaceAreaVTK () const |
void | setCGWidth (double cgWidth) |
![]() | |
BaseVTKWriter (WallHandler &handler) | |
BaseVTKWriter (const BaseVTKWriter &other) | |
unsigned | getFileCounter () const |
void | setFileCounter (unsigned fileCounter) |
void | setOutputDirectory (const std::string &dir) |
const std::string & | getOutputDirectory () const |
std::string | getFileName () const |
Protected Member Functions | |
void | write (std::fstream &file, std::string name, std::function< double(BaseWall *)> f) const |
void | writeVTKPoints (std::fstream &file, VTKContainer &vtk) const |
void | writeVTKCells (std::fstream &file, VTKContainer &vtk) const |
void | writeVTKCellData (std::fstream &file, VTKContainer &vtk) const |
void | writeVTKPointData (std::fstream &file, VTKContainer &vtk) const |
void | writeCGFields (std::fstream &file, VTKContainer &vtk) const |
void | writeVTKSurfaceArea (std::fstream &file, VTKContainer &vtk) const |
Calculates and writes the surface areas of the cells to the vtu file. More... | |
![]() | |
std::fstream | makeVTKFileWithHeader () const |
void | writeVTKFooterAndClose (std::fstream &file) const |
Protected Attributes | |
bool | writeWallSurfaceAreaVTK_ { false } |
double | cgWidth_ = 0.0 |
![]() | |
WallHandler & | handler_ |
particle handler from which the particles should be written More... | |
unsigned int | fileCounter |
std::string | outputDirectory_ |
|
inlineexplicit |
Non-default constructor; sets the handler and fileCounter
|
default |
Default copy constructor
|
inline |
void WallVTKWriter::getVTKData | ( | VTKContainer & | vtk | ) | const |
extracts vtk data from the wallHandler and stores it in a VTKContainer
References BaseHandler< T >::getSize(), BaseVTKWriter< WallHandler >::handler_, VTKContainer::points, VTKContainer::triangleStrips, and w.
Referenced by writeVTK().
bool WallVTKWriter::getWriteWallSurfaceAreaVTK | ( | ) | const |
|
inline |
void WallVTKWriter::setWriteWallSurfaceAreaVTK | ( | bool | writeWallSurfaceAreaVTK | ) |
References writeWallSurfaceAreaVTK_.
Referenced by WallHandler::setWriteWallSurfaceAreaVTK().
|
protected |
References f(), BaseVTKWriter< WallHandler >::handler_, plotDoE::name, and p.
|
protected |
writes data from coarse-graining to the vtu file.
References cgWidth_, Vec3D::getDistance(), BaseHandler< T >::getDPMBase(), BaseVTKWriter< WallHandler >::handler_, logger, DPMBase::particleHandler, and VTKContainer::points.
Referenced by writeVTKPointData().
|
overridevirtual |
writes a vtk file
Implements BaseVTKWriter< WallHandler >.
References getVTKData(), BaseVTKWriter< WallHandler >::makeVTKFileWithHeader(), VTKContainer::points, PROCESSOR_ID, VTKContainer::triangleStrips, writeVTKCellData(), writeVTKCells(), writeVTKPointData(), and writeVTKPoints().
Referenced by DPMBase::writeVTKFiles().
|
protected |
writes cell data to the vtu file (i.e. surface area)
References writeVTKSurfaceArea(), and writeWallSurfaceAreaVTK_.
Referenced by writeVTK().
|
protected |
writes the cell data to the vtu file (i.e. the faces of the mesh displayed in paraview)
References calibrate::c, i, and VTKContainer::triangleStrips.
Referenced by writeVTK().
|
protected |
writes point data to the vtu file (i.e. surface area)
References cgWidth_, and writeCGFields().
Referenced by writeVTK().
|
protected |
writes the point data to the vtu file (i.e. the vertices of the mesh displayed in paraview)
References p, and VTKContainer::points.
Referenced by writeVTK().
|
protected |
Calculates and writes the surface areas of the cells to the vtu file.
The calculation is based on the rendered VTKContainer and it takes time. This functionality is diasabled by default and can be enabled using WallHandler::setWriteWallSurfaceAreaVTK().
[in] | file | Output filestream |
[in] | vtk | Rendered VTKContainer |
References Vec3D::cross(), Vec3D::getLength(), i, p1, VTKContainer::points, and VTKContainer::triangleStrips.
Referenced by writeVTKCellData().
|
protected |
Referenced by setCGWidth(), writeCGFields(), and writeVTKPointData().
|
protected |
Referenced by getWriteWallSurfaceAreaVTK(), setWriteWallSurfaceAreaVTK(), and writeVTKCellData().