Multi-Material¶
With the singlemat operators, the contact law uses the same parameters for every interaction. In multimat mode,
the parameters depend on the groups of the interacting particles, and on the driver for particle-driver
contacts.
Note
For the hooke law, unlike in some other DEM codes, the coefficients are not derived from material properties
(Poisson ratio, Young modulus). For the hertz law, the normal force is derived from the Young modulus and the
Poisson ratio of each group, see Hertz contact parameters.
Groups (since exaDEM 1.2.3)
Multi-material parameters are indexed by group (an integer particle field) instead of the particle type. This
decouples the shape (type) from the contact law (group): several types can share the same group. Groups are
assigned with the group parameter of set_fields or with set_group, see Particle fields.
The former mat1/mat2/mat parameters (type names) are replaced by group1/group2/group.
Use one of the contact_multimat_[*]_[*]_[*] operators:
The examples below define the parameters of two groups (0 and 1) and a driver of id 0.
Particle-particle parameters¶
multimat_contact_params defines the contact parameters between particle groups. Every list has one value per pair
of groups.
| Parameter | Description |
|---|---|
group1 |
first group of each pair |
group2 |
second group of each pair |
kn |
normal stiffness |
kt |
tangential stiffness |
kr |
rolling resistance stiffness |
mu |
friction coefficient |
damprate |
damping rate |
default_config |
parameter set applied to all the pairs not listed |
n_groups |
number of groups (input/output, since 1.2.3). Usually left unset: it is then deduced from group1/group2 (largest index + 1). If it was set upstream (e.g. by set_group), it is checked against group1/group2, and a default_config must cover the pairs not listed |
With default_config:
A complete example: rotating-multimat.msp.
Particle-driver parameters¶
drivers_contact_params defines the contact parameters between particle groups and drivers. Every list has one
value per (group, driver) pair.
| Parameter | Description |
|---|---|
group |
particle group of each pair |
driver_id |
driver of each pair |
kn, kt, kr, mu, damprate |
as above |
default_config |
parameter set applied to all the pairs not listed |
Note
Every driver added to a multi-material simulation needs contact parameters with the particle groups.
Hertz contact parameters¶
The hertz law has its own parameter operators, multimat_contact_params_hertz (particle-particle) and
drivers_contact_params_hertz (particle-driver), which replace multimat_contact_params and
drivers_contact_params with the contact_sphere_hertz_[*] operators. There is no kn: the normal force is defined
by the reduced Young modulus \(E^*\) of each pair, computed from the Young modulus and the Poisson ratio of the
materials (see the hertz law). The other parameters
have the same meaning as for the hooke law.
multimat_contact_params_hertz¶
The materials (young, poisson) are given per group (one value per group) and \(E^*\) is computed for every pair
of groups. The other lists have one value per listed pair of groups.
| Parameter | Description |
|---|---|
group1, group2 |
groups of each pair |
young |
Young modulus of each group (one value per group), requires poisson |
poisson |
Poisson ratio of each group (one value per group), requires young |
kt |
tangential stiffness (per pair, required) |
kr |
rolling resistance stiffness (per pair, optional, default 0) |
mu |
friction coefficient (per pair, required) |
damprate |
damping ratio \(\zeta\) (per pair, required) |
fc, dncut |
cohesive force threshold and distance cutoff (per pair, optional, defined together) |
gamma |
DMT adhesion energy per unit surface (per pair, optional, default 0) |
default_config |
parameter set applied to all the pairs not listed (see below) |
n_groups |
number of groups (input/output), as in multimat_contact_params |
verbosity |
prints the parameter table, default false |
default_config is a single parameter set with the keys kt, kr, mu, damp_rate (and optionally
fc/dncut, gamma), and either estar (the reduced Young modulus, given directly) or young and poisson (a
contact between two particles of this material).
drivers_contact_params_hertz¶
The group materials come from multimat_contact_params_hertz, which must therefore be called before with young and
poisson; the driver materials are given with driver_young and driver_poisson (one value per driver).
| Parameter | Description |
|---|---|
group, driver_id |
(group, driver) pairs |
driver_young |
Young modulus of each driver (one value per driver), requires driver_poisson |
driver_poisson |
Poisson ratio of each driver (one value per driver), requires driver_young |
kt, kr, mu, damprate, fc, dncut, gamma |
as in multimat_contact_params_hertz, one value per pair |
default_config |
parameter set applied to all the pairs not listed |
verbosity |
prints the parameter table, default false |
Note
A rigid driver (e.g. a plane) is modelled with a very large Young modulus, for example driver_young: [ 1.e40 ],
so that \(E^* = E / (1 - \nu^2)\) with \(E\) and \(\nu\) the material of the particle.
Note
The contact_sphere_hertz_[*] operators stop the simulation if \(E^*\) is not defined for a pair of groups (young
and poisson missing in multimat_contact_params_hertz), and print a warning if it is not defined for a (group,
driver) pair.
Checking the groups¶
check_group_completeness (since 1.2.3, no parameter) checks that the number of groups configured in multimat_cp
(by multimat_contact_params and/or drivers_contact_params) or in multimat_hertz_cp (by
multimat_contact_params_hertz and/or drivers_contact_params_hertz) covers the largest group index of the
particles. The simulation stops if a particle references a group without contact parameters.
Note
This operator does nothing if neither multimat_cp nor multimat_hertz_cp exists yet, so it can be placed
anywhere after the contact parameter operators, typically right before compute_force.