washliggghtsFoam#

Description#

washliggghtsFoam is a utility solver designed to run standalone granular mechanics simulations using the WASHLIGGGHTS framework directly within the WashOpenFOAM environment.

Unlike standard OpenFOAM solvers, washliggghtsFoam does not solve any fluid dynamics equations (such as Navier-Stokes or continuity) and does not perform any fluid-particle (CFD-DEM) coupling. Instead, it acts as a C++ MPI wrapper that instantiates a WASHLIGGGHTS engine and passes execution directly to it. This allows users to utilise the OpenFOAM execution architecture to run uncoupled granular dynamics simulations natively.

Mathematical Formulation#

Because this solver does not compute any fluid dynamics, the physical behaviour of the simulation is entirely governed by the contact models and integration schemes configured in the WASHLIGGGHTS input script.

For details on the available contact models, cohesion models, and integration methods, please refer to the main WASHLIGGGHTS Documentation.

Usage#

Unlike standard OpenFOAM simulations, washliggghtsFoam does not require the typical input folder structure. You do not need to create or populate the 0/, constant/, or system/ directories.

Instead, you only need a valid WASHLIGGGHTS input script to execute the solver.

1. Running the Solver

You can run the solver in serial by redirecting your LIGGGHTS input script into it:

washliggghtsFoam < in.liggghts

2. Parallel Execution

Because washliggghtsFoam is wrapped with OpenFOAM’s MPI environment, you can run it in parallel using mpirun exactly as you would with any other OpenFOAM application. The MPI communicator is automatically split and passed to the WASHLIGGGHTS instance.

mpirun -np 4 washliggghtsFoam < in.liggghts

Note

While you are executing this through the OpenFOAM environment, all output dumps, log files, and restart files are generated based on the dump and restart commands specified within your in.liggghts script.

GPU Acceleration for Superquadric Models#

When running superquadric particle simulations (using gran_surface_superquadric), washliggghtsFoam automatically offloads the computationally demanding narrow-phase contact detection to the GPU if executed on a GPU-enabled instance in PSEOCS (such as AWS EC2 G5 or G4dn instances).

  • Automatic Detection & Multi-GPU Mapping: washliggghtsFoam initializes the embedded WASHLIGGGHTS CUDA contact manager, distributes MPI ranks across available GPUs, and accelerates quaternion coordinate transformations, 15-axis SAT OBB tests, and iterative contact point calculations in strict double precision (FP64).

  • Transparent CPU Fallback: If executed on a standard CPU instance, washliggghtsFoam transparently executes the CPU contact detection algorithm without requiring any configuration changes.

Tutorials#

Example tutorial cases demonstrating washliggghtsFoam are available in:

  • tutorials/lagrangian/LAMMPS/noCoupling/washliggghtsFoam/chute_wear: Simulation of granular particle flow down an inclined chute with surface wear analysis.

  • tutorials/lagrangian/LAMMPS/noCoupling/washliggghtsFoam/chute_wear_sdf: High-performance granular chute flow simulation utilizing Signed Distance Function (SDF) mesh walls (fix_mesh_surface_sdf and fix_wall_gran_sdf).