博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
关于fix shake以及compute命令的应用问题
阅读量:7025 次
发布时间:2019-06-28

本文共 2806 字,大约阅读时间需要 9 分钟。

我最近写了一个关于超临界水的in文件,里面用到了fix shake命令,但运行的时候一直报错ERROR: Invalid fix style,我对照manuel检查了命令格式,没有发现问题,禁了fix shake后运行又出现ERROR: Invalid compute style,都没查出问题在哪里,请各位大侠不吝赐教,小女子先谢过了

以下是我的in文件
units real
dimension 3
boundary p p p
atom_style full
pair_style lj/charmm/coul/charmm 7.5 8.0 8.0 10.0
bond_style harmonic
angle_style harmonic 
read_data data.Mol 
angle_coeff 1  55.0000   104.5200 
bond_coeff  1  450.0000   0.9572 
pair_coeff 1 1 0.1521 3.1507
pair_coeff 1 2 0.0836 1.7753
pair_coeff 2 2 0.0460 0.4000
region 1 block INF INF INF INF INF INF 
velocity all create 640 100 
velocity all scale 640 
#group water type 1 2
fix 1 all shake 0.0001 20 0 b 1 a 1
fix 2 all npt temp 640 760 1000 iso 236.92 236.92 1000 drag 1
timestep 0.01
compute 1 all ke
compute 2 all pe
compute 3 all temp 
compute 4 all dilatation/atom
compute 5 all displace/atom
thermo 500
thermo_style custom temp press density vol pe ke etotal enthalpy
run 1000
data文件如下
LAMMPS data file from msi2lmp v3.8 for Mol
      6 atoms
      4 bonds
      2 angles
      0 dihedrals
      0 impropers
   2 atom types
   1 bond types
   1 angle types
    -0.854007846     3.056692154 xlo xhi
    -0.764937233     3.145762767 ylo yhi
    -1.347689527     2.563010473 zlo zhi
Masses
   1  15.999400
   2   1.007970
Atoms
      1      1   1 -0.798200     0.121798883     0.387575451     0.043193656   0   1   0
      2      1   2  0.399100     0.308427222     1.054689176    -0.656528781   0   1   0
      3      1   2  0.399100     0.163119246    -0.433256524    -0.481969457   0   1   0
      4      2   1 -0.798200     1.973583684     2.001768480     1.988670964   0  -1   0
      5      2   2  0.399100     2.453643042     1.441265665     1.343893247   0  -1   0
      6      2   2  0.399100     1.587480847     2.690434354     1.408703210   0  -1   0
Bonds
     1   1      1      2
     2   1      1      3
     3   1      4      5
     4   1      4      6
Angles
     1   1      2      1      3
     2   1      5      4      6

 fix shake 所需要的rigid panckage 出问题了

在MS里面进行建模,然后再lammps里面运行,建模的有机分子是BMIM-,我们的烷基侧链是丁烷的 文献中提示里面的C-H 采用fix shake 进行constrained,但是一直报错 fix shake

我们的fix shake命令式这样的:

fix             mobile0 mobile  shake 0.0001 20 10 b 4 6 7 9 11 13  #对bond 4 6 7 9 11 13 进行constrained
结果一直报错,错误如下:
|
fix             mobile0 mobile  shake 0.0001 20 10 b 4 6 7 9 11 13
ERROR: Shake cluster of more than 4 atoms (../fix_shake.cpp:901)
求大神指点指点的啊    下图是建模基本分子的BMIMPF6

lammps中fix shake只能限制小基团的键长键角,比如水分子,CH3 ,CH2这样比较小的基团,你的碳链太长,应该是这个问题,手册中有详细的介绍, In LAMMPS, only small clusters of atoms can be constrained. This is so the constraint calculation for a cluster can be performed by a single processor, to enable good parallel performance. A cluster is defined as a central atom connected to others in the cluster by constrained bonds. LAMMPS allows for the following kinds of clusters to be constrained: one central atom bonded to 1 or 2 or 3 atoms, or one central atom bonded to 2 others and the angle between the 3 atoms also constrained. This means water molecules or CH2 or CH3 groups may be constrained, but not all the C-C backbone bonds of a long polymer chain,

长碳链lammps貌似是实现不了,如果你懂编程可以自己试试,或者换个软件吧

 

转载于:https://www.cnblogs.com/Simulation-Campus/p/8733715.html

你可能感兴趣的文章
一维二维码的提取、识别和产生
查看>>
【转】java 自动装箱与拆箱
查看>>
JAVA NIO异步通信框架MINA选型和使用的几个细节(概述入门,UDP, 心跳)
查看>>
【转】android自动化测试之MonkeyRunner使用实例(三)
查看>>
WebService它CXF注释错误(两)
查看>>
html之marquee详解
查看>>
ThinkPad E431/E531 ubuntu 14.04 安装无线网卡驱动
查看>>
ubuntu 中DNAT SNAT配置实验.
查看>>
单位冲击响应与频响以及FIR实现代码(C语言)(转)
查看>>
【R】array 2 string
查看>>
exports与module.exports的区别
查看>>
Handler详细说明系列(六)——View的post()详解
查看>>
ServletWeb缓存解决问题
查看>>
css selector: xpath:
查看>>
Atitit.随时间变色特效 ---包厢管理系统的规划
查看>>
JNDI
查看>>
BZOJ3924 : [Zjoi2015]幻想乡战略游戏
查看>>
电子证书 DER & PEM & CRT & CER
查看>>
基于OpenCL的深度学习工具:AMD MLP及其使用详解
查看>>
[CareerCup] 9.3 Magic Index 魔法序号
查看>>