Spheres¶
This page describes the information used to build simulations with spherical particles. The exaDEM::Interaction
class and the shapes are described on the Polyhedra page.
Interactions¶
The exaDEM::Interaction class models the interactions between spheres, and between spheres and
drivers. It identifies the two elements in the data grid and the type of interaction between
them. For the sake of consistency, spheres and polyhedra use the same interaction structure, and the type field
has the same values.
Attributes
- \(id_i\) and \(id_j\): ids of both spheres;
- \(cell_i\) and \(cell_j\): indices of the cells containing the spheres;
- \(p_i\) and \(p_j\): positions of the spheres in their cells;
- \(sub_i\) and \(sub_j\): index of the vertex, edge or face involved in the interaction;
type: type of interaction (see the glossary below);frictionandmoment: storage used by the contact law.
Note
When the interaction involves a sphere and a driver, particle \(j\) locates the driver: \(cell_j\) is the index of the
driver. If the driver has a shape (RShapeDriver), \(sub_j\) stores the index of the vertex, edge or face.
| Value | Type | Description |
|---|---|---|
| 0 | Sphere - Sphere | contact between two spheres |
| 4 | Sphere - Cylinder | contact between a sphere and a cylinder |
| 5 | Sphere - Surface | contact between a sphere and a rigid surface or wall |
| 6 | Sphere - Ball | contact between a sphere and a ball |
| 7 | Sphere - Vertex (driver) | contact between a sphere and a vertex of an RShape driver |
| 8 | Sphere - Edge (driver) | contact between a sphere and an edge of an RShape driver |
| 9 | Sphere - Face (driver) | contact between a sphere and a face of an RShape driver |
The interactions are the level of granularity of the intra-node parallelization, on CPU and GPU. They are built
by nbh_sphere and processed by the contact_[*]_sphere_[*] operators.
randomize_radius¶
Randomly modifies the radius of the spheres and updates their physical properties accordingly. For each particle, a
new radius is drawn from a Gaussian distribution centered on the current radius, whose width is set by
relative_deviation; the radius variation is bounded to avoid unrealistic values. The mass and the inertia are then
updated assuming a constant density.
| Parameter | Type | Default | Description |
|---|---|---|---|
relative_deviation |
double |
required | relative deviation of the radius, e.g. 0.2 for about ±20% |
allow_exceed |
bool |
true |
if false, the radius cannot become larger than the initial radius |
region |
ParticleRegionCSG |
restricts the operator to a region | |
particle_regions |
regions used to evaluate region |