gran surface superquadric model#

Syntax#

surface superquadric [other model_type/model_name pairs] keyword values
  • Zero or more keyword/value pairs may be appended to the end of the pair_style gran command:

curvatureLimitFactor value (value >= 0, default = 0)
gaussianCurvature yes/no (default = no)
meanCurvature yes/no (default = no)

Examples#

atom_style superquadric
...
pair_style gran model hertz tangential history rolling_friction epsd2 surface superquadric
pair_coeff * *
...
set atom 1 shape 0.003 0.002 0.004 blockiness 2.5 2.5 density 2500
...
fix integr all nve/superquadric integration_scheme 1

Description#

surface superquadric is the surface model for smooth, convex superquadric non-spherical particles (Podlozhnyuk et al., 2017).

Superquadric Formulation#

The surface of a superquadric particle is implicitly defined in its local principal axis coordinate frame \(\mathbf{X} = (X, Y, Z)^T\) centered at the particle position as:

\[F(\mathbf{X}) = \left( \left|\frac{X}{a}\right|^{n_2} + \left|\frac{Y}{b}\right|^{n_2} \right)^{\frac{n_1}{n_2}} + \left|\frac{Z}{c}\right|^{n_1} - 1 = 0\]

where:

  • \(a, b, c\) are the semi-axes lengths along the principal axes.

  • \(n_1\) is the north-south blockiness parameter.

  • \(n_2\) is the east-west blockiness parameter.

  • \(F(\mathbf{X}) < 0\) represents the interior of the particle, and \(F(\mathbf{X}) > 0\) represents the exterior.

Contact Detection & Effective Curvature#

Contact resolution between non-spherical particles involves a multi-stage approach:

  1. Broad-Phase Bounding Spheres: Rapid rejection of particle pairs whose bounding spheres do not overlap.

  2. Oriented Bounding Box (OBB) Filtering: A 15-axis Separating Axis Theorem (SAT) check is applied to oriented bounding boxes to eliminate non-colliding close neighbors.

  3. Non-Linear Contact Point Solver: An iterative Newton-Raphson solver calculates the minimum distance and contact point between two superquadric surfaces, with a GMRES fallback solver for ill-conditioned configurations.

  4. Extended Overlap Line Search: Particle overlap \(\delta_n\) and the contact normal \(\mathbf{e}_n\) are computed along the line connecting the particle surfaces.

  5. Effective Contact Radius: In contact models such as gran model hertz/scaling model or Hooke, the effective radius \(R^*\) can be computed from the local principal curvatures (mean or Gaussian curvature) at the contact point.

The parameter curvatureLimitFactor limits the effective radius \(R^*\) with respect to the volume-equivalent radius:

  • If curvatureLimitFactor = 0 (default), particle radii \(R_1\) and \(R_2\) are treated as volume-equivalent sphere radii and do not depend on the contact point curvature.

  • If curvatureLimitFactor > 0, the local curvature is used and capped at \(R_{\text{eff}} \times \text{curvatureLimitFactor}\).

GPU Acceleration in PSEOCS#

In PSEOCS, WASHLIGGGHTS includes a GPU-accelerated narrow-phase contact detection engine implemented in NVIDIA CUDA. Because contact detection between non-spherical superquadrics is computationally intensive, offloading the narrow-phase calculations to a GPU yields substantial speedups for dense particle systems.

Key Features of the GPU Engine:#

  • Strict Double Precision (FP64): All GPU CUDA kernels execute strictly in FP64 precision, ensuring exact numerical parity with the CPU reference implementation.

  • Narrow-Phase GPU Offload:

    • Quaternion coordinate transformations between the laboratory frame and particle principal frames.

    • 15-axis Separating Axis Theorem (SAT) testing on Oriented Bounding Boxes (OBB) with inequality caching (inequality_obb) to bypass redundant checks for separated pairs.

    • Non-linear contact point solver using Newton-Raphson iteration with GMRES fallback.

    • Extended overlap line search and local curvature calculation (mean/Gaussian curvature).

  • Heterogeneous CPU-GPU Architecture: The host CPU maintains spatial domain decomposition, neighbor list generation, and force integration. Candidate interaction pairs within the neighbor cutoff are gathered into pinned host memory, transferred asynchronously via CUDA streams to GPU device memory, computed in parallel, and copied back to the host CPU.

  • Multi-GPU and MPI Scaling: In parallel multi-GPU environments, MPI ranks are automatically mapped to available GPUs on each compute node in a round-robin manner (rank % device_count).

  • Automatic Hardware Detection & Fallback: The solver automatically detects whether CUDA-capable GPUs are available. If running on a CPU-only instance, it transparently falls back to the CPU contact solver with no changes required in your input script.

Running with GPU Acceleration in PSEOCS Web#

To leverage GPU acceleration for superquadric simulations in the PSEOCS Web interface:

  1. In the Job tab, click New job to configure a new job.

  2. For Instance Type, select an AWS GPU-enabled instance type (such as g5.xlarge, g5.2xlarge, or other NVIDIA GPU instances).

  3. Under Execution commands, select washliggghtsFoam and specify your input script (e.g., < in.simulation) in the Command arguments field.

  4. When the job is submitted, washliggghtsFoam automatically detects the GPU hardware and accelerates the superquadric contact detection.

Diagnostics and Post-Processing Support#

  • True Contact Normal Decomposition in ``compute pair/gran/local``: Contact forces and torques for superquadric particle pairs are decomposed into normal and tangential components using the exact surface contact normal \(\mathbf{e}_n\) instead of assuming particle center-to-center line of centers. Note that requesting contactArea emits a warning because the contact area formula assumes spherical particles.

  • Periodic Contact Filtering in ``dump local/gran/vtk``: When dumping contact force chains to VTK format via dump local/gran/vtk, contacts crossing periodic boundaries are tagged with the scalar cell data attribute periodic (\(1\) if crossing periodic boundaries, \(0\) otherwise). This allows lines crossing domain boundaries to be cleanly filtered out in ParaView using a Threshold filter.

Restrictions#

Default#

  • curvatureLimitFactor = 0

  • gaussianCurvature = no

  • meanCurvature = no

References#

  • (Podlozhnyuk et al., 2017) A. Podlozhnyuk, S. Pirker, C. Kloss, “Efficient implementation of superquadric particles in Discrete Element Method within an open-source framework”, Computational Particle Mechanics, 4(1), pp. 101–118, 2017.