I am trying to simulate the Zinc oxide bulk structure (periodic) at constant pressure(0.0 ~ 20.0 GPa) to observe phase transition with LAMMPS.
However, I approached a problem that the fluctuating pressure in each step of optimisation and importantly the final step of the optimisation does not have the value of pressure that I set.
*5th-edit: the problem is solved *
The last step of the pressure is not the exact the pressure that I set for which presumably a form of showing residual force of minimisation. Basically, it went down to the basin but not exactly the lowest point of the basin with a certain tolerance.
Primarily the calculation went wrong because I have used wrongly formatted structure data in the read_data command. The wrong data file was produced by three different software... which was very unlucky...
I sincerely apologise for the question as I made many people confused.
Here is my input:
units metal
atom_style charge
dimension 3
boundary p p p
#box tilt large # allow lammps to have large tilt facotr (xy yz xz)
read_data data.3_iso0.0
#replicate 3 3 3
pair_style comb3 polar_off
pair_coeff * * ./lammps_ip Zn O
neighbor 2.0 bin
neigh_modify every 1 delay 0 check yes
set type 1 charge 2.0 # Zn
set type 2 charge -2.0 # O
##############################################################
# type of output data #
##############################################################
fix 1 all qeq/comb 2 0.00003 file fq.out
fix 2 all box/relax iso 0.0 # Pressure = unit [bars], 1 GPa = 10,000 bars, Constant pressure
thermo 1
thermo_style custom step press temp enthalpy etotal pe ke evdwl ecoul cella cellb cellc cellalpha cellbeta cellgamma
#min_style cg
minimize 0 0.0 10000 10000
min_modify line quadratic
write_data data.* #produce file for "read_data" command
print " All done "
The corresponding output data is:
Step Press c_1 v_press Temp v_etot v_relax TotEng PotEng KinEng
1157 -186.71231 -186.71231 -186.71231 0 -2.9709191 0 -2.9709191 -2.9709191 0
1158 -128.7401 -128.7401 -128.7401 0 -2.9709192 0 -2.9709192 -2.9709192 0
1159 -124.22057 -124.22057 -124.22057 0 -2.9709192 0 -2.9709192 -2.9709192 0
Loop time of 464.543 on 1 procs for 1159 steps with 216 atoms
99.9% CPU use with 1 MPI tasks x 1 OpenMP threads
Minimization stats:
Stopping criterion = linesearch alpha is zero
Energy initial, next-to-last, final =
-2.25448773082 -2.97091924357 -2.97091924466
Force two-norm initial, final = 351.736 2.00988
Force max component initial, final = 342.312 0.805865
Final line search alpha, max atom move = 4.67711e-07 3.76912e-07
Iterations, force evaluations = 1159 1175