SuperQuadricParticleVtkWriter.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 MERCURYDPM_SUPERQUADRICPARTICLEVTKWRITER_H
6 #define MERCURYDPM_SUPERQUADRICPARTICLEVTKWRITER_H
7 
8 
10 
12 {
13 public:
14 
15  explicit SuperQuadricParticleVtkWriter(ParticleHandler& particleHandler) : ParticleVtkWriter(particleHandler)
16  {}
17 
18  void writeVTK() const override;
19 
20  ~SuperQuadricParticleVtkWriter() override = default;
21 
22  std::string getName() const override
23  {
24  return "SuperQuadricParticleVtkWriter";
25  }
26 
27 private:
28  void writeVTKOrientation(std::fstream& file) const;
29 
30  void writeVTKSuperquadricGeometry(std::fstream& file) const;
31 };
32 
33 
34 #endif //MERCURYDPM_SUPERQUADRICPARTICLEVTKWRITER_H
Container to store pointers to all particles.
Definition: ParticleHandler.h:28
Definition: ParticleVtkWriter.h:12
Definition: SuperQuadricParticleVtkWriter.h:12
~SuperQuadricParticleVtkWriter() override=default
std::string getName() const override
Definition: SuperQuadricParticleVtkWriter.h:22
void writeVTK() const override
Definition: SuperQuadricParticleVtkWriter.cc:8
SuperQuadricParticleVtkWriter(ParticleHandler &particleHandler)
Definition: SuperQuadricParticleVtkWriter.h:15
void writeVTKSuperquadricGeometry(std::fstream &file) const
Definition: SuperQuadricParticleVtkWriter.cc:42
void writeVTKOrientation(std::fstream &file) const
Definition: SuperQuadricParticleVtkWriter.cc:21
std::string string(const unsigned &i)
Definition: oomph_definitions.cc:286