关于fix shake以及compute命令的应用问题

news/2024/7/3 8:15:25

我最近写了一个关于超临界水的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 命令求助

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


http://www.niftyadmin.cn/n/3755002.html

相关文章

设置html某元素在最顶层位置,找到你的位置(JS在页面中的位置)最常用的方式是在页面中head部分放置script元素,浏览器解析head部分就会执行这个代码,然后才解析页面的其余部分...

[转载] C++位运算:将一个4字节整数的二进制表示中的001替换为011#include #include /** * Key: * * get someone bit: num & (mode1 ...BZOJ 1502 月下柠檬树(simpson积分)题目链接:http://61.187.179.132/JudgeOnline/p…

[译] 设计师与工程师协作的 5 项准则

原文地址:5-rules-for-designer-engineer-collaboration: Tips to Improve Quality and Productivity原文作者:Andrew Yang译文出自:掘金翻译计划本文永久链接:github.com/xitu/gold-m…译者:Starrier校对者&#xff1…

html4长连接,HTTP长连接

在HTTP协议的初始版本中,每个HTTP通信都与tcp连接断开。就当年的通信情况来看,由于文字传输容量小,即使这样也不是什么大问题。但是随着HTTP的普及,文档中包含了大量的图片。例如,当使用浏览器浏览包含多个图像的HTML页…

hdu 1071The area

以前做过这道题目,不过当时是找的牛人推出来的公式,,昨天又重新做了下,自己也推出来一个公式 ^_^。。 高数没能学好,一开始只是以为定积分一下就ok了呢。。 没想到定积分是求两点和曲线和x轴所围成的面积,最…

2021年静海一中高考成绩查询,2021年天津中考各学校录取分数线,历年天津中考分数线汇总...

天津中考录取分数线预计7月初公布,届时考生可登陆天津招考资讯网官网查看分数线情况。2017天津中考录取分数线汇总【滨海新区】塘沽一中:537.5滨海一中:515.5紫云中学:516.2十三中学:506塘沽二中:495.6渤油…

[笔记].小练Verilog版本PWM驱动步进电机

硬件:MAX II EPM240T100C5软件:Quartus II 10.0 step_motor.vmodule step_motor //#(parameter RPM50 40, RPM300 6) #(parameter RPM50 1000, RPM300 3) (// global clock and asyn resetinput CLOCK_50,input RST_N,// step motor interfaceoutpu…

网络看不到计算机和设备,网络发现已关闭,网络计算机和设备不可见。请启用网络和共享中心中的网络发现。解决方法...

今天一位朋友的Windows10笔记本,网络这里出现如下错误提示:网络发现已关闭,网络计算机和设备不可见。请启用网络和共享中心中的网络发现。原因:由于我的这位朋友中午去上课的时候还可以连寝室的网络,下午回来就连不上了…

西南大学计算机与信息科学学院奖学金,西南大学计算机与信息科学学院:奖学金机制公平...

采访嘉宾:西南大学计算机与信息科学学院副院长 肖国强历年研究生招生情况我们是西南大学计算机与信息科学学院,我们学院有计算机科学与技术一级学科硕士点,还有教育技术学、图书馆学和情报学专业硕士点。我们学院是跨系科、跨专业、多门类的融…