10 #ifndef SphericalWall_H
11 #define SphericalWall_H
81 void read(std::istream& is)
override;
86 void write(std::ostream& os)
const override;
RowVector3d w
Definition: Matrix_resize_int.cpp:3
float * p
Definition: Tutorial_Map_using.cpp:9
virtual void move(const Vec3D &move)
Moves this BaseInteractable by adding an amount to the position.
Definition: BaseInteractable.cc:193
Definition: BaseParticle.h:33
Basic class for walls.
Definition: BaseWall.h:28
Definition: ParticleSpecies.h:16
A infinite wall fills the half-space {point: (position_-point)*normal_<=0}.
Definition: SphericalWall.h:27
std::string getName() const override
Returns the name of the object, in this case the string "SphericalWall".
Definition: SphericalWall.cc:123
void read(std::istream &is) override
Reads SphericalWall from a restart file.
Definition: SphericalWall.cc:104
void write(std::ostream &os) const override
Writes the SphericalWall to an output stream, usually a restart file.
Definition: SphericalWall.cc:114
~SphericalWall() override
Default destructor.
Definition: SphericalWall.cc:36
SphericalWall * copy() const override
Wall copy method. It calls the copy constructor of this Wall, useful for polymorphism.
Definition: SphericalWall.cc:44
void setRadius(Mdouble radius)
Defines a spherical wall with radius r.
Definition: SphericalWall.cc:55
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: SphericalWall.cc:90
Mdouble radius_
Definition: SphericalWall.h:98
SphericalWall()
Default constructor, the normal is infinitely long.
Definition: SphericalWall.cc:13
Mdouble getDistance(const Vec3D &otherPosition) const
Returns the distance of the wall to the particle.
Definition: SphericalWall.cc:65
Mdouble getRadius() const
Returns the distance of the wall to the particle.
Definition: SphericalWall.cc:73
Definition: Kernel/Math/Vector.h:30
std::string string(const unsigned &i)
Definition: oomph_definitions.cc:286