A class representing a set of bonded Voronoi cells generated from an STL file.
More...
#include <bonded_voronois.hpp>
A class representing a set of bonded Voronoi cells generated from an STL file.
◆ BondedVoronois() [1/3]
BondedVoronois::BondedVoronois |
( |
| ) |
|
◆ BondedVoronois() [2/3]
◆ BondedVoronois() [3/3]
◆ GetCentroid()
Vec3d BondedVoronois::GetCentroid |
( |
| ) |
|
Calculate the centroid of the Voronoi cells.
- Returns
- The centroid of the Voronoi cells as a Vec3d object.
◆ ImportToScene()
void BondedVoronois::ImportToScene |
( |
Scene *const | scene | ) |
const |
◆ InitBonds()
void BondedVoronois::InitBonds |
( |
| ) |
|
Initialize the bonded pairs between particles.
◆ InitFromSTL() [1/2]
void netdem::BondedVoronois::InitFromSTL |
( |
std::string const & | filename, |
|
|
int | num_voros ) |
Initialize the Voronoi cells from an STL file with the given number of cells.
- Parameters
-
filename | The path to the STL file to read. |
num_voros | The number of Voronoi cells to generate. |
◆ InitFromSTL() [2/2]
void BondedVoronois::InitFromSTL |
( |
STLModel const & | stl_model, |
|
|
int | num_voros ) |
Initialize the Voronoi cells from an STLModel object with the given number of cells.
- Parameters
-
stl_model | The STLModel object to read from. |
num_voros | The number of Voronoi cells to generate. |
◆ MakePorosity()
void BondedVoronois::MakePorosity |
( |
double | porosity | ) |
|
Make the Voronoi cells porous by adding gaps between particles.
- Parameters
-
porosity | The desired porosity of the cells as a fraction. |
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ RotateByRodrigues()
void BondedVoronois::RotateByRodrigues |
( |
double | rot_angle, |
|
|
double | rot_axis_x, |
|
|
double | rot_axis_y, |
|
|
double | rot_axis_z ) |
Rotate the Voronoi cells by a given angle around a given axis using the Rodrigues formula.
- Parameters
-
rot_angle | The angle to rotate by. |
rot_axis_x | The x component of the rotation axis. |
rot_axis_y | The y component of the rotation axis. |
rot_axis_z | The z component of the rotation axis. |
◆ SaveAsVTK()
void BondedVoronois::SaveAsVTK |
( |
std::string const & | file_name | ) |
|
Save the Voronoi cells as a VTK file.
- Parameters
-
file_name | The path and name of the VTK file to save. |
◆ SetBondModel()
void BondedVoronois::SetBondModel |
( |
ContactModel * | cnt_model | ) |
|
Set the contact model used to calculate the forces between particles.
- Parameters
-
cnt_model | The contact model to use. |
◆ Translate()
void BondedVoronois::Translate |
( |
double | pos_x, |
|
|
double | pos_y, |
|
|
double | pos_z ) |
Translate the Voronoi cells by a given amount.
- Parameters
-
pos_x | The amount to translate in the x direction. |
pos_y | The amount to translate in the y direction. |
pos_z | The amount to translate in the z direction. |
◆ bond_model
The contact model used to calculate the forces between particles.
◆ bond_pair_list
VecXT<Vec2i> netdem::BondedVoronois::bond_pair_list |
The list of bonded pairs between particles.
◆ contact_list
The list of contact pairs between particles.
◆ cvt_max_iters
int netdem::BondedVoronois::cvt_max_iters {1000} |
The maximum number of iterations for the CVT algorithm.
◆ cvt_tol
double netdem::BondedVoronois::cvt_tol {1.0e-3} |
The tolerance for convergence of the CVT algorithm.
◆ particle_list
The list of particles in the Voronoi cells.
◆ trimesh_list
The documentation for this class was generated from the following files: