LAMMPS is a molecular dynamics software which focuses mainly on materials modeling. It's an acronym for Large-scale Atomic/Molecular Massively Parallel Simulator.
LAMMPS can be used as a particle simulator at different scales: atomic, meso or continuum scale. It has potential in the fields of solid-state materials (metals, semiconductors) and soft matter (biomolecules, polymers).
LAMMPS simulations can run on single processors or in parallel, using message-passing techniques and a spatial-decomposition of the simulation domain.
|2022||2Jun2022||most, see Appendix|
If you are interested in another version, please email us at firstname.lastname@example.org.
We included support for JPEG/PNG image generation (through ‘dump’ commands). However, movie generation is not included. Two different profiles for LAMMPS are available : one without any acceleration package, and the other allowing you to use GPU acceleration.
Before trying a test case, please ensure that the following prerequisites have been met.
Create an account (here)
Retrieve the authentication token (here)
This test case will show you how to launch the in.indent simulation provided with LAMMPS. It inserts a spherical indenter within a simulation box.
You can download the file here. Put the file
in.indent in your
Launching the case
Once everything is set up, use the following script.
Be sure you have copied your authentication token in the script (instead of
<<<MY_SECRET_TOKEN>>>) to be able to launch the task on Qarnot.
If you want to use GPU acceleration, you need to set the variable
To launch this script simply copy this code in a Python script and execute
python3 run-lammps.py in your terminal.
The script will run the simulation on the Qarnot platform and output the result in the ‘output’ folder on your computer once it is completed.
At any given time, you can monitor the status of your task on the console. For more information on its usage, please visit this section. The following figure shows a successful LAMMPS simulation on Qarnot’s Tasq.
You should also now have a file called ‘log.lammps’ in the output bucket and on your computer. If the commands
dump were uncommented in your input file, you should also find pictures of the simulation.
These pictures can be put together to create an animated GIF or a short movie of the simulation with software like ImageMagick or ffmpeg.
That’s it! If you have any questions, especially if you need support for other LAMMPS packages, please contact email@example.com and we will help you with pleasure!
Appendix : Packages
LAMMPS can be built with various packages that add functionalities. The version we provide includes most packages that can run without libs (packages built with
yes-most option, see LAMMPS documentation). The following packages are included :
ASPHERE BOCS BODY BPM BROWNIAN CG-SDK CLASS2 COLLOID CORESHELL DIFFRACTION DIPOLE DPD-BASIC DPD-MESO DPD-REACT DPD-SMOOTH DRUDE EFF EXTRA-COMPUTE EXTRA-DUMP EXTRA-FIX EXTRA-MOLECULE EXTRA-PAIR FEP GRANULAR INTERLAYER KSPACE MANYBODY MC MEAM MISC ML-SNAP MOFFF MOLECULE OPENMP OPT ORIENT PERI PLUGIN QEQ REACTION REAXFF REPLICA RIGID SHOCK SPH SPIN SRD UEF YAFF DIELECTRIC ML-IAP PHONON