5 #ifndef TriangulatedWall_H
6 #define TriangulatedWall_H
76 void set(
const std::vector<Vec3D>& points,
const std::vector<std::vector<unsigned>>& cells);
110 void read(std::istream& is)
override;
115 void write(std::ostream& os)
const override;
float * p
Definition: Tutorial_Map_using.cpp:9
Stores information about interactions between two interactable objects; often particles but could be ...
Definition: BaseInteraction.h:39
Definition: BaseParticle.h:33
Basic class for walls.
Definition: BaseWall.h:28
Container to store Interaction objects.
Definition: InteractionHandler.h:25
Definition: ParticleSpecies.h:16
A TriangulatedWall is a triangulation created from a set of vertices and a n-by-3 connectivity matrix...
Definition: TriangulatedWall.h:31
std::vector< Face > face_
Definition: TriangulatedWall.h:137
~TriangulatedWall() override
Destructor.
Definition: TriangulatedWall.cc:205
TriangulatedWall & operator=(const TriangulatedWall &other)
Definition: TriangulatedWall.cc:213
void read(std::istream &is) override
Reads an TriangulatedWall from an input stream, for example a restart file.
Definition: TriangulatedWall.cc:282
void write(std::ostream &os) const override
Writes an TriangulatedWall to an output stream, for example a restart file.
Definition: TriangulatedWall.cc:291
void readVTK(std::string filename)
Definition: TriangulatedWall.cc:49
void writeVTK(VTKContainer &vtk) const override
Definition: TriangulatedWall.cc:471
std::string getName() const override
Returns the name of the object, here the string "TriangulatedWall".
Definition: TriangulatedWall.cc:321
void move(const Vec3D &move) override
Move the TriangulatedWall to a new position, which is a Vec3D from the old position.
Definition: TriangulatedWall.cc:270
void setNormalsAndNeighbours()
Definition: TriangulatedWall.cc:117
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: TriangulatedWall.cc:247
BaseInteraction * getInteractionWith(BaseParticle *p, unsigned timeStamp, InteractionHandler *interactionHandler) override
Get the interaction between this TriangulatedWall and given BaseParticle at a given time.
Definition: TriangulatedWall.cc:334
TriangulatedWall * copy() const override
Wall copy method. It calls the copy constructor of this Wall, useful for polymorphism.
Definition: TriangulatedWall.cc:226
std::vector< Vec3D > vertex_
Definition: TriangulatedWall.h:132
TriangulatedWall()
Default constructor.
Definition: TriangulatedWall.cc:12
void set(const std::vector< Vec3D > &points, const std::vector< std::vector< unsigned >> &cells)
Definition: TriangulatedWall.cc:96
TriangulatedWall(const std::vector< Vec3D > &points, const std::vector< std::vector< unsigned >> &cells, const ParticleSpecies *species)
Constructor setting values.
Definition: Kernel/Math/Vector.h:30
string filename
Definition: MergeRestartFiles.py:39
std::string string(const unsigned &i)
Definition: oomph_definitions.cc:286
Definition: TriangulatedWall.h:39
Mdouble getDistance(const Vec3D &otherPosition) const
computes the signed distance to the face in normal direction
Definition: TriangulatedWall.cc:364
std::array< Face *, 3 > neighbor
For each edge, stores the neighboring face (nullptr if none)
Definition: TriangulatedWall.h:43
std::array< Vec3D, 3 > edgeNormal
For each edge, stores the vector normal to the face normal and the edge direction (vector between the...
Definition: TriangulatedWall.h:45
bool getDistanceAndNormal(const BaseParticle &p, Mdouble &distance, Vec3D &normal_return, Mdouble interactionRadius) const
Returns true if contact with the face exists, false if not. If contact exists, then the distance and ...
Definition: TriangulatedWall.cc:373
Vec3D normal
face normal (vertices are ordered anticlockwise direction around the normal)
Definition: TriangulatedWall.h:47
std::array< Vec3D *, 3 > vertex
defines the three vertices (anticlockwise direction around the normal)
Definition: TriangulatedWall.h:41
Definition: BaseWall.h:17