xref: /freebsd/contrib/file/magic/Magdir/lammps (revision ebacd8013fe5f7fdf9f6a5b286f6680dd2891036)
1#------------------------------------------------------------------------------
2# $File: lammps,v 1.1 2021/03/14 16:24:18 christos Exp $
3#
4
5# Magic file patterns for use with file(1) for the
6# LAMMPS molecular dynamics simulation software.
7# https://lammps.sandia.gov
8#
9# Updated: 2021-03-14 by akohlmey@gmail.com
10
11# Binary restart file for the LAMMPS MD code
120        string  LammpS\ RestartT  LAMMPS binary restart file
13>0x14    long    x                 (rev %d),
14>>0x20   string  x                 Version %s,
15>>>0x10  lelong  0x0001            Little Endian
16>>>0x10  lelong  0x1000            Big Endian
17
18# Atom style binary dump file for the LAMMPS MD code
19# written on a little endian machine
200         lequad  -8
21>0x08     string  DUMPATOM     LAMMPS atom style binary dump
22>>0x14    long    x            (rev %d),
23>>>0x10   lelong  0x0001       Little Endian,
24>>>>0x18  lequad  x            First time step: %lld
25
26# written on a big endian machine
270         bequad  -8
28>0x08     string  DUMPATOM     LAMMPS atom style binary dump
29>>0x14    belong  x            (rev %d),
30>>>0x10   lelong  0x1000       Big Endian,
31>>>>0x18  bequad  x            First time step: %lld
32
33# Atom style binary dump file for the LAMMPS MD code
34# written on a little endian machine
350         lequad  -10
36>0x08     string  DUMPCUSTOM   LAMMPS custom style binary dump
37>>0x16    lelong  x            (rev %d),
38>>>0x12   lelong  0x0001       Little Endian,
39>>>>0x1a  lequad  x            First time step: %lld
40
41# written on a big endian machine
420         bequad  -10
43>0x08     string  DUMPCUSTOM   LAMMPS custom style binary dump
44>>0x16    belong  x            (rev %d),
45>>>0x12   lelong  0x1000       Big Endian,
46>>>>0x1a  bequad  x            First time step: %lld
47
48# LAMMPS log file
490         string LAMMPS\ (                    LAMMPS log file
50>8        regex/16 [0-9]+\ [A-Za-z]+\ [0-9]+  written by version %s
51
52# Data file written either by LAMMPS, msi2lmp or VMD/TopoTools
530      string LAMMPS\ data\ file  LAMMPS data file
54>0x12  string CGCMM\ style        written by TopoTools
55>0x12  string msi2lmp             written by msi2lmp
56>0x11  string via\ write_data     written by LAMMPS
57
58# LAMMPS data file written by OVITO
590      string #\ LAMMPS\ data\ file   LAMMPS data file
60>0x13  string written\ by\ OVITO      written by OVITO
61
62# LAMMPS text mode dump file
630      string    ITEM:\ TIMESTEP      LAMMPS text mode dump,
64>15    regex/16  [0-9]+               First time step: %s
65