How can I run LAMMPS in python in Windows 10?

Get a command prompt by going to Start->Run… ,
then typing “cmd”.,4.4. Running LAMMPS on Windows,Get a new, regular command prompt by going to Start->Run… ,
then typing “cmd”.,Move to the directory where you have your input script,
(e.g. by typing: cd “Documents”).

lmp - in in .lj - pk omp 4 - sf omp

load more v

lmp.commands_list(cmdlist) # invoke commands in cmdlist = “run 10”, “run 20”
lmp.commands_string(multicmd) # invoke commands in multicmd = “run 10nrun 20”,Note that you can create multiple LAMMPS objects in your Python
script, and coordinate and run multiple simulations, e.g.,To run a LAMMPS test in serial, type these lines into Python
interactively from the bench directory:,11.8 Example Python scripts that use LAMMPS

make yes - python
make machine

load more v

Read more here: Source link