File: melt.py

package info (click to toggle)
lammps 20251210%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 465,808 kB
  • sloc: cpp: 1,031,565; python: 26,771; ansic: 8,808; f90: 7,302; sh: 5,316; perl: 4,171; fortran: 2,442; xml: 1,613; makefile: 1,119; objc: 238; lisp: 188; yacc: 58; csh: 16; awk: 14; tcl: 6; javascript: 2
file content (10 lines) | stat: -rw-r--r-- 175 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
from mpi4py import MPI
from lammps import lammps

L = lammps()
L.file('in.melt')


if MPI.COMM_WORLD.rank == 0:
    pe = L.get_thermo("pe")
    print("Potential Energy:", pe)