InteractionVTKWriter.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 INTERACTION_VTKWRITER_H
6 #define INTERACTION_VTKWRITER_H
7 
9 #include "InteractionHandler.h"
10 
11 class InteractionVTKWriter final : public BaseVTKWriter<InteractionHandler>
12 {
13 
14 public:
15 
19  explicit InteractionVTKWriter(InteractionHandler& interactionHandler) : BaseVTKWriter(interactionHandler)
20  {}
21 
26 
30  void writeVTK() const override;
31 
36  {
37  return "InteractionVTKWriter";
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 Interaction objects.
Definition: InteractionHandler.h:25
Definition: InteractionVTKWriter.h:12
InteractionVTKWriter(InteractionHandler &interactionHandler)
Non-default constructor; sets the handler and fileCounter.
Definition: InteractionVTKWriter.h:19
void writeVTKPointData(std::fstream &file) const
writes the point data to the vtu file (i.e. options how to color the interactions displayed in paravi...
Definition: InteractionVTKWriter.cc:31
void writeVTKPoints(std::fstream &file) const
writes the point data to the vtu file (i.e. the vertices of the mesh displayed in paraview)
Definition: InteractionVTKWriter.cc:21
std::string getName() const
the name of the class in the restart file
Definition: InteractionVTKWriter.h:35
void writeVTK() const override
writes a vtk file
Definition: InteractionVTKWriter.cc:8
InteractionVTKWriter(const InteractionVTKWriter &)=default
Default copy constructor.
std::string string(const unsigned &i)
Definition: oomph_definitions.cc:286