dumsky2019928 发表于 2023-7-27 20:06 请问有没有一份完整的lammps.in文件,colvars文件和indexFile gra.ndx文件样本,我想拿来学习一下怎么写。 |
dumsky2019928 发表于 2023-7-29 11:05 这个不一定,如果范围设置得特别不合理的话可能跑多久都采不到样。如果合理的话可能过一段时间就会有采样 如果完全限制(constrain)XY方向的运动的话,选distance和distanceZ结果应该是一样的 |
fhh2626 发表于 2023-7-27 21:32 谢谢大佬!也就是说,如果跑的时间再长一些,比如跑100ns,这样或许就能使平台的地方充分采样吧? 还有就是反应路径应该选为距离在z方向的投影才更合理 |
1、看out.czar.pmf 2、那个区域是没采到样,可以直接截掉(当然也可以耐心等那个区域采到样,如果你想的话) 3、如果是在XY方向上的限制的话,应该对你的反应坐标方向不做功 |
lammps的in文件如下: # ----------------- Init Section ----------------- dimension 3 units real boundary p p p neighbor 2 multi neigh_modify every 1 delay 0 check yes# page 50000 one 5000 atom_style full pair_style lj/charmm/coul/charmm 9.0 10.0 pair_modify mix arithmetic bond_style harmonic angle_style harmonic dihedral_style fourier improper_style cvff special_bonds amber #kspace_style pppm 1.0e-4 # ----------------- Atom Definition Section ----------------- #read_data "system.data" read_restart "xiafeng.restart" # ----------------- Settings Section ----------------- pair_coeff 1 1 0.03377 3.91 bond_coeff 1 461.1 1.3984 angle_coeff 1 66.6 120.0 dihedral_coeff 1 1 3.625 2 180.0 improper_coeff 1 1.1 -1 2 pair_coeff 2 2 0.03377 3.91 bond_coeff 2 461.1 1.3984 angle_coeff 2 66.6 120.0 dihedral_coeff 2 1 3.625 2 180.0 improper_coeff 2 1.1 -1 2 pair_coeff 3 3 0.08882803 3.5 group liquid type 3 group graphene1 type 1 group graphene2 type 2 group graphene type <> 1 2 #fix freeze graphene setforce 0.0 0.0 0.0 #region lwallsy block EDGE EDGE -11.88 11.88 -22.5 -2.5 open 1 open 2 open 5 open 6 units box #region lwallsz block EDGE EDGE -11.88 11.88 -22.5 -2.5 open 1 open 2 open 3 open 4 open 6 units box # #region rwallsy block EDGE EDGE -11.88 11.88 2.5 22.5 open 1 open 2 open 5 open 6 units box #region rwallsz block EDGE EDGE -11.88 11.88 2.5 22.5 open 1 open 2 open 3 open 4 open 5 units box # #fix lywall liquid wall/region lwallsy lj93 0.03377 3.91 10 #fix lzwall liquid wall/region lwallsz lj93 0.03377 3.91 10 # #fix rywall liquid wall/region rwallsy lj93 0.03377 3.91 10 #fix rzwall liquid wall/region rwallsz lj93 0.03377 3.91 10 #fix zrest graphene spring/self 10000.0 fix zrest1 graphene1 spring/self 10.0 xy fix zrest2 graphene2 spring/self 10.0 xy fix_modify zrest1 energy yes fix_modify zrest2 energy yes thermo 1000 reset_timestep 0 timestep 1 fix int all nve fix lt liquid temp/csvr 298 298 100 1919 fix gt1 graphene1 temp/csvr 298 298 100 810 fix gt2 graphene2 temp/csvr 298 298 100 114 dump eqtraj all custom 5000 eq.dump id type x y z #fix pmf1 graphene1 ave/time 1 100000 100000 f_zrest1 file pmf1.txt mode scalar #fix pmf2 graphene2 ave/time 1 100000 100000 f_zrest2 file pmf2.txt mode scalar fix eabf all colvars colvars.in seed 114514 tstat gt1 #fix pmf all ave/time 1 50000 50000 f_zrest file pmf.txt mode scalar compute g1temp graphene1 temp compute g2temp graphene2 temp compute ltemp liquid temp #min_style quickmin #minimize 1.0e-4 1.0e-6 10000000 1000000000 thermo_style custom time c_ltemp c_g1temp c_g2temp f_zrest1 f_zrest2 press restart 100 xiafeng.restart xiafeng.restart run 50000000 #group2ndx gra.ndx graphene1 graphene2 write_restart xiafeng.restart write_data xiafeng.data |
colvars的输入脚本如下: colvarsTrajFrequency 1000 colvarsRestartFrequency 1000 units real indexFile gra.ndx colvar { name r width 0.1 lowerboundary 1 upperboundary 31 extendedlagrangian on extendedFluctuation 0.1 extendedTimeConstant 200 distance { group1 { indexGroup graphene1 } group2 { indexGroup graphene2 } } } harmonicWalls { name mywalls colvars r lowerWalls 1 1 upperWalls 31 31 forceConstant 20 } abf { colvars r fullSamples 1000 historyfreq 1000000 writeCZARwindowFile } |
手机版 Mobile version|北京科音自然科学研究中心 Beijing Kein Research Center for Natural Sciences|京公网安备 11010502035419号|计算化学公社 — 北京科音旗下高水平计算化学交流论坛 ( 京ICP备14038949号-1 )|网站地图
GMT+8, 2025-8-16 02:29 , Processed in 0.193773 second(s), 31 queries , Gzip On.