Files
lammps/examples/PACKAGES/pedone/in.pedone.relax
2024-04-09 22:08:30 -04:00

39 lines
919 B
Plaintext

# Ca-O crystal with Pedone potential
units metal
atom_style charge
lattice fcc 4.8105 # experimental lattice parameter for fcc-lattice Ca cations
region box block 0 4 0 4 0 4
create_box 2 box
create_atoms 1 box
lattice fcc 4.8105 origin 0.5 0.5 0.5 # O anion lattice shifted by half a unit cell
create_atoms 2 box
mass 1 40.078
mass 2 15.999
displace_atoms all random 0.01 0.01 0.01 9084544
set type 1 charge 1.2
set type 2 charge -1.2
timestep 0.002
neigh_modify delay 5 every 1 check yes
pair_style hybrid/overlay pedone 15.0 coul/long 15.0
kspace_style pppm 1.0e-6
pair_coeff * * coul/long
pair_coeff 1 2 pedone 0.030211 2.241334 2.923245 5.0
pair_coeff 2 2 pedone 0.042395 1.379316 3.618701 22.0
variable len equal lx*0.25
thermo_style custom step v_len lx pe press
thermo 100
fix 1 all box/relax iso 0.0
minimize 0.0 0.0 1000 10000
print "Expected lattice parameter: 4.7748, computed: $(v_len:%6.4f)"