Modar Tutorial
Example 3: Ionic Liquid Simulation
     step6.1_equil_npt.inp

 

if(! -var nstep) getvar nstep default=50000 min=1000 \

                              msg="How may steps to run"

 

#load force field

include "loadff.inc"

 

#load MSF built previously

loadmsf file="step5_largebox.msf"

 

#setup crystal/pbc box

include "pbc.inc"

 

#image groups

imggroup method=resid sorted=true select="all"

 

#constraint

shake type=bondH tol=1e-6 scale=1.0 maxite=500 ref=para

 

#nonbond setup

nonbond type=pme nblcutoff=10.0 nbcutoff=8.0 swcutoff=7.0 eps=1.0 \

        beta=0.34 ftx=$fftx fty=$ffty ftz=$fftz bsorder=6

 

#NPT setup

include "nptc.inc"

 

#build MD core

build mdcore timestep=0.002 nprint=100 \

     trjfile="step6_equil_npt.trj" frqtrj=250 \

     enefile="step6_equil_npt.ene" frqene=10 \

     rstfile="step6_equil_npt.rst" frqrst=100000 \

     flushene=true \

     randseed=314159 randtype=old \

     frqresort=20000

 

#load state from NVT simulation

loadstate file="step6_equil_nvt.rst" coordvelonly=true

     

#save MD core

savemds file="step6_equil_npt.mds"

 

if($nstep==0){

  echo -hs "please run MD by command"

  echo -hs " ./modar step6_equil_npt.mds nstepmore=50000"

  stop

}

 

#run MD

runmd nstep=$nstep

     

#transform all residues to the primary box

img2box

 

savemsf file="step6_equil_npt.msf"

savepdb file="step6_equil_npt.pdb"

  • Please read the comments first.

 

 

 

  Contact us

  Phone: 400-660-8656
  Email: support@beemd.org

 

       我们长期和北京市计算中心合作提供计算培训服务,承接托管计算业务,如有需求请随时联系我们。