一、notes:

1、不在data文件里写“#”(注释),否则,容易出错;

2、前两行不用写东西(建议);

3、相互作用系数可以不用写在data里边(如pair_coeff等),可有可无,but for pair_coeff,最好还是在data文件中设定,因为它比在in文件中设定更加方便、简洁。

二、主体框架(必须要有):

1.数目:原子、键、角、二面角、非二面角的的总数目

2.类型:原子、键、角、二面角、非二面角

3.box的大小:x、y、z

4.masses(质量)

5.Atoms

6.Bonds

7.Angles

8....

三、example(转载:http://blog.sina.com.cn/s/blog_b48a7ac30102w4pr.html)

Here is a sample file with annotations in parenthesis and lengthy sections replaced by dots (...). Note that the blank lines are important in this example.

LAMMPS Description           (1st line of file)                              
                                                                             
100 atoms         (this must be the 3rd line, 1st 2 lines are ignored)       
95 bonds                (# of bonds to be simulated)                         
50 angles               (include these lines even if number = 0)             
30 dihedrals                                                                 
20 impropers                                                                 
                                                                             
5 atom types           (# of nonbond atom types)                             
10 bond types          (# of bond types = sets of bond coefficients)         
18 angle types                                                               
20 dihedral types      (do not include a bond,angle,dihedral,improper type   
2 improper types             line if number of bonds,angles,etc is 0)        
                                                                             
-0.5 0.5 xlo xhi       (for periodic systems this is box size,               
-0.5 0.5 ylo yhi        for non-periodic it is min/max extent of atoms)      
-0.5 0.5 zlo zhi       (do not include this line for 2-d simulations)        
                                                                             
Masses                                                                       
                                                                             
  1 mass                                                                     
  ...                                                                        
  N mass                           (N = # of atom types)                     
                                                                             
Nonbond Coeffs                                                               
                                                                             
  1 coeff1 coeff2 ...                                                        
  ...                                                                        
  N coeff1 coeff2 ...              (N = # of atom types)                     
                                                                             
Bond Coeffs                                                                  
                                                                             
  1 coeff1 coeff2 ...                                                        
  ...                                                                        
  N coeff1 coeff2 ...              (N = # of bond types)                     
                                                                             
Angle Coeffs                                                                 
                                                                             
  1 coeff1 coeff2 ...                                                        
  ...                                                                        
  N coeff1 coeff2 ...              (N = # of angle types)                    
                                                                             
Dihedral Coeffs                                                              
                                                                             
  1 coeff1 coeff2 ...                                                        
  ...                                                                        
  N coeff1 coeff2 ...              (N = # of dihedral types)                 
                                                                             
Improper Coeffs                                                              
                                                                             
  1 coeff1 coeff2 ...                                                        
  ...                                                                        
  N coeff1 coeff2 ...              (N = # of improper types)                 
                                                                             
BondBond Coeffs                                                              
                                                                             
  1 coeff1 coeff2 ...                                                        
  ...                                                                        
  N coeff1 coeff2 ...              (N = # of angle types)                    
                                                                             
BondAngle Coeffs                                                             
                                                                             
  1 coeff1 coeff2 ...                                                        
  ...                                                                        
  N coeff1 coeff2 ...              (N = # of angle types)                    
                                                                             
MiddleBondTorsion Coeffs                                                     
                                                                             
  1 coeff1 coeff2 ...                                                        
  ...                                                                        
  N coeff1 coeff2 ...              (N = # of dihedral types)                 
                                                                             
EndBondTorsion Coeffs                                                        
                                                                             
  1 coeff1 coeff2 ...                                                        
  ...                                                                        
  N coeff1 coeff2 ...              (N = # of dihedral types)                 
                                                                             
AngleTorsion Coeffs                                                          
                                                                             
  1 coeff1 coeff2 ...                                                        
  ...                                                                        
  N coeff1 coeff2 ...              (N = # of dihedral types)                 
                                                                             
AngleAngleTorsion Coeffs                                                     
                                                                             
  1 coeff1 coeff2 ...                                                        
  ...                                                                        
  N coeff1 coeff2 ...              (N = # of dihedral types)                 
                                                                             
BondBond13 Coeffs                                                            
                                                                             
  1 coeff1 coeff2 ...                                                        
  ...                                                                        
  N coeff1 coeff2 ...              (N = # of dihedral types)                 
                                                                             
AngleAngle Coeffs                                                            
                                                                             
  1 coeff1 coeff2 ...                                                        
  ...                                                                        
  N coeff1 coeff2 ...              (N = # of improper types)                 
                                                                             
Atoms                                                                        
                                                                             
  1 molecule-tag atom-type q x y z nx ny nz  (nx,ny,nz are optional -        
  ...                                    see "true flag" input command)      
  ...                                                                        
  N molecule-tag atom-type q x y z nx ny nz  (N = # of atoms)                
                                                                             
Velocities                                                                   
                                                                             
  1 vx vy vz                                                                 
  ...                                                                        
  ...                                                                        
  N vx vy vz                        (N = # of atoms)                         
                                                                             
Bonds                                                                        
                                                                             
  1 bond-type atom-1 atom-2                                                  
  ...                                                                        
  N bond-type atom-1 atom-2         (N = # of bonds)                         
                                                                             
Angles                                                                       
                                                                             
  1 angle-type atom-1 atom-2 atom-3  (atom-2 is the center atom in angle)    
  ...                                                                        
  N angle-type atom-1 atom-2 atom-3  (N = # of angles)                       
                                                                             
Dihedrals                                                                    
                                                                             
  1 dihedral-type atom-1 atom-2 atom-3 atom-4  (atoms 2-3 form central bond) 
  ...                                                                        
  N dihedral-type atom-1 atom-2 atom-3 atom-4  (N = # of dihedrals)          
                                                                             
Impropers                                                                    
                                                                             
  1 improper-type atom-1 atom-2 atom-3 atom-4  (atom-2 is central atom)      
  ...                                                                        
  N improper-type atom-1 atom-2 atom-3 atom-4  (N = # of impropers)          
注意:data文件不仅能够表示坐标,键,键角等,而且可以输入初始速度,键系数等信息。

lammps_data文件的更多相关文章

  1. Mapreduce的文件和hbase共同输入

    Mapreduce的文件和hbase共同输入 package duogemap;   import java.io.IOException;   import org.apache.hadoop.co ...

  2. mapreduce多文件输出的两方法

    mapreduce多文件输出的两方法   package duogemap;   import java.io.IOException;   import org.apache.hadoop.conf ...

  3. 01.SQLServer性能优化之----强大的文件组----分盘存储

    汇总篇:http://www.cnblogs.com/dunitian/p/4822808.html#tsql 文章内容皆自己的理解,如有不足之处欢迎指正~谢谢 前天有学弟问逆天:“逆天,有没有一种方 ...

  4. SQL Server 大数据搬迁之文件组备份还原实战

    一.本文所涉及的内容(Contents) 本文所涉及的内容(Contents) 背景(Contexts) 解决方案(Solution) 搬迁步骤(Procedure) 搬迁脚本(SQL Codes) ...

  5. SQLSERVER将一个文件组的数据移动到另一个文件组

    SQLSERVER将一个文件组的数据移动到另一个文件组 有经验的大侠可以直接忽视这篇文章~ 这个问题有经验的人都知道怎麽做,因为我们公司的数据量不大没有这个需求,也不知道怎麽做实验 今天求助了QQ群里 ...

  6. SQL Server中的高可用性(2)----文件与文件组

        在谈到SQL Server的高可用性之前,我们首先要谈一谈单实例的高可用性.在单实例的高可用性中,不可忽略的就是文件和文件组的高可用性.SQL Server允许在某些文件损坏或离线的情况下,允 ...

  7. C# ini文件操作【源码下载】

    介绍C#如何对ini文件进行读写操作,C#可以通过调用[kernel32.dll]文件中的 WritePrivateProfileString()和GetPrivateProfileString()函 ...

  8. 【小程序分享篇 一 】开发了个JAVA小程序, 用于清除内存卡或者U盘里的垃圾文件非常有用

    有一种场景, 手机内存卡空间被用光了,但又不知道哪个文件占用了太大,一个个文件夹去找又太麻烦,所以我开发了个小程序把手机所有文件(包括路径下所有层次子文件夹下的文件)进行一个排序,这样你就可以找出哪个 ...

  9. 【原】Android热更新开源项目Tinker源码解析系列之二:资源文件热更新

    上一篇文章介绍了Dex文件的热更新流程,本文将会分析Tinker中对资源文件的热更新流程. 同Dex,资源文件的热更新同样包括三个部分:资源补丁生成,资源补丁合成及资源补丁加载. 本系列将从以下三个方 ...

随机推荐

  1. Series结构(常用)

    1.创建 Series 对象 fandango = pd.read_csv("xxx.csv") series_rt = fandango["RottenTomatoes ...

  2. Python os.mkfifo() 方法

    概述 os.mkfifo() 方法用于创建指令路径的管道,并设置权限模式.默认的模式为 0666 (八进制).高佣联盟 www.cgewang.com 语法 mkfifo()方法语法格式如下: os. ...

  3. Python os.lchflags() 方法

    概述 os.lchflags() 方法用于设置路径的标记为数字标记,类似 chflags(),但是没有软链接.高佣联盟 www.cgewang.com 只支持在 Unix 下使用. 语法 lchfla ...

  4. dsu on tree详解

    这个算法还是挺人性化的,没有什么难度 就是可能看起来有点晕什么的. 大体 思想是 利用重链刨分来优化子树内部的查询. 考虑一个问题要对每个子树都要询问一次.我们暴力显然是\(n^2\)的. 考虑一下优 ...

  5. Java 将数据写入全路径下的指定文件

    package com.freud.algorithm.other; import java.io.File; import java.io.FileOutputStream; public clas ...

  6. 转)Understanding Java Memory Management

    Understanding Java Memory Management - IBM Java Native Interface (JNI) Objects and Code Java Native ...

  7. C++的常用输入及其优化以及注意事项

    $\mathcal{P.S:}$ 对于输入方式及其优化有了解的大佬可直接阅读$\mathcal{Part}$ $\mathcal{2}$ 特别鸣谢:@归斋目录: $\mathcal{Part}$ $\ ...

  8. 开源丨CloudBase CMS 内容管理系统!简单易用企业内容管理流

    背景 云开发CloudBase CMS 是云开发推出的一站式云端内容管理系统,助力企业的数据运营管理工作. 开发者可以直接在云开发扩展能力中一键安装 CloudBase CMS,免费使用 CloudB ...

  9. Spring JdbcTemplate中关于RowMapper的使用实例

    在spring boot 集成使用jdbctemplate,首先在pom文件中引入相应的依赖 <dependency> <groupId>org.springframework ...

  10. Ant Design Pro入门教程,安装,运行(V5 Typescript版)

    [前言] 找了很多Admin模板,最后还是看中了AntDesignPro这个阿里巴巴开源的Admin框架,长这样(还行吧,目前挺主流的): 官网地址:https://pro.ant.design/in ...