计算化学公社

 找回密码 Forget password
 注册 Register
Views: 377|回复 Reply: 0
打印 Print 上一主题 Last thread 下一主题 Next thread

[Lammps] 通过lammps模拟分子在囊泡(vesicle)中的聚集的问题

[复制链接 Copy URL]

137

帖子

0

威望

1108

eV
积分
1245

Level 4 (黑子)

跳转到指定楼层 Go to specific reply
楼主
本帖最后由 meatball1982 于 2025-1-13 20:32 编辑

大家好。
      我希望通过lammps,模拟若干个粗粒化的小球在囊泡(vesicle)中的聚类过程。
      我打算作如下的测试。
      01. 只有囊泡
      02. 囊泡+水(一个球)代表
      03. 囊泡+水+负电粗粒化小球。希望看到不聚集。
      04. 囊泡+水+负电粗粒化小球+正电粗粒化小球,希望看到聚集。

      实现01时,
      只有囊泡的情况,我参考的是lammps/examples/ASPHERE/vesicle下的例子,可以正常跑。

      实现02时,
      我将水小球放到体系当中(囊泡体系2个原子,两个水小球,测试用)。
      报的是原子格式错误。

      All pair coeffs are not set (../pair.cpp:253)

      因为用到的是ylz势,所以囊泡是要定义为ellipsoid的。
      我的问题是
      01. 负电小球,我应该用哪种或几种atom_type.(我用的是charge)
      02. 我查了All pair coeffs are not set的解决方法,是因为


    pair_style   hybrid ylz 2.6 lj/cut 3.6
   pair_coeff   1  1 ylz 1.0  1.0  4  3  0.0  2.6
   pair_coeff   1  2 lj/cut  ${ew} 1.0
   pair_coeff   2  2 lj/cut  ${ew} 1.0

     进行了重复设置。我尝试用来解决,还是不行。

    pair_style   hybrid ylz 2.6 lj/cut 3.6 lj/cut 3.6
   pair_coeff   1  1 ylz 1.0  1.0  4  3  0.0  2.6
   pair_coeff   1  2 lj/cut 1 ${ew} 1.0
   pair_coeff   2  2 lj/cut 2 ${ew} 1.0


     非常感谢。

                                                               meatball1982
我出错的input文件,如下给出

  1. units lj

  2. variable T equal 0.23
  3. variable     ew  equal 0.2

  4. atom_style hybrid ellipsoid charge

  5. boundary     p p p  

  6. read_data read_data.atoms

  7. mass * 1.0


  8. group mem type 1
  9. group wat_in type 2

  10. velocity mem create ${T}  87287 loop geom
  11. velocity wat_in  create ${T}  87287 loop geom

  12. pair_style   hybrid ylz 2.6 lj/cut 3.6
  13. pair_coeff   1  1 ylz 1.0  1.0  4  3  0.0  2.6
  14. pair_coeff   1  2 lj/cut  ${ew} 1.0
  15. pair_coeff   2  2 lj/cut  ${ew} 1.0

  16. neighbor    1.0 bin

  17. thermo_style custom step temp press ebond

  18. thermo 200
  19. timestep 0.005

  20. fix 1 all npt temp 0.23 0.23 1 iso 0.05 0.05 1
  21. run 100

复制代码



read_data.atoms

  1. vesicle with diameter =    30.000000
  2.        4 atoms
  3.        2 ellipsoids

  4. 5 atom types

  5.   -35.000000    35.000000 xlo xhi
  6.   -35.000000    35.000000 ylo yhi
  7.   -35.000000    35.000000 zlo zhi

  8. # type 1 : membrane CG
  9. # type 2 : Water in Cell
  10. Atoms  #atom ID, type,     x,            y,           z,         ell flg,   density, charge              

  11.        1      1            0.236369      0.008147     0.007400   1         0.238732   0.0
  12.        2      1            0.236369      0.009058     0.008176   1         0.238732   0.0
  13.        3      2            1.236369      0.008147     1.007400   0         0.238732   0.0
  14.        4      2            0.236369      1.008147     1.007400   0         0.238732   0.0

  15. Ellipsoids

  16.        1     1.000000     1.000000     1.010000      0.707299     0.000000    -0.706915     0.000349
  17.        2     1.000000     1.000000     1.010000      0.707320    -0.000000     0.706893     0.000385


复制代码



本版积分规则 Credits rule

手机版 Mobile version|北京科音自然科学研究中心 Beijing Kein Research Center for Natural Sciences|京公网安备 11010502035419号|计算化学公社 — 北京科音旗下高水平计算化学交流论坛 ( 京ICP备14038949号-1 )|网站地图

GMT+8, 2026-2-20 07:27 , Processed in 0.149933 second(s), 20 queries , Gzip On.

快速回复 返回顶部 返回列表 Return to list