Modar Tutorial
Example 3: Ionic Liquid Simulation
     step9_melting.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="step8_equil_npt.msf"

 

#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=48 fty=48 ftz=144 bsorder=6

 

 

#langevin-piston NPT coupling

tell tmass #print total mass, and put total mass number to $totmass

set pmass = int($totmass/50.0)

 

ensemble npt pmass=$pmass pgamma=20.0 \

         pxx=1.0 pyy=1.0 pzz=1.0 \

         pmzz=0 \ #constant box size in Z

         tbath=300.0 tref=300.0 tmass=2000

 

 

#build MD core

build mdcore timestep=0.002 nprint=250 \

     trjfile="step9_meshing.trj" frqtrj=250 \

     enefile="step9_meshing.ene" frqene=10 \

     rstfile="step9_meshing.rst" frqrst=100000 \

     flushene=true \

     randseed=314159 randtype=old \

     frqresort=20000

 

     

#save MD core

savemds file="step9_meshing.mds"

 

if($nstep==0){

  echo -hs "please run MD by command"

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

  stop

}

 

#run MD

runmd nstep=$nstep

  • Please read the comments first.

 

 

 

  Contact us

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

 

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