Hi all,
I am Raj Kumar Ramamoorthy, an experimental nanoscience researcher working on the nucleation and growth of nanoparticles. To complement my experimental work, I am beginning to use the LAMMPS simulation tool. My initial project involves simulating the stable polymorph crystal structure of NaYF4, for which I have constructed a cubic phase with Na at the corners, Y at face-centered positions, and F at tetrahedral sites.
3d NaYF4 minization
#–Initialization
units metal
#The units command also sets the timestep size and neighbor skin distance to default values for #each style: For style real these are dt = 1.0 femtoseconds and skin = 2.0 Angstroms.
dimension 3
boundary p p p
atom_style atomic
#–Variable
variable latpara equal 5.47
variable material string NaYF4
#-- Atom definition and creation of simulation box
lattice custom ${latpara} &
a1 1 0 0 &
a2 0 1 0 &
a3 0 0 1 &
basis 0 0 0 &
basis 0.5 0.5 0 &
basis 0.5 0 0.5 &
basis 0 0.5 0.5 &
basis 0.25 0.25 0.25 &
basis 0.75 0.25 0.25 &
basis 0.25 0.75 0.25 &
basis 0.75 0.75 0.25 &
basis 0.25 0.25 0.75 &
basis 0.75 0.25 0.75 &
basis 0.25 0.75 0.75 &
basis 0.75 0.75 0.75 &
region box block 0 2 0 2 0 2
unit cell
create_box 3 box
3 kinds of atoms
create_atoms 1 box &
basis 1 1
fill with 1 atoms # no & is needed
create_atoms 2 box &
basis 2 2 &
basis 3 2 &
basis 4 2
fill with 2 atoms
create_atoms 3 box &
basis 5 3 &
basis 6 3 &
basis 7 3 &
basis 8 3 &
basis 9 3 &
basis 10 3 &
basis 11 3 &
basis 12 3
fill with 3 atoms
mass 1 22.9898
mass 2 88.9059
mass 3 18.9984
pair_style buck 2.5
pair_coeff 1 1 0 1 0
pair_coeff 1 2 0 1 0
pair_coeff 1 3 1094.2 0.2709 0
pair_coeff 2 2 0 1 0
pair_coeff 2 3 1568.9 0.2950 0
pair_coeff 3 3 1127.7 0.2753 15.83
#minimize 1.0e-4 0.001 10 100
energy force iteration
velocity all create 300 1029329 dist gaussian
fix 1 all nvt temp 300 300 100
thermo 5
thermo_style custom step temp pe
run 10
unfix 1
While the above code runs without errors, I am having difficulty interpreting the log file and output.
- My expectations were to generate 8 unit cells, resulting in 64 Na, 48 Y, and 64 F atoms. However, the simulation yields 96 atoms for each element.
- Furthermore, the potential energy at the 0th step is NaN, and the temperature tends towards NaN during the simulation.
I would be grateful for any guidance on these outputs to refine my simulation scripts.