Skip to content

Latest commit

 

History

History
173 lines (151 loc) · 4.62 KB

md.md

File metadata and controls

173 lines (151 loc) · 4.62 KB

Molecular dynamics

back to main page

A typical INPUT file for MD simulation is given below, which contains additional keywords that need to added.

INPUT_PARAMETERS
#Parameters (1.General)
pseudo_dir          ./
ntype               1
nbands              600
pseudo_type         upf
gamma_only          1

#Parameters (2.Methods)
calculation         md
symmetry            0

nstep               10
out_level           m
move_method         cg

smearing            gaussian
sigma               0.02
#Parameters (3.PW)
ecutwfc             30
dr2                 1e-5
niter               100

#Parameters (5.LCAO)
basis_type          lcao
mixing_beta         0.4
charge_extrap       second-order

md_mdtype           1    //choose ensemble
md_dt               1    //time step
md_tfirst           700  //the first target temperature
md_rstmd            0    //whether restart md
md_qmass            1    //mass of themostat
md_dumpmdfred       10   //The period to dump MD information for monitoring and restarting MD

These MD parameters means that ABACUS will use NVT ensemble with Nosé-hoover themostat; the time step is 1fs, and target temperature is 700K; start renew without restart file, set the mass of themostat as 1g/mol, and calculate the MSD and diffusion coefficent from first step.

Note: Please turn off symmetry when do MD simulation.

  • md_mdtype : 0, NVE; 1, NVT; 2, velocity scaling
  • md_dt : time step in md simulation (fs)
  • md_tfirst : target temperature in md simulation(K), you should set parameter md_tlast and md_fixtemperature when you want to change temperature during md simulation.
  • md_rstmd : 0, no need of restart ; 1, restart with restart file, you must repalce STRU file with STRU_MD before you run the restart task.
  • md_qmass : mass of thermostat, set by experience, if you don’t know how to set, set it to 0 will have a number autosetted by ABACUS
  • md_dumpmdfred : frequency for output consequence of md simulation

The STRU file is:

ATOMIC_SPECIES
Sn 118.71  ./Sn.pz-bhs.UPF 

LATTICE_CONSTANT
23.45378

NUMERICAL_ORBITAL
./Sn_pz-bhs_8.0au_16Ry_2s2p1d

LATTICE_VECTORS
1.00000       0.0000000      0.000000
0.000000      1.0000000      0.00000
0.00000       0.00000000     1.00000

ATOMIC_POSITIONS
Direct 

Sn
0.0
64
0	0	0	1	1	1
0	0.25	0.25	1	1	1
0.25	0	0.25	1	1	1
0.25	0.25	0	1	1	1
0.375	0.125	0.375	1	1	1
0.125	0.125	0.125	1	1	1
0.125	0.375	0.375	1	1	1
0.375	0.375	0.125	1	1	1
0.5	0	0	1	1	1
0.5	0.25	0.25	1	1	1
0.75	0	0.25	1	1	1
0.75	0.25	0	1	1	1
0.875	0.125	0.375	1	1	1
0.625	0.125	0.125	1	1	1
0.625	0.375	0.375	1	1	1
0.875	0.375	0.125	1	1	1
0	0.5	0	1	1	1
0	0.75	0.25	1	1	1
0.25	0.5	0.25	1	1	1
0.25	0.75	0	1	1	1
0.375	0.625	0.375	1	1	1
0.125	0.625	0.125	1	1	1
0.125	0.875	0.375	1	1	1
0.375	0.875	0.125	1	1	1
0.5	0.5	0	1	1	1
0.5	0.75	0.25	1	1	1
0.75	0.5	0.25	1	1	1
0.75	0.75	0	1	1	1
0.875	0.625	0.375	1	1	1
0.625	0.625	0.125	1	1	1
0.625	0.875	0.375	1	1	1
0.875	0.875	0.125	1	1	1
0	0	0.5	1	1	1
0	0.25	0.75	1	1	1
0.25	0	0.75	1	1	1
0.25	0.25	0.5	1	1	1
0.375	0.125	0.875	1	1	1
0.125	0.125	0.625	1	1	1
0.125	0.375	0.875	1	1	1
0.375	0.375	0.625	1	1	1
0.5	0	0.5	1	1	1
0.5	0.25	0.75	1	1	1
0.75	0	0.75	1	1	1
0.75	0.25	0.5	1	1	1
0.875	0.125	0.875	1	1	1
0.625	0.125	0.625	1	1	1
0.625	0.375	0.875	1	1	1
0.875	0.375	0.625	1	1	1
0	0.5	0.5	1	1	1
0	0.75	0.75	1	1	1
0.25	0.5	0.75	1	1	1
0.25	0.75	0.5	1	1	1
0.375	0.625	0.875	1	1	1
0.125	0.625	0.625	1	1	1
0.125	0.875	0.875	1	1	1
0.375	0.875	0.625	1	1	1
0.5	0.5	0.5	1	1	1
0.5	0.75	0.75	1	1	1
0.75	0.5	0.75	1	1	1
0.75	0.75	0.5	1	1	1
0.875	0.625	0.875	1	1	1
0.625	0.625	0.625	1	1	1
0.625	0.875	0.875	1	1	1
0.875	0.875	0.625	1	1	1

The KPT file is:

K_POINTS
0
Gamma
1 1 1 0 0 0

Run the program, and see results in the output directory. The following files are about MD:

  • md_pos_$num.cif optimized structure in direct coordinate
  • MD_RESTART output the information of md for restart
  • STRU_MD if you want to restart md, you must replace the STRU with this file.

MD information can be found in file running_md.log or in file MD_OUT

--------------------------------------------------
Molecular Dynamics (NVT) STEP +10
--------------------------------------------------
--------------------------------------------------
SUMMARY OF NVT CALCULATION
--------------------------------------------------
NVT Conservation     : -450.943151 (Rydberg) //total energy of system
NVT Temperature      : +689.931183 (K) //temperature at this second
NVT Kinetic energy   :  +0.419483 (Rydberg) //kinetic energy of system
NVT Potential energy : -452.902847 (Rydberg) //potential energy of system

Check these information to confirm whether temperature and conservation is steady.

back to top