xref: /freebsd/contrib/file/magic/Magdir/lammps (revision ae316d1d1cffd71ab7751f94e10118777a88e027)
143a5ec4eSXin LI
2*ae316d1dSXin LI#------------------------------------------------------------------------------
3*ae316d1dSXin LI# $File: lammps,v 1.2 2024/06/10 23:09:52 christos Exp $
443a5ec4eSXin LI# Magic file patterns for use with file(1) for the
543a5ec4eSXin LI# LAMMPS molecular dynamics simulation software.
643a5ec4eSXin LI# https://lammps.sandia.gov
743a5ec4eSXin LI#
843a5ec4eSXin LI# Updated: 2021-03-14 by akohlmey@gmail.com
943a5ec4eSXin LI
1043a5ec4eSXin LI# Binary restart file for the LAMMPS MD code
1143a5ec4eSXin LI0        string  LammpS\ RestartT  LAMMPS binary restart file
1243a5ec4eSXin LI>0x14    long    x                 (rev %d),
1343a5ec4eSXin LI>>0x20   string  x                 Version %s,
1443a5ec4eSXin LI>>>0x10  lelong  0x0001            Little Endian
1543a5ec4eSXin LI>>>0x10  lelong  0x1000            Big Endian
1643a5ec4eSXin LI
1743a5ec4eSXin LI# Atom style binary dump file for the LAMMPS MD code
1843a5ec4eSXin LI# written on a little endian machine
1943a5ec4eSXin LI0         lequad  -8
2043a5ec4eSXin LI>0x08     string  DUMPATOM     LAMMPS atom style binary dump
2143a5ec4eSXin LI>>0x14    long    x            (rev %d),
2243a5ec4eSXin LI>>>0x10   lelong  0x0001       Little Endian,
2343a5ec4eSXin LI>>>>0x18  lequad  x            First time step: %lld
2443a5ec4eSXin LI
2543a5ec4eSXin LI# written on a big endian machine
2643a5ec4eSXin LI0         bequad  -8
2743a5ec4eSXin LI>0x08     string  DUMPATOM     LAMMPS atom style binary dump
2843a5ec4eSXin LI>>0x14    belong  x            (rev %d),
2943a5ec4eSXin LI>>>0x10   lelong  0x1000       Big Endian,
3043a5ec4eSXin LI>>>>0x18  bequad  x            First time step: %lld
3143a5ec4eSXin LI
3243a5ec4eSXin LI# Atom style binary dump file for the LAMMPS MD code
3343a5ec4eSXin LI# written on a little endian machine
3443a5ec4eSXin LI0         lequad  -10
3543a5ec4eSXin LI>0x08     string  DUMPCUSTOM   LAMMPS custom style binary dump
3643a5ec4eSXin LI>>0x16    lelong  x            (rev %d),
3743a5ec4eSXin LI>>>0x12   lelong  0x0001       Little Endian,
3843a5ec4eSXin LI>>>>0x1a  lequad  x            First time step: %lld
3943a5ec4eSXin LI
4043a5ec4eSXin LI# written on a big endian machine
4143a5ec4eSXin LI0         bequad  -10
4243a5ec4eSXin LI>0x08     string  DUMPCUSTOM   LAMMPS custom style binary dump
4343a5ec4eSXin LI>>0x16    belong  x            (rev %d),
4443a5ec4eSXin LI>>>0x12   lelong  0x1000       Big Endian,
4543a5ec4eSXin LI>>>>0x1a  bequad  x            First time step: %lld
4643a5ec4eSXin LI
4743a5ec4eSXin LI# LAMMPS log file
4843a5ec4eSXin LI0         string LAMMPS\ (                    LAMMPS log file
4943a5ec4eSXin LI>8        regex/16 [0-9]+\ [A-Za-z]+\ [0-9]+  written by version %s
5043a5ec4eSXin LI
5143a5ec4eSXin LI# Data file written either by LAMMPS, msi2lmp or VMD/TopoTools
5243a5ec4eSXin LI0      string LAMMPS\ data\ file  LAMMPS data file
5343a5ec4eSXin LI>0x12  string CGCMM\ style        written by TopoTools
5443a5ec4eSXin LI>0x12  string msi2lmp             written by msi2lmp
5543a5ec4eSXin LI>0x11  string via\ write_data     written by LAMMPS
5643a5ec4eSXin LI
5743a5ec4eSXin LI# LAMMPS data file written by OVITO
5843a5ec4eSXin LI0      string #\ LAMMPS\ data\ file   LAMMPS data file
5943a5ec4eSXin LI>0x13  string written\ by\ OVITO      written by OVITO
6043a5ec4eSXin LI
6143a5ec4eSXin LI# LAMMPS text mode dump file
6243a5ec4eSXin LI0      string    ITEM:\ TIMESTEP      LAMMPS text mode dump,
6343a5ec4eSXin LI>15    regex/16  [0-9]+               First time step: %s
64