31 #ifndef INFINITEWALL_H
32 #define INFINITEWALL_H
120 Mdouble& overlap)
const override;
125 void read(std::istream& is)
override;
130 void oldRead(std::istream& is);
140 std::string
getName()
const override;
150 void createVTK(std::vector<Vec3D>& myPoints)
const;
#define MERCURYDPM_DEPRECATED
Definition: GeneralDefine.h:37
virtual void move(const Vec3D &move)
Moves this BaseInteractable by adding an amount to the position.
Definition: BaseInteractable.cc:215
Definition: BaseParticle.h:54
Basic class for walls.
Definition: BaseWall.h:49
A infinite wall fills the half-space {point: (position_-point)*normal_<=0}.
Definition: InfiniteWall.h:48
void createVTK(std::vector< Vec3D > &myPoints) const
Definition: InfiniteWall.cc:224
Vec3D getNormal() const
Access function for normal.
Definition: InfiniteWall.cc:213
void setNormal(Vec3D normal)
Changes the normal of the InfiniteWall.
Definition: InfiniteWall.cc:127
bool getDistanceAndNormal(const BaseParticle &p, Mdouble &distance, Vec3D &normal_return) const override
Compute the distance from the wall for a given BaseParticle and return if there is a collision....
Definition: InfiniteWall.cc:168
void read(std::istream &is) override
Reads InfiniteWall from a restart file.
Definition: InfiniteWall.cc:180
void set(Vec3D normal, Vec3D point)
Defines a standard wall, given an outward normal vector s.t. normal*x=normal*point for all x of the w...
Definition: InfiniteWall.cc:118
~InfiniteWall() override
Default destructor.
Definition: InfiniteWall.cc:97
Vec3D getFurthestPointSuperQuadric(const Vec3D &normalBodyFixed, const Vec3D &axes, Mdouble eps1, Mdouble eps2) const override
Largely untested, use at your own risk for anything other than ellipsoids.
Definition: InfiniteWall.cc:312
std::string getName() const override
Writes the InfiniteWall to an output stream, usually a restart file.
Definition: InfiniteWall.cc:205
Mdouble getDistance(Vec3D position) const
Returns the distance of the wall to the particle.
Definition: InfiniteWall.cc:151
InfiniteWall * copy() const override
Wall copy method. It calls the copy constructor of this Wall, useful for polymorphism.
Definition: InfiniteWall.cc:105
void writeVTK(VTKContainer &vtk) const override
Definition: InfiniteWall.cc:270
bool getDistanceNormalOverlapSuperquadric(const SuperQuadricParticle &p, Mdouble &distance, Vec3D &normal_return, Mdouble &overlap) const override
Compute the distance from the wall for a given BaseParticle and return if there is a collision....
Definition: InfiniteWall.cc:279
InfiniteWall()
Default constructor, the normal is infinitely long.
Definition: InfiniteWall.cc:34
void oldRead(std::istream &is)
Reads InfiniteWall from an old-style restart file.
Definition: InfiniteWall.cc:190
Definition: ParticleSpecies.h:37
Definition: SuperQuadricParticle.h:57
Definition: BaseWall.h:38