NetDEM v1.0
|
A class for generating packs of particles. More...
#include <gen_pack.hpp>
Static Public Member Functions | |
static VecXT< Particle > | GetGridPack (double len_x, double len_y, double len_z, double center_x, double center_y, double center_z, int num_x, int num_y, int num_z, const VecXT< Shape * > &shape_list) |
Generate a grid of particles. | |
static VecXT< Particle > | GetGridPack (double len_x, double len_y, double len_z, double center_x, double center_y, double center_z, int num_x, int num_y, int num_z, Shape *shape) |
Generate a grid of particles with a single shape. | |
static VecXT< BondedSpheres > | GetGridPack (double len_x, double len_y, double len_z, double center_x, double center_y, double center_z, int num_x, int num_y, int num_z, const BondedSpheres &bonded_spheres_template) |
Generate a grid of bonded spheres. | |
static VecXT< BondedVoronois > | GetGridPack (double len_x, double len_y, double len_z, double center_x, double center_y, double center_z, int num_x, int num_y, int num_z, const BondedVoronois &bonded_voronois_template) |
Generate a grid of bonded Voronois. | |
static VecXT< Particle > | GetVoronoiPack (STLModel const &st_model, int num_p, const VecXT< Shape * > &shape_list) |
Generate a pack of particles inside a mesh using Voronoi tessellation. | |
static VecXT< Particle > | GetVoronoiPack (double len_x, double len_y, double len_z, double center_x, double center_y, double center_z, int num_p, const VecXT< Shape * > &shape_list) |
Generate a pack of particles inside a bounding box using Voronoi tessellation. | |
static VecXT< Particle > | GetVoronoiPack (double len_x, double len_y, double len_z, double center_x, double center_y, double center_z, int num_p, Shape *shape) |
Generate a pack of particles inside a bounding box using Voronoi tessellation with a single shape. | |
static VecXT< Particle > | GetVoronoiPack (STLModel const &st_model, int num_p, Shape *shape) |
Generate a pack of particles inside a mesh using Voronoi tessellation with a single shape. | |
A class for generating packs of particles.
|
static |
Generate a grid of bonded spheres.
Generates a grid of bonded spheres with the specified dimensions and number of points in each direction, using the given template as a reference. Each sphere would have random orientation.
len_x | The length of the box in the x direction. |
len_y | The length of the box in the y direction. |
len_z | The length of the box in the z direction. |
center_x | The centroid of the box in the x direction. |
center_y | The centroid of the box in the y direction. |
center_z | The centroid of the box in the z direction. |
num_x | The number of points in the x direction. |
num_y | The number of points in the y direction. |
num_z | The number of points in the z direction. |
bonded_spheres_template | The template to use for generating bonded spheres. |
|
static |
Generate a grid of bonded Voronois.
Generates a grid of bonded Voronois with the specified dimensions and number of points in each direction, using the given template as a reference. Each Voronoi would have random orientation.
len_x | The length of the box in the x direction. |
len_y | The length of the box in the y direction. |
len_z | The length of the box in the z direction. |
center_x | The centroid of the box in the x direction. |
center_y | The centroid of the box in the y direction. |
center_z | The centroid of the box in the z direction. |
num_x | The number of points in the x direction. |
num_y | The number of points in the y direction. |
num_z | The number of points in the z direction. |
bonded_voronois_template | The template to use for generating bonded Voronois. |
|
static |
Generate a grid of particles.
Generates a grid of particles with the specified dimensions and number of points in each direction. Each generated particle would have a shape that is randomly selected from the given shape library.
len_x | The length of the box in the x direction. |
len_y | The length of the box in the y direction. |
len_z | The length of the box in the z direction. |
center_x | The centroid of the box in the x direction. |
center_y | The centroid of the box in the y direction. |
center_z | The centroid of the box in the z direction. |
num_x | The number of points in the x direction. |
num_y | The number of points in the y direction. |
num_z | The number of points in the z direction. |
shape_list | Reference to shape library. |
|
static |
Generate a grid of particles with a single shape.
Generates a grid of particles with the specified dimensions and number of points in each direction. Each generated particle would have the same shape.
len_x | The length of the box in the x direction. |
len_y | The length of the box in the y direction. |
len_z | The length of the box in the z direction. |
center_x | The centroid of the box in the x direction. |
center_y | The centroid of the box in the y direction. |
center_z | The centroid of the box in the z direction. |
num_x | The number of points in the x direction. |
num_y | The number of points in the y direction. |
num_z | The number of points in the z direction. |
shape | A pointer to the shape to use for all particles. |
|
static |
Generate a pack of particles inside a bounding box using Voronoi tessellation.
Generates a pack of particles with the specified number inside the given bounding box using Voronoi tessellation. Each generated particle would have a shape that is randomly selected from the given shape library.
len_x | The length of the box in the x direction. |
len_y | The length of the box in the y direction. |
len_z | The length of the box in the z direction. |
center_x | The centroid of the box in the x direction. |
center_y | The centroid of the box in the y direction. |
center_z | The centroid of the box in the z direction. |
num_p | The number of particles to generate. |
shape_list | Reference to shape library. |
|
static |
Generate a pack of particles inside a bounding box using Voronoi tessellation with a single shape.
Generates a pack of particles with the specified number inside the given bounding box using Voronoi tessellation. Each generated particle would have the same shape.
len_x | The length of the box in the x direction. |
len_y | The length of the box in the y direction. |
len_z | The length of the box in the z direction. |
center_x | The centroid of the box in the x direction. |
center_y | The centroid of the box in the y direction. |
center_z | The centroid of the box in the z direction. |
num_p | The number of particles to generate. |
shape | A pointer to the shape to use for all particles. |
|
static |
Generate a pack of particles inside a mesh using Voronoi tessellation.
Generates a pack of particles with the specified number inside the given STL model using Voronoi tessellation. Each generated particle would have a shape that is randomly selected from the given shape library.
st_model | The STL model to generate the particles inside. |
num_p | The number of particles to generate. |
shape_list | Reference to shape library. |
|
static |
Generate a pack of particles inside a mesh using Voronoi tessellation with a single shape.
Generates a pack of particles with the specified number inside the given STL model using Voronoi tessellation. Each generated particle would have the same shape.
st_model | The STL model to generate the particles inside. |
num_p | The number of particles to generate. |
shape | A pointer to the shape to use for all particles. |