89 std::string
getName()
const final;
95 unsigned readTriangleWall(std::string filename,
ParticleSpecies* species,
Mdouble scaleFactor = 1,
Vec3D centerOfRotation = {0,0,0},
Vec3D velocity = {0,0,0},
Vec3D angularVelocity = {0,0,0});
FileType
With FileType options, one is able to choose if data is to be read/written from/into no or single or ...
Definition: File.h:41
Container to store the pointers to all objects that one creates in a simulation.
Definition: BaseHandler.h:51
Basic class for walls.
Definition: BaseWall.h:49
Definition: ParticleSpecies.h:37
Definition: Kernel/VTKWriter/VTKData.h:36
Container to store all BaseWall.
Definition: WallHandler.h:44
std::unordered_map< DetailsVTKOptions, FileType > getWriteWallDetailsVTKAll() const
Definition: WallHandler.cc:515
void setWriteDetailsVTK(DetailsVTKOptions, FileType)
Definition: WallHandler.cc:482
BaseWall * readAndCreateObject(std::istream &is)
Create a new wall, based on the information provided in a restart file.
Definition: WallHandler.cc:213
FileType getWriteVTK() const
Returns whether walls are written in a VTK file.
Definition: WallHandler.cc:477
WallHandler()
Default constructor, it creates an empty WallHandler.
Definition: WallHandler.cc:54
void addObject(BaseWall *W) final
Adds a BaseWall to the WallHandler.
Definition: WallHandler.cc:115
void setWriteWallSurfaceAreaVTK(bool writeWallSurfaceAreaVTK)
Enables/disables the calculation and writing of the surface area of the cells.
Definition: WallHandler.cc:520
FileType writeVTK_
Definition: WallHandler.h:166
void readAndAddObject(std::istream &is) final
Create a new wall in the WallHandler, based on the information provided in a restart file.
Definition: WallHandler.cc:299
bool getWriteWallSurfaceAreaVTK() const
Definition: WallHandler.cc:525
std::unordered_map< DetailsVTKOptions, FileType > writeDetailsVTK_
unordered_map storing the file types corresponding to each of the enum DetailsVTKOptions
Definition: WallHandler.h:173
bool getWriteDetailsVTKAny() const
Definition: WallHandler.cc:508
DetailsVTKOptions
Definition: WallHandler.h:118
@ WEARABLENURBSWALL
Writes the debris.
@ BOUNDINGBOX
Writes a bounding box around the domain.
@ NURBSWALL
Writes the NURBS control points.
void setWriteVTK(FileType)
Sets whether walls are written into a VTK file.
Definition: WallHandler.cc:467
FileType getWriteDetailsVTK(DetailsVTKOptions) const
Definition: WallHandler.cc:494
std::string getName() const final
Returns the name of the handler, namely the string "WallHandler".
Definition: WallHandler.cc:310
~WallHandler() final
Destructor, it destructs the WallHandler and all BaseWall it contains.
Definition: WallHandler.cc:103
BaseWall * readAndCreateOldObject(std::istream &is)
Create a new wall, based on the information from old-style restart data.
Definition: WallHandler.cc:259
void actionsAfterParticleGhostUpdate()
Calls the method actionsAfterParticleGhostUpdate of every wall in the handler.
Definition: WallHandler.cc:458
WallHandler & operator=(const WallHandler &rhs)
Assignment operator that copies the pointer to the DPMBase and all BaseWall in the given WallHandler.
Definition: WallHandler.cc:88
unsigned readTriangleWall(std::string filename, ParticleSpecies *species, Mdouble scaleFactor=1, Vec3D centerOfRotation={0, 0, 0}, Vec3D velocity={0, 0, 0}, Vec3D angularVelocity={0, 0, 0})
Reads triangulated walls from vtk or stl files, and converts them into a set of TriangleWalls.
Definition: WallHandler.cc:341
void writeWallDetailsVTKBoundingBox(VTKData &data) const
Definition: WallHandler.cc:315
static BaseWall * createObject(const std::string &type)
Create a new wall, with the type given as a string (required for restarting).
Definition: WallHandler.cc:129