BoundaryVTKWriter.h
Go to the documentation of this file.
1 // This file is part of the MercuryDPM project (https://www.mercurydpm.org).
2 // Copyright (c), The MercuryDPM Developers Team. All rights reserved.
3 // License: BSD 3-Clause License; see the LICENSE file in the root directory.
4 
5 #ifndef BOUNDARY_VTKWRITER_H
6 #define BOUNDARY_VTKWRITER_H
7 
9 #include "BoundaryHandler.h"
10 
11 class BoundaryVTKWriter final : public BaseVTKWriter<BoundaryHandler>
12 {
13 
14 public:
15 
19  explicit BoundaryVTKWriter(BoundaryHandler& boundaryHandler) : BaseVTKWriter(boundaryHandler)
20  {}
21 
26 
30  void writeVTK() const override;
31 
36  {
37  return "BoundaryVTKWriter";
38  }
39 
40 protected:
41 
45  void writeVTKPoints(std::fstream& file) const;
46 
50  void writeVTKPointData(std::fstream& file) const;
51 
52 };
53 
54 
55 #endif
Definition: BaseVTKWriter.h:18
Container to store pointers to all BaseBoundary objects.
Definition: BoundaryHandler.h:17
Definition: BoundaryVTKWriter.h:12
void writeVTKPoints(std::fstream &file) const
writes the point data to the vtu file (i.e. the vertices of the mesh displayed in paraview)
BoundaryVTKWriter(BoundaryHandler &boundaryHandler)
Non-default constructor; sets the handler and fileCounter.
Definition: BoundaryVTKWriter.h:19
void writeVTK() const override
writes a vtk file
Definition: BoundaryVTKWriter.cc:8
BoundaryVTKWriter(const BoundaryVTKWriter &)=default
Default copy constructor.
std::string getName() const
the name of the class in the restart file
Definition: BoundaryVTKWriter.h:35
void writeVTKPointData(std::fstream &file) const
writes the point data to the vtu file (i.e. options how to color the boundarys displayed in paraview)
std::string string(const unsigned &i)
Definition: oomph_definitions.cc:286