10 #ifndef LevelSetWall_H
11 #define LevelSetWall_H
68 void read(std::istream& is)
override;
116 static const int N = 10;
const unsigned n
Definition: CG3DPackingUnitTest.cpp:11
double Mdouble
Definition: GeneralDefine.h:13
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
A infinite wall fills the half-space {point: (position_-point)*normal_<=0}.
Definition: LevelSetWall.h:27
void createVTK()
Definition: LevelSetWall.cc:169
void read(std::istream &is) override
Reads LevelSetWall from a restart file.
Definition: LevelSetWall.cc:101
void createVTKCube()
Definition: LevelSetWall.cc:128
void createVTKDiamond()
Definition: LevelSetWall.cc:149
Shape
Definition: LevelSetWall.h:32
LevelSetWall(Shape s, double radius, ParticleSpecies *sp=nullptr)
Definition: LevelSetWall.cc:15
std::string getName() const override
Returns the name of the object, in this case the string "LevelSetWall".
Definition: LevelSetWall.cc:112
LevelSetWall * copy() const override
Wall copy method. It calls the copy constructor of this Wall, useful for polymorphism.
Definition: LevelSetWall.cc:57
double levelSet_[2 *N+1][2 *N+1][2 *N+1]
Definition: LevelSetWall.h:119
double radius_
Definition: LevelSetWall.h:122
void setShapeCube()
Definition: LevelSetWall.cc:375
VTKContainer vtkLabFrame_
Definition: LevelSetWall.h:124
bool getDistanceAndNormal(const BaseParticle &p, Mdouble &distance, Vec3D &normal_return) const override
Definition: LevelSetWall.cc:83
bool getDistanceAndNormalLabCoordinates(Vec3D position, Mdouble interactionRadius, Mdouble &distance, Vec3D &normal) const
Definition: LevelSetWall.cc:287
void writeToFile(int n, double radiusContact) const
Definition: LevelSetWall.cc:240
void writeVTK(VTKContainer &vtk) const override
Definition: LevelSetWall.cc:117
void setShapeFourSided()
Definition: LevelSetWall.cc:427
~LevelSetWall() override
Default destructor.
Definition: LevelSetWall.cc:49
void setShapeDiamond()
Definition: LevelSetWall.cc:412
void createVTKSphere()
Definition: LevelSetWall.cc:195
static const int N
Definition: LevelSetWall.h:116
void setShapeSphere()
Definition: LevelSetWall.cc:345
void setShapeCylinder()
Definition: LevelSetWall.cc:360
Definition: ParticleSpecies.h:16
Definition: Kernel/Math/Vector.h:30
RealScalar s
Definition: level1_cplx_impl.h:130
void normal(const Vector< double > &x, Vector< double > &normal)
Definition: free_surface_rotation.cc:65
std::string string(const unsigned &i)
Definition: oomph_definitions.cc:286
Definition: BaseWall.h:17