75 void read(std::istream& is)
override;
80 void write(std::ostream& os)
const override;
170 void getVTK(std::vector<Vec3D>& points, std::vector<std::vector<double>>& triangleStrips)
const unsigned n
Definition: CG3DPackingUnitTest.cpp:32
Defines the basic properties that a interactable object can have.
Definition: BaseInteractable.h:55
Stores information about interactions between two interactable objects; often particles but could be ...
Definition: BaseInteraction.h:60
Definition: BaseParticle.h:54
Basic class for walls.
Definition: BaseWall.h:49
virtual void actionsOnRestart()
No implementation but can be overidden in its derived classes.
Definition: BaseWall.h:184
void renderWall(VTKContainer &vtk)
Definition: BaseWall.cc:605
std::vector< BaseWall * > getRenderedWalls() const
Definition: BaseWall.cc:600
virtual BaseWall * copy() const =0
Pure virtual function that can be overwritten in inherited classes in order to copy a BaseWall.
virtual void writeWallDetailsVTK(VTKData &data) const
Definition: BaseWall.h:246
virtual void actionsAfterParticleGhostUpdate()
No implementation but can be overidden in its derived classes.
Definition: BaseWall.h:193
void setIndSpecies(unsigned int indSpecies) override
Define the species of this wall using the index of the species in the SpeciesHandler in this DPMBase.
Definition: BaseWall.cc:142
virtual bool getDistanceNormalOverlapSuperquadric(const SuperQuadricParticle &p, Mdouble &distance, Vec3D &normal_return, Mdouble &overlap) const
Definition: BaseWall.cc:570
void addParticlesAtWall(unsigned numElements=50)
Definition: BaseWall.cc:645
void setVTKVisibility(bool vtkVisibility)
Definition: BaseWall.cc:548
void intersectVTK(std::vector< Vec3D > &points, Vec3D normal, Vec3D position) const
Definition: BaseWall.cc:241
void projectOntoWallVTK(Vec3D &point0, const Vec3D &point1, const Vec3D &normal, const Vec3D &position) const
Definition: BaseWall.cc:231
static void addToVTK(const std::vector< Vec3D > &points, VTKContainer &vtk)
Takes the points provided and adds a triangle strip connecting these points to the vtk container.
Definition: BaseWall.cc:501
void addRenderedWall(BaseWall *w)
Definition: BaseWall.cc:584
virtual void checkInteractions(InteractionHandler *interactionHandler, unsigned int timeStamp)
Check if all interactions are valid.
Definition: BaseWall.h:220
void setVelocityControl(Vec3D forceGoal, Vec3D gainFactor, Vec3D baseVelocity)
Definition: BaseWall.cc:638
WallHandler * getHandler() const
A function which returns the WallHandler that handles this BaseWall.
Definition: BaseWall.cc:134
void write(std::ostream &os) const override
Function that writes a BaseWall to an output stream, usually a restart file.
Definition: BaseWall.cc:100
virtual void handleParticleRemoval(unsigned int id)
Handles the addition of particles to the particleHandler.
Definition: BaseWall.h:212
void removeRenderedWalls()
Definition: BaseWall.cc:589
virtual void setHandler(WallHandler *handler)
A function which sets the WallHandler for this BaseWall.
Definition: BaseWall.cc:125
virtual Vec3D getFurthestPointSuperQuadric(const Vec3D &normalBodyFixed, const Vec3D &axes, Mdouble eps1, Mdouble eps2) const
Definition: BaseWall.cc:577
const Vec3D getAxis() const
Definition: BaseWall.cc:533
virtual void handleParticleAddition(unsigned int id, BaseParticle *p)
Handles the addition of particles to the particleHandler.
Definition: BaseWall.h:203
bool isInsideWallVTK(const Vec3D &point, const Vec3D &normal, const Vec3D &position) const
Definition: BaseWall.cc:220
virtual void writeVTK(VTKContainer &vtk) const
Definition: BaseWall.cc:496
virtual bool isLocal(Vec3D &min, Vec3D &max) const
Definition: BaseWall.h:138
std::vector< BaseWall * > renderedWalls_
Definition: BaseWall.h:261
bool vtkVisibility_
Definition: BaseWall.h:256
~BaseWall() override
Default destructor.
Definition: BaseWall.cc:66
WallHandler * handler_
Definition: BaseWall.h:248
void read(std::istream &is) override
Function that reads a BaseWall from an input stream, usually a restart file.
Definition: BaseWall.cc:78
bool getLinePlaneIntersect(Vec3D &intersect, const Vec3D &p0, const Vec3D &p1, const Vec3D &n, const Vec3D &p)
Definition: BaseWall.cc:204
virtual BaseInteraction * getInteractionWithSuperQuad(SuperQuadricParticle *p, unsigned timeStamp, InteractionHandler *interactionHandler)
Definition: BaseWall.cc:524
BaseWall()
Default constructor.
Definition: BaseWall.cc:36
bool isFixed() const override
Definition: BaseWall.cc:186
void setForceControl(Vec3D forceGoal, Vec3D gainFactor, Vec3D baseVelocity={0, 0, 0})
Slowly adjusts the force on a wall towards a specified goal, by adjusting (prescribing) the velocity ...
Definition: BaseWall.cc:196
void setSpecies(const ParticleSpecies *species)
Defines the species of the current wall.
Definition: BaseWall.cc:169
bool getVTKVisibility() const
Definition: BaseWall.cc:543
virtual void computeWear()
Definition: BaseWall.h:248
BaseWall * getRenderedWall(size_t i) const
Definition: BaseWall.cc:595
BaseInteraction * getInteractionWith(BaseParticle *p, unsigned timeStamp, InteractionHandler *interactionHandler) override
Returns the interaction between this wall and a given particle, nullptr if there is no interaction.
Definition: BaseWall.cc:367
virtual bool getDistanceAndNormal(const BaseParticle &P, Mdouble &distance, Vec3D &normal_return) const =0
Pure virtual function that computes the distance of a BaseParticle to this wall and returns the norma...
virtual bool getDistanceNormalOverlap(const BaseParticle &P, Mdouble &distance, Vec3D &normal_return, Mdouble &overlap) const
Definition: BaseWall.cc:553
void getVTK(std::vector< Vec3D > &points, std::vector< std::vector< double >> &triangleStrips)
Definition: BaseWall.h:170
Container to store Interaction objects.
Definition: InteractionHandler.h:45
Definition: ParticleSpecies.h:37
Definition: SuperQuadricParticle.h:57
Definition: Kernel/VTKWriter/VTKData.h:36
Container to store all BaseWall.
Definition: WallHandler.h:44
double P
Uniform pressure.
Definition: TwenteMeshGluing.cpp:73
const std::complex< Mdouble > i
Definition: ExtendedMath.h:51
Definition: BaseWall.h:38
std::vector< std::vector< double > > triangleStrips
Definition: BaseWall.h:40
std::vector< Vec3D > points
Definition: BaseWall.h:39