Page MenuHomec4science

melt.py
No OneTemporary

File Metadata

Created
Sat, Nov 9, 17:48
from mpi4py import MPI
from lammps import PyLammps
L = PyLammps()
L.file('in.melt')
if MPI.COMM_WORLD.rank == 0:
pe = L.eval("pe")
print("Potential Energy:", pe)

Event Timeline