Hello LAMMPS community
In the beginning many thanks for your assistances , I tried to create triclinic box but I didn’t success in my purpose. When I opened the dump file it showed me that it was an ortho simulation box !, in below, I drop my LAMMPS code, I’ll be very happy if you tell me in which part I did mistake. Also my data file include triclinic box.
Many thanks
echo both
dimension 3
boundary p p p
units metal
atom_style charge
timestep 0.0001
atom_modify map array sort 0 0.0
neighbor 3.0 nsq
neigh_modify delay 0 every 1 check yes
region 1 prism -4.40215 22.01075 -7.6247474625 15.2494949251 0.0 22.7585 -13.20645 0.0 0.0
create_box 4 1
region 2 prism -4.40215 22.01075 -7.6247474625 15.2494949251 0.0 22.7585 -13.20645 0.0 0.0
read_data NaZr2P3O12.data add append
mass 1 15.9994 #O
mass 2 30.973761 #P
mass 3 91.224 #Zr
mass 4 22.98977 #Na
pair_style lj/cut/coul/long 12 14
pair_coeff 1 1 0.0026 3.500 #O_O
pair_coeff 2 2 0.0132 4.147 #P_P
pair_coeff 3 3 0.003 3.124 #Zr_Zr
pair_coeff 4 4 0.0013 2.983 #Na_Na
pair_modify mix arithmetic
group Oxygen type 1
group phosphorus type 2
group zirconium type 3
group Sodium type 4
set type 1 charge -2.0
set type 2 charge 5.0
set type 3 charge 4.0
set type 4 charge 1.0
kspace_style ewald 1.0e-6
kspace_modify gewald 1.0e-6
dump befor_min all xyz 1 dump(min).xyz
dump_modify befor_min element O P Zr Na
fix MM all box/relax tri 0.0 vmax 0.001
min_style cg
minimize 1.0e-12 1.0e-12 10000 10000
unfix MM
velocity all create 1400 2547913 mom yes rot yes
undump befor_min
dump after_min all xyz 1000 dump.npt.xyz
dump_modify after_min element O P Zr Na
thermo_style custom step temp etotal pxx pyy pzz
thermo 1000
fix NPT all npt temp 1400 1400 0.01 x 0 0 1 y 0 0 1 z 0 0 1 xy 0 0 1 xz 0 0 1 yz 0 0 1
run 1000