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

 

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

                              msg="How may steps to run"

 

#load force field

include "loadff.inc"

 

#load MSF built previously

loadmsf file="step2_solvbox.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="step4_equil_npt.trj" frqtrj=250 \

     enefile="step4_equil_npt.ene" frqene=10 \

     rstfile="step4_equil_npt.rst" frqrst=100000 \

     flushene=true \

     randseed=314159 randtype=old \

     frqresort=20000

 

#load state from NVT simulation

loadstate file="step4_equil_nvt.rst" coordvelonly=true

      

#save MD core

savemds file="step4_equil_npt.mds"

 

if($nstep==0){

  echo -hs "please run MD by command"

  echo -hs " ./modar step4_equil_npt.mds nstepmore=500000"

  stop

}

 

#run MD

runmd nstep=$nstep

     

savemsf file="step4_equil_npt.msf"

savepdb file="step4_equil_npt.pdb"

 

 

 


  • Please read the comments first.

 

 

 

  Contact us

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

 

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