24小时热门版块排行榜    

查看: 1031  |  回复: 0
【有奖交流】积极回复本帖子,参与交流,就有机会分得作者 柒一mk 的 5 个金币

柒一mk

铁虫 (初入文坛)

[交流] [lammps]对海水溶液施加电场,盐离子却反向移动。

在z方向对海水溶液施加电场,钠离子移动方向应该与电场方向一致,但模拟结果却相反,请大佬们帮忙看看!
这张图片是模型图
链接: https://pan.baidu.com/s/1gtL4sLrSkSiHwOlRkpigjg?pwd=sizd 提取码: sizd 复制这段内容后打开百度网盘手机App,操作更方便哦

以下是in文件内容
# Initialization
units            metal
boundary    p p p
atom_style  full
dimension   3

# Read the coordinates of all atoms  
read_data  all3.dat

# Set the mass of atoms
mass 1 15.9994    #O
mass 2 1.008        #H
mass 3 22.9898    #Na
mass 4 35.453      #Cl
mass 5 12.011      #wall-L
mass 6 12.011      #wall-R

# Define the regions and groups
group O         type 1
group H         type 2
group Na        type 3
group CL        type 4
group wall-L    type 5
group wall-R    type 6
group wall union wall-L wall-R
group water type 1 2
group saltwater type 1 2 3 4  

# Force fields
pair_style  hybrid  airebo 3.0   lj/cut 1     lj/cut/coul/long 12 10    lj/cut/tip4p/long 1 2 1 1 0.125 12 10
pair_coeff  * * airebo  CH.airebo   NULL  NULL  NULL  NULL  C  C  
pair_coeff      1 1  lj/cut/tip4p/long  0.00705733   3.16435      #O-O
pair_coeff      1 2  lj/cut/tip4p/long  0.0          0.0          #O-H
pair_coeff      1 3  lj/cut/coul/long   0.00630838   2.757175     #O-Na
pair_coeff      1 4  lj/cut/coul/long   0.00553638   3.782175     #O-CL
pair_coeff      1 5  lj/cut/coul/long   0.00513015   3.282175     #O-C
pair_coeff      1 6  lj/cut/coul/long   0.00513015   3.282175     #O-C

pair_coeff      2 2  lj/cut/tip4p/long  0.0  0.0        #H-H
pair_coeff      2 3  lj/cut/coul/long   0.0  0.0        #H-Na
pair_coeff      2 4  lj/cut/coul/long   0.0  0.0        #H-CL
pair_coeff      2 5  lj/cut/coul/long   0.0  0.0        #H-C
pair_coeff      2 6  lj/cut/coul/long   0.0  0.0        #H-C

pair_coeff      3 3  lj/cut/coul/long   0.00563892    2.35      #Na-Na
pair_coeff      3 4  lj/cut/coul/long   0.00494884    3.375     #Na-CL
pair_coeff      3 5  lj/cut/coul/long   0.00458572    2.875     #Na-C
pair_coeff      3 6  lj/cut/coul/long   0.00458572    2.875     #Na-C

pair_coeff      4 4  lj/cut/coul/long    0.00434321   4.4       #CL-CL
pair_coeff      4 5  lj/cut/coul/long    0.00402453   3.900     #CL-C
pair_coeff      4 6  lj/cut/coul/long    0.00402453   3.900     #CL-C

pair_coeff      5 6  lj/cut  0.0  0.0

bond_style      harmonic
bond_coeff      1  19.51335  0.9572
angle_style     harmonic
angle_coeff     1  2.384965  104.52

kspace_style    pppm/tip4p    1.0e-4
neighbor   2.0    bin   
neigh_modify delay  0  every  1  check  yes

# Set the MD time step
timestep 0.002  #2ps

thermo 1000
thermo_style  custom  step  pe  

dump 1 all atom 1000 mol.lammpstrj
dump_modify  1  format  line "%7d %3d %10.5f %10.5f %10.5f"


