WearableTriangulatedWall.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_WEARABLETRIANGULATEDWALL_H
6 #define MERCURYDPM_WEARABLETRIANGULATEDWALL_H
7 
8 #include "TriangulatedWall.h"
9 
11 {
12 public:
13 
18 
23 
31  WearableTriangulatedWall(Mdouble lengthU, Mdouble lengthV, Mdouble resolutionU, Mdouble resolutionV);
32 
36  ~WearableTriangulatedWall() override;
37 
42 
46  WearableTriangulatedWall* copy() const override;
47 
51  void read(std::istream& is) override;
52 
56  void write(std::ostream& os) const override;
57 
61  std::string getName() const override;
62 
63  void computeWear() override;
64 
65 private:
66  std::vector<std::vector<Vec3D>> debris_;
67 
68  void storeDebris(Vec3D P, const Vec3D& debris);
69 
70  void processDebris();
71 };
72 
73 
74 #endif //MERCURYDPM_WEARABLETRIANGULATEDWALL_H
A TriangulatedWall is a triangulation created from a set of vertices and a n-by-3 connectivity matrix...
Definition: TriangulatedWall.h:31
Definition: Kernel/Math/Vector.h:30
Definition: WearableTriangulatedWall.h:11
WearableTriangulatedWall()
Default constructor.
Definition: WearableTriangulatedWall.cc:8
void storeDebris(Vec3D P, const Vec3D &debris)
Definition: WearableTriangulatedWall.cc:168
std::vector< std::vector< Vec3D > > debris_
Definition: WearableTriangulatedWall.h:66
void read(std::istream &is) override
Reads an WearableTriangulatedWall from an input stream, for example a restart file.
Definition: WearableTriangulatedWall.cc:105
void processDebris()
Definition: WearableTriangulatedWall.cc:208
WearableTriangulatedWall & operator=(const WearableTriangulatedWall &other)
Definition: WearableTriangulatedWall.cc:84
WearableTriangulatedWall * copy() const override
Wall copy method. It calls the copy constructor of this Wall, useful for polymorphism.
Definition: WearableTriangulatedWall.cc:97
void write(std::ostream &os) const override
Writes an WearableTriangulatedWall to an output stream, for example a restart file.
Definition: WearableTriangulatedWall.cc:114
std::string getName() const override
Returns the name of the object, here the string "WearableTriangulatedWall".
Definition: WearableTriangulatedWall.cc:122
void computeWear() override
Definition: WearableTriangulatedWall.cc:127
~WearableTriangulatedWall() override
Destructor.
Definition: WearableTriangulatedWall.cc:76
double P
Uniform pressure.
Definition: TwenteMeshGluing.cpp:77
std::string string(const unsigned &i)
Definition: oomph_definitions.cc:286