24小时热门版块排行榜    

查看: 914  |  回复: 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 的主题更新
普通表情 高级回复 (可上传附件)
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[考研] 【求调剂】293分环境工程求调剂材料/化工,服从调剂,抗压能力强! +13 xiiiia 2026-03-04 14/700 2026-03-09 14:06 by macy2011
[考研] 085600材料与化工调剂 280分 +15 yyqqhh 2026-03-03 15/750 2026-03-09 11:06 by 鲁鲁修一
[考研] 0817一志愿苏州大学280复试调剂 +3 kk扛 2026-03-07 3/150 2026-03-09 05:46 by houyaoxu
[考研] 一志愿武理314求调剂 +4 ( ̄~ ̄;) 2026-03-08 5/250 2026-03-08 23:12 by L135790
[硕博家园] 2026级硕士研究生招生/调剂 +3 lbj6746988 2026-03-03 4/200 2026-03-08 21:09 by 上岸上岸……..
[考研] 337一志愿华南理工材料求调剂 +4 mysdl 2026-03-07 4/200 2026-03-08 11:00 by 无际的草原
[考研] 求调剂,不管什么专业,我是可塑造的人才一枚,希望遇到知己老师捞捞我 +4 13102137290 2026-03-06 5/250 2026-03-07 21:21 by lissomchan
[考研] 0307化学求调剂 +6 0ok0k 2026-03-07 6/300 2026-03-07 20:10 by pies112
[考研] 求调剂 +4 呼呼?~+123456 2026-03-05 5/250 2026-03-06 23:15 by L135790
[考研] 266材料化工求调剂 +5 哇塞王帅 2026-03-03 5/250 2026-03-06 16:44 by 学员FnSWZj
[考研] 材料专硕290求调剂 +8 杰尼龟aaa 2026-03-04 8/400 2026-03-06 16:06 by @飒飒飒飒
[考研] 085600材料与化工(高分子)290分求调剂 +9 wengyujian 2026-03-04 9/450 2026-03-06 15:59 by 聪明的大松鼠
[考研] 268求调剂 +4 刘合华 2026-03-05 4/200 2026-03-06 11:18 by lature00
[考研] 080500材料科学与工程 +13 202114020319 2026-03-03 13/650 2026-03-06 00:29 by wutongshun
[考研] 334求调剂 +6 Trying] 2026-03-05 8/400 2026-03-06 00:16 by wutongshun
[考研] 271求调剂 +7 月色c 2026-03-05 8/400 2026-03-05 19:51 by wangjihu
[考研] 281电子信息求调剂 +5 jhtfeybgj 2026-03-02 9/450 2026-03-05 09:36 by 085400调剂党
[考研] 307求调剂 +4 xuyuan111 2026-03-04 5/250 2026-03-04 20:39 by kakakapanpan
[考研] 295求调剂 +4 小赛不吃香菜 2026-03-04 4/200 2026-03-04 16:13 by sslc1985
[考研] 复试调剂 +4 杰尼龟aaa 2026-03-03 4/200 2026-03-03 23:06 by zhukairuo
信息提示
请填处理意见