# Create the initial velocity of atoms   
fix 1     wall   setforce   0.0   0.0  0.0
velocity  wall   set         0.0  0.0  0.0  units box               

fix 2     water  shake  1.0e-4 20 0 b 1 a 1

velocity  saltwater  create  300  123456  units  box

fix  4   wall           nve
fix  5   saltwater    nvt  temp  300  300  0.1  drag  0.5

run 1000

fix  6    saltwater   efield  0  0  1  

dump 2 all atom 1000 mol2.lammpstrj
dump_modify  2  format  line "%7d %3d %10.5f %10.5f %10.5f"

run 200000
write_data 1.dat
回复此楼
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
相关版块跳转 我要订阅楼主 柒一mk 的主题更新
普通表情 高级回复 (可上传附件)
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[基金申请] 2026国自然函评费到账 +11 羊腰板 2026-08-21 11/550 2026-08-22 22:03 by lsbin3733
[硕博家园] 售SCI一区T0P文章,我:8.O.55.1.O54,科目全,可伽急 +3 2JOx3r2CYEgw 2026-08-22 3/150 2026-08-22 22:03 by OEbVnUOu01ol
[基金申请] 93BebMhtakh前后11位开头都是大写 +7 且听虎啸 2026-08-17 8/400 2026-08-22 21:55 by 医学老男孩
[基金申请] 什么时候开奖? +7 CrisMessi 2026-08-18 8/400 2026-08-22 18:29 by 淀粉搬运工
[基金申请] filecode,4个jtjc了 +13 ziyangfang 2026-08-19 16/800 2026-08-22 17:08 by WH3796
[教师之家] 售一区SCI文章T0P,我:8O.551.O54,科目全,可十急 +4 2JOx3r2CYEgw 2026-08-21 4/200 2026-08-22 16:52 by sunzitan
[基金申请] 今天基金会出结果吗?20260819 +16 kkkl_v 2026-08-19 17/850 2026-08-22 16:12 by 阿布Abu
[硕博家园] 售SCI一区T0P文章,我:8O.55.1.O.54,科目全,可伽急 +3 QTy3jDtz1uLt 2026-08-21 9/450 2026-08-22 11:28 by h4CP7TrQR8Lg
[基金申请] 时间戳今天,20号变了 +5 archvillain 2026-08-20 5/250 2026-08-22 06:12 by hui_daxiao
[基金申请] 放榜前的不淡定 40+4 snowwithsea 2026-08-19 14/700 2026-08-21 23:51 by cratir
[基金申请] 今日不放榜?网传国自然预计 8 月 27 日可查结果 +16 医学老男孩 2026-08-20 20/1000 2026-08-21 21:13 by Ldrop2023
[基金申请] 科研孤儿太难了 +17 我4大白菜 2026-08-20 18/900 2026-08-21 20:57 by zhangev
[基金申请] 时间戳又变了 +13 wuchongjun 2026-08-20 19/950 2026-08-21 17:21 by 紫杉醇
[基金申请] 让我中一个面上吧! +11 大萍1987 2026-08-20 13/650 2026-08-21 14:48 by 20120902066
[基金申请] 今天系统多次维护,明天很可能放榜! +10 zju2000 2026-08-16 11/550 2026-08-20 20:02 by cl479861084
[基金申请] 时间戳变了,能看出什么问题? +18 基诺咪客 2026-08-17 23/1150 2026-08-20 17:19 by Godzela
[基金申请] 重要消息,中午系统在维护 +11 yuleib84 2026-08-18 12/600 2026-08-20 11:09 by xskun
[基金申请] 今天放榜吗? +14 布布和一二 2026-08-19 15/750 2026-08-19 18:07 by gltch
[基金申请] 朋友圈看到的 +6 wangzilk 2026-08-18 8/400 2026-08-19 10:55 by Haru815
[基金申请] 明天放榜? +5 Shxjjxjkx 2026-08-18 5/250 2026-08-18 18:14 by -大大大大大-
信息提示
请填处理意见