Help Needed with Coupling SPARTA and LAMMPS DEM Using preCICE

Hello preCICE Community,

I’m working on coupling SPARTA (a DSMC code for simulating rarefied gas flows) with LAMMPS DEM (for particle simulations) using preCICE. My goal is to simulate gas-solid interactions where:

  • SPARTA handles gas flow on a grid.
  • LAMMPS simulates the particle phase.

I need assistance with:

  1. Data Exchange Between Grid and Particles:
  • How to interpolate SPARTA’s grid data to LAMMPS particle positions.
  • How to deposit LAMMPS particle data onto a grid for SPARTA.
  1. preCICE Configuration:
  • Setting up the preCICE configuration file for this coupling.
  • Defining appropriate mappings between SPARTA’s grid and LAMMPS particles.
  1. Best Practices:
  • Any advice or examples from those who have done similar coupling.
  • Recommendations on interpolation and deposition methods within preCICE.

Any guidance or resources would be greatly appreciated!

Thank you for your help.

Best regards,
Madan B K

Hi,

To get accustomed to preCICE I recommend starting with the quickstart guide followed by fundamentals and some tutorials. The best way to get up to speed is the preCICE workshop though. The next one is in September of next year.

To couple a DEM solver, you may need to perform the mapping inside your adapter as described in the documentation.

Finally, have a look at the related work of our colleagues from the uni.lu.

Best
Frédéric

Hi Madan,

I’m Xavier, one of the co-authors of the work presented by Prasad (@Alphaoo1) in the video above.

To complement the answer of Frédéric, here are two recent articles we published on the topic:

I hope that will help you to get started.

Best regards,

Xavier

1 Like