24小时热门版块排行榜    

查看: 1146  |  回复: 0
【悬赏金币】回答本帖问题,作者周三啊将赠送您 10 个金币

周三啊

铁虫 (小有名气)

[求助] 关于recenter命令

请问各位大佬,我在一篇文献中看到关于CNT吸附在石墨烯上的结构,文献中提到集合优化时在NVE条件下用minimizer命令,之后在X方向移动CNT,并保持CNT的质心保持在一定的X值,测出CNT在X方向上的sliding potential energy traces 。我按照他文献的过程,先进行minimizer,之后用fix recenter,发现结果是先执行minimizer,此时的CNT的质心已经变化了,请问是我的in script哪里出错了
关于recenter命令
关于recenter命令-1



# Initialization
units           metal
boundary        p p p
atom_style      full
processors      * * 1     # domain decomposition over x and y

# read lammps data file
read_data       CNT66_f_3.1_AB.data
mass            1 12.0107   # carbon mass (g/mole) | membrane
mass            2 12.0107   # carbon mass (g/mole) | adsorbate
# Separate atom groups
group membrane  type 1
group adsorbate type 2

######################## Potential defition ########################
pair_style  hybrid/overlay  airebo 3.0  ilp/graphene/hbn 16.0
####################################################################
pair_coeff  * * airebo               CH.airebo      NULL C  # chemical
pair_coeff  * * ilp/graphene/hbn   BNCH.ILP    C    C  # long range
####################################################################
# Neighbor update settings
neighbor        2.0 bin
neigh_modify    every 1
neigh_modify    delay 0
neigh_modify    check yes

##timestep
timestep  0.001

compute  cntcom  adsorbate com
compute  gracom  membrane com
variable cntcomx  equal  c_cntcom[1]
variable cntcomy  equal  c_cntcom[2]
variable cntcomz  equal  c_cntcom[3]
variable gracomx  equal  c_gracom[1]
variable gracomy  equal  c_gracom[2]
variable gracomz  equal  c_gracom[3]



##minimize
thermo          100
velocity  adsorbate create 0.1 12345
fix       subf membrane setforce 0.0 0.0 0.0
fix       thermostat all nve
fix       fi_com membrane recenter INIT NULL NULL

min_style fire
minimize 1.0e-6 1.0e-6 1000 1000

thermo          100
thermo_style    custom step     etotal pe ke v_cntcomx v_cntcomy v_cntcomz v_gracomx v_gracomy v_gracomz     
thermo_modify   line one format float %.10f
thermo_modify   flush yes norm no lost warn

dump 11 all atom 100 cnt_gra.lammpstrj
run 1000

关于recenter命令-2
HIU8)FDYZPW~M%(I6TL2523.png
回复此楼

» 猜你喜欢

» 本主题相关商家推荐: (我也要在这里推广)

已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
相关版块跳转 我要订阅楼主 周三啊 的主题更新
不应助 确定回帖应助 (注意:应助才可能被奖励,但不允许灌水,必须填写15个字符以上)
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[考研] 354求调剂 +6 Tyoumou 2026-03-18 9/450 2026-03-21 20:47 by lbsjt
[考研] 333求调剂 +5 87639 2026-03-21 7/350 2026-03-21 19:31 by ColorlessPI
[考研] 0703化学调剂 ,六级已过,有科研经历 +14 曦熙兮 2026-03-15 14/700 2026-03-21 19:12 by ColorlessPI
[考研] 求调剂 +5 十三加油 2026-03-21 5/250 2026-03-21 18:48 by 学员8dgXkO
[考研] 296求调剂 +4 www_q 2026-03-20 4/200 2026-03-21 17:26 by 学员8dgXkO
[考研] 303求调剂 +5 睿08 2026-03-17 7/350 2026-03-21 03:11 by JourneyLucky
[考研] 材料 336 求调剂 +3 An@. 2026-03-18 4/200 2026-03-21 01:39 by JourneyLucky
[考研] 324分 085600材料化工求调剂 +4 llllkkkhh 2026-03-18 4/200 2026-03-21 01:24 by JourneyLucky
[考研] 304求调剂 +6 曼殊2266 2026-03-18 6/300 2026-03-21 00:32 by JourneyLucky
[考研] 一志愿西南交大,求调剂 +5 材化逐梦人 2026-03-18 5/250 2026-03-21 00:26 by JourneyLucky
[考研] 296求调剂 +6 www_q 2026-03-18 10/500 2026-03-20 23:56 by JourneyLucky
[考研] 330求调剂 +4 小材化本科 2026-03-18 4/200 2026-03-20 23:13 by JourneyLucky
[考研] 求调剂,一志愿:南京航空航天大学大学 ,080500材料科学与工程学硕,总分289分 +4 @taotao 2026-03-19 4/200 2026-03-20 22:14 by JourneyLucky
[考研] 材料与化工 322求调剂 +4 然11 2026-03-19 4/200 2026-03-20 22:12 by luoyongfeng
[考研] 350求调剂 +5 weudhdk 2026-03-19 5/250 2026-03-20 22:04 by luoyongfeng
[考研] 277调剂 +5 自由煎饼果子 2026-03-16 6/300 2026-03-17 19:26 by 李leezz
[考研] 290求调剂 +3 p asserby. 2026-03-15 4/200 2026-03-17 16:35 by wangkm
[考研] 333求调剂 +3 文思客 2026-03-16 7/350 2026-03-16 18:21 by 文思客
[考研] 中科院材料273求调剂 +4 yzydy 2026-03-15 4/200 2026-03-16 15:59 by Gaodh_82
[考研] 0856专硕279求调剂 +5 加油加油!? 2026-03-15 5/250 2026-03-15 11:58 by 2020015
信息提示
请填处理意见