CylindricalWall.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 CYLINDRICALWALL_H
6 #define CYLINDRICALWALL_H
7 
8 #include "BaseWall.h"
9 
16 class CylindricalWall : public BaseWall
17 {
18 public:
23 
28 
32  explicit CylindricalWall(double radius);
33 
37  CylindricalWall* copy() const override;
38 
42  void set(Mdouble radius);
43 
47  bool getDistanceAndNormal(const BaseParticle& P, Mdouble& distance, Vec3D& normal_return) const override;
48 
52  void read(std::istream& is) override;
53 
57  void oldRead(std::istream& is);
58 
62  void write(std::ostream& os) const override;
63 
67  std::string getName() const override;
68 
72  double getRadius() const;
73 
74 private:
76 };
77 
78 #endif
float * p
Definition: Tutorial_Map_using.cpp:9
Definition: BaseParticle.h:33
Basic class for walls.
Definition: BaseWall.h:28
Definition: CylindricalWall.h:17
void write(std::ostream &os) const override
outputs wall
Definition: CylindricalWall.cc:81
CylindricalWall * copy() const override
Wall copy method. It calls the copy contrustor of this Wall, usefull for polymorfism.
Definition: CylindricalWall.cc:39
std::string getName() const override
Returns the name of the object.
Definition: CylindricalWall.cc:87
void oldRead(std::istream &is)
Definition: CylindricalWall.cc:74
Mdouble radius_
Definition: CylindricalWall.h:75
CylindricalWall()
Definition: CylindricalWall.cc:11
void set(Mdouble radius)
Defines a standard wall, given an outward normal vector s. t. normal*x=position.
Definition: CylindricalWall.cc:45
void read(std::istream &is) override
reads wall
Definition: CylindricalWall.cc:67
double getRadius() const
access function for radius
Definition: CylindricalWall.cc:93
bool getDistanceAndNormal(const BaseParticle &P, Mdouble &distance, Vec3D &normal_return) const override
Since this function should be called before calculating any Particle-Wall interactions,...
Definition: CylindricalWall.cc:51
Definition: Kernel/Math/Vector.h:30
double P
Uniform pressure.
Definition: TwenteMeshGluing.cpp:77
radius
Definition: UniformPSDSelfTest.py:15
std::string string(const unsigned &i)
Definition: oomph_definitions.cc:286