24小时热门版块排行榜    

Znn3bq.jpeg
查看: 939  |  回复: 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 的主题更新
普通表情 高级回复 (可上传附件)
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[考研] 291分调剂 +10 上岸小莹加油 2026-04-09 11/550 2026-04-15 19:51 by 学习:)
[考研] 求调剂 +10 小聂爱学习 2026-04-11 14/700 2026-04-15 19:08 by 黑科技花岗岩
[考研] 材料工程281还有调剂机会吗 +43 xaw. 2026-04-11 44/2200 2026-04-15 12:46 by 西北望—风沙
[考研] 一志愿沪9,326求生物学调剂 +10 刘墨墨 2026-04-13 10/500 2026-04-14 15:16 by zs92450
[考研] 求调剂 +12 何气正 2026-04-13 13/650 2026-04-14 14:47 by zs92450
[考研] 085408光电信息工程专硕355一志愿长春光机所调剂 +6 王ymaa 2026-04-13 13/650 2026-04-14 11:33 by 王ymaa
[考研] 300分求调剂 (085501机械专硕,本科扬大) +9 xu@841019 2026-04-11 10/500 2026-04-14 08:48 by 木木mumu~
[考研] 材料085601调剂 +32 何润采123 2026-04-10 34/1700 2026-04-14 08:47 by 木木mumu~
[考研] 一志愿浙大生物325分求调剂 +9 zysheng 2026-04-12 9/450 2026-04-12 22:31 by yuyin1233
[考研] 346分,工科0854求调剂,专硕 +6 moser233 2026-04-12 7/350 2026-04-12 22:11 by fqwang
[考研] 296求调剂 +14 汪!?! 2026-04-10 16/800 2026-04-12 10:48 by zhouyuwinner
[考研] 267求调剂 +8 再忙也要吃饭啊 2026-04-09 8/400 2026-04-11 21:42 by cfdbai
[考研] 343求调剂 +9 王国帅 2026-04-10 9/450 2026-04-11 20:31 by dongdian1
[考研] 284求调剂 +11 archer.. 2026-04-09 12/600 2026-04-11 20:23 by 蓝云思雨
[考研] 283求调剂 086004考英二数二 +17 那个噜子 2026-04-10 18/900 2026-04-11 16:27 by 明月此时有
[考研] 广东省 085601 329分求调剂 +14 Eddieddd 2026-04-10 14/700 2026-04-11 09:58 by bljnqdcc
[考研] 337求调剂 +4 研s. 2026-04-10 4/200 2026-04-11 08:57 by zhq0425
[考研] 考研调剂 +26 硕星赴 2026-04-09 27/1350 2026-04-10 22:24 by 猪会飞
[考研] 求调剂 +5 不会飞的鱼@ 2026-04-10 5/250 2026-04-10 19:07 by chemisry
[考研] 一志愿中科大070300化学,314分求调剂 +12 wakeluofu 2026-04-09 12/600 2026-04-10 09:57 by liuhuiying09
信息提示
请填处理意见