I am trying to run a coupled CFD-MD simulation in which both the CFD and MD codes are called from a python script. I am using LAMMPS as the MD solver. I have compiled LAMMPS as a shared library. I could find the instructions to make the MPI call from a python script, from LAMMPS documentation. Could anyone help me understand how to run LAMMPS on GPU via python script? For running LAMMPS directly, without the python interface, I understand that we must use the -sf and -pk flags. I am a little confused about getting this done from a python script.
In general, if you don’t find detailed documentation for the Python method, look up the corresponding C-library function, and - if available - the original C+±API.