NuTo
Numerics Tool
|
builds and handles sub boxes More...
#include <SubBoxHandler.h>
Public Member Functions | |
SubBoxHandler (ParticleHandler &rSpheres, Specimen &rSpecimen, Eigen::Vector3i rDivisions) | |
constructor, initializes the handler with a given number of sub box divisions More... | |
SubBoxHandler (ParticleHandler &rSpheres, Specimen &rSpecimen, int rParticlesPerSubBox) | |
constructor, initializes the handler, calculates the number of sub boxes More... | |
double | GetVolume () const |
getter for specimen volume More... | |
void | PrintBoxes () |
prints all sub boxes and the particles inside of them More... | |
void | VisualizeBorders (std::string rFile) |
visualizes the sub boxes More... | |
std::vector< SubBox > & | GetSubBoxes () |
getter for the sub box list More... | |
void | AddSubBox (SubBox &rSubBox) |
adds a sub box to the sub box list sub box to add More... | |
builds and handles sub boxes
NuTo::SubBoxHandler::SubBoxHandler | ( | ParticleHandler & | rSpheres, |
Specimen & | rSpecimen, | ||
Eigen::Vector3i | rDivisions | ||
) |
constructor, initializes the handler with a given number of sub box divisions
rSpheres | spheres to be added to the sub boxes |
rDivisions | sets divs[0]*divs[1]*divs[2] sub boxes |
NuTo::SubBoxHandler::SubBoxHandler | ( | ParticleHandler & | rSpheres, |
Specimen & | rSpecimen, | ||
int | rParticlesPerSubBox | ||
) |
constructor, initializes the handler, calculates the number of sub boxes
rSpheres | spheres to be added to the sub boxes |
void NuTo::SubBoxHandler::AddSubBox | ( | SubBox & | rSubBox | ) |
adds a sub box to the sub box list sub box to add
std::vector< NuTo::SubBox > & NuTo::SubBoxHandler::GetSubBoxes | ( | ) |
getter for the sub box list
double NuTo::SubBoxHandler::GetVolume | ( | ) | const |
getter for specimen volume
void NuTo::SubBoxHandler::PrintBoxes | ( | ) |
prints all sub boxes and the particles inside of them
void NuTo::SubBoxHandler::VisualizeBorders | ( | std::string | rFile | ) |
visualizes the sub boxes
rFile | output file |