fix particletemplate/multisphere#
Syntax#
fix ID group-ID particletemplate/multisphere seed [general_keywords values] nspheres n_spheres ntry n_try spheres values_spheres type mt [opt_keywords opt_values]
fix ID group-ID particletemplate/multisphere seed [general_keywords values] nspheres n_spheres ntry n_try spheres_different_types values_spheres type mt [opt_keywords opt_values]
ID, group-ID are documented in fix command
particletemplate/multisphere = style name of this fix command
seed = random number generator seed (prime number greater than 10000)
general_keywords / values are documented in fix particletemplate/sphere (e.g. atom_type, density)
nspheres = obligatory keyword followed by integer number of spheres in the template
ntry = obligatory keyword followed by integer number of Monte Carlo integration points
spheres or spheres_different_types = specification of constituent spheres:
Format with file:
file filename scale scalefactorFormat inline with uniform type (when using keyword spheres):
x1 y1 z1 r1 x2 y2 z2 r2 ...Format inline with individual types/densities (when using keyword spheres_different_types):
x1 y1 z1 r1 type1 [dens1] x2 y2 z2 r2 type2 [dens2] ...
type mt = multisphere type ID of the template (positive integer)
opt_keywords = mass, inertia_tensor, use_volume, use_density, fflag, tflag (documented in LIGGGHTS multisphere template)
Examples#
# Template with heterogeneous sub-spheres read from clump file
fix pts1 all particletemplate/multisphere 15485863 atom_type 1 density constant 1000 &
nspheres 2 ntry 100000 spheres_different_types file eccentric.multisphere scale 1.0 type 1
# Inline specification of an asymmetric dumbbell with differing types and densities
fix pts2 all particletemplate/multisphere 15485863 atom_type 1 density constant 1000 &
nspheres 2 ntry 500000 spheres_different_types &
0.0 0.0 0.00 0.01 1 1000.0 &
0.0 0.0 0.02 0.01 2 4000.0 &
type 1
# Template defined through a discrete distribution and inserted as rigid multisphere bodies
fix pdd all particledistribution/discrete 15485867 1 pts1 1.0
fix ins all insert/pack seed 32452843 distributiontemplate pdd vel constant 0. 0. 0. &
orientation constant 1.0 0.0 0.0 0.0 insert_every once region bc particles_in_region 100
fix integr all multisphere
Description#
The fix particletemplate/multisphere command defines a rigid multi-sphere particle template that can be sampled by fix particledistribution/discrete and inserted into the simulation domain.
Constituent Spheres with Different Atom Types and Densities#
In standard LIGGGHTS, all sub-spheres in a multisphere body share a uniform atom type and density. WASHLIGGGHTS extends this functionality via the keyword spheres_different_types (or spheres_different_type), allowing each constituent sub-sphere to have its own individual atom type and density.
This capability enables accurate physical modelling of:
Composite and heterogeneous particles: Particles composed of distinct materials (e.g. coated particles, core-shell particles, multi-component aggregates).
Janus particles: Particles with chemically or physically distinct halves exhibiting different surface affinities, friction, or restitution.
Eccentric mass distributions: Particles where center of mass and center of volume do not coincide, producing natural self-righting or preferential orientation under gravity and fluid flow.
Clump File Specification#
When reading from an external clump file (spheres_different_types file <filename> scale <scale>), each line defines one constituent sphere with up to 6 entries:
x y z r [atom_type] [density]
4 entries (x y z r): The sphere uses the global atom_type and density defined in the command.
5 entries (x y z r atom_type): The sphere uses the specified atom_type and the default template density.
6 entries (x y z r atom_type density): The sphere uses both the specified atom_type and individual density.
Inline Specification#
Constituent spheres can also be specified directly on the command line:
5 arguments per sphere:
x y z r atom_type(uses the template density).6 arguments per sphere:
x y z r atom_type density(assigns individual density to each sphere).
Overlap Density Averaging (Mass, Center of Mass, and Inertia)#
When constituent sub-spheres overlap, WASHLIGGGHTS employs a Monte Carlo numerical integration procedure with overlap density averaging:
For any point \(\mathbf{x}\) within the bounding box sampled by \(N_{\text{try}}\) random points, if \(\mathbf{x}\) falls inside \(N_{\text{hits}}(\mathbf{x}) \ge 1\) constituent sub-spheres, its local effective density is evaluated as:
where \(\rho_k\) is the density of the \(k\)-th sub-sphere enclosing point \(\mathbf{x}\).
The total clump volume \(V\), total mass \(M\), center of mass \(\mathbf{x}_{\text{cm}}\), and moment of inertia tensor \(\mathbf{I}\) are evaluated via mass-weighted Monte Carlo integration:
The moment of inertia tensor about the center of mass is computed with the variable local density:
The principal axes and diagonalized moments of inertia are then derived via eigensystem analysis and logged in the simulation output.
Contact Mechanics and Individual Properties#
During discrete element time integration via fix multisphere or fix multisphere/sllod (fix nve/sllod, nve/sphere/sllod, multisphere/sllod, nve/superquadric/sllod):
Per-Sphere Material Interactions: Each sub-sphere interacts with other particles and boundary walls using the material properties corresponding to its own atom_type. Contact pair properties—such as Young’s modulus, Poisson’s ratio, restitution coefficient (\(e\)), friction coefficient (\(\mu\)), and cohesive forces (e.g. gran cohesion dlvo model)—are correctly differentiated across sub-spheres.
Output and Visualisation: Particle dump commands (e.g.
dump id type x y z radius density) accurately record each constituent sphere’s assigned atom_type and density.
Restart, fix_modify, output, run start/stop, minimize info#
Information about the random generator state is written to binary restart files. None of the fix_modify options are relevant to this fix.
Restrictions#
The number of tries ntry should be sufficiently large (e.g. \(10^5\) – \(10^6\)) to achieve high accuracy in the Monte Carlo integration of mass, center of mass, and moments of inertia.
The multisphere type index mt specified by type must be a positive integer unique to each multisphere template.