24小时热门版块排行榜    

查看: 5048  |  回复: 5

DDDDDTTT

新虫 (初入文坛)

[求助] LAMMPS中模拟电场问题 已有1人参与

lammps小白想给体系加电场,参考lammps官网上的 commands 后,决定用 fix efield command 命令

fix ID group-ID efield ex ey ez keyword value ...

页面最下面提示 :

This fix is part of the MISC package. It is only enabled if LAMMPS was built with that package. See the Making LAMMPS section for more info.

然后,我 make yes-MISC 命令行显示安装成功,然后用 make package-statue 查看,也是MISC 也是安装完成的。

但是,当我在In文件中用 fix 0 all efield 1.0 0.0 0.0 时显示错误 : ERROR : Unknown fix style (../modify.cpp:793)

我怀疑是不是包安装错了,我又 make yes-all 再试了一次,但还是 : ERROR : Unknown fix style (../modify.cpp:793)

这是为什么呀?求大神帮帮我.谢谢!


附代码:

# VARIABLES
variable fname index PE_cl100.txt
variable simname index PE_cl100

# Initialization
units                real
boundary        p p p
atom_style        molecular
log                 log.PE_cl100.txt
read_data        PE_cl100.txt

# Dreiding potential information
neighbor        0.4 bin
neigh_modify        every 10 one 10000
bond_style      harmonic
bond_coeff        1 350 1.53
angle_style     harmonic
angle_coeff        1 60 109.5
dihedral_style        multi/harmonic
dihedral_coeff        1 1.73 -4.49 0.776 6.99 0.0
pair_style        lj/cut 10.5
pair_coeff        1 1 0.112 4.01 10.5

compute csym all centro/atom fcc
compute peratom all pe/atom



#####################################################
# Equilibration (Langevin dynamics at 5000 K)

velocity         all create 5000.0 1231

fix           0 all efield 1.0 0.0 1.0
fix                1 all nve/limit 0.05
fix                2 all langevin 5000.0 5000.0 10.0 904297
thermo_style        custom step temp
thermo          10000
timestep        1
run                100000
unfix 1
unfix 2
write_restart         restart.PE_cl100.dreiding1


#####################################################
# Define Settings
compute eng all pe/atom
compute eatoms all reduce sum c_eng

#####################################################
# Minimization

dump                 1 all cfg 6 dump.comp_*.cfg mass type xs ys zs c_csym c_peratom fx fy fz

reset_timestep 0
fix 1 all nvt temp 500.0 500.0 100.0

thermo 20
thermo_style custom step pe lx ly lz press pxx pyy pzz c_eatoms
min_style cg
minimize 1e-25 1e-25 500000 1000000


print "All done"
回复此楼

» 收录本帖的淘帖专辑推荐

分子动力学-初级问题资源

» 猜你喜欢

已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

jluchemlib

铁杆木虫 (正式写手)

【答案】应助回帖

感谢参与,应助指数 +1
你在make yes-MISC 之后还要再编译一次,比如make mpi
2楼2016-09-21 16:13:07
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

HJLOCVEP

新虫 (小有名气)

引用回帖:
2楼: Originally posted by jluchemlib at 2016-09-21 16:13:07
你在make yes-MISC 之后还要再编译一次,比如make mpi

重新安装一次软件?

发自小木虫Android客户端
3楼2016-09-25 04:23:57
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

honoured

铜虫 (小有名气)

问你下,你这个问题解决了没有,我也遇到了同样的问题ERROR: Unknown fix style (../modify.cpp:793)
爱好运动健身,喜欢读书,沉迷于三教九流,陶醉于艺术,致力于学术研究
4楼2017-03-10 15:32:20
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

ppggone

新虫 (初入文坛)

您好,请问您这个问题解决了吗?我也碰见了相同的问题
5楼2018-06-10 12:51:42
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

ppggone

新虫 (初入文坛)

引用回帖:
4楼: Originally posted by honoured at 2017-03-10 15:32:20
问你下,你这个问题解决了没有,我也遇到了同样的问题ERROR: Unknown fix style (../modify.cpp:793)

您好,您的这个问题解决了吗,我也遇见这样的问题,不知道该怎么办
6楼2018-06-10 12:53:26
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
相关版块跳转 我要订阅楼主 DDDDDTTT 的主题更新
信息提示
请填处理意见