- adding a force/clear equivalent for spins in verlet/kk
- setting all validation problems for spin/kk
This commit is contained in:
@ -6,7 +6,7 @@ import matplotlib.pyplot as plt
|
||||
import mpmath as mp
|
||||
|
||||
hbar=0.658212 # Planck's constant (eV.fs/rad)
|
||||
# J0=0.05 # per-neighbor exchange interaction (eV)
|
||||
J0=0.05 # per-neighbor exchange interaction (eV)
|
||||
|
||||
# exchange interaction parameters
|
||||
J1 = 11.254 # in eV
|
||||
|
||||
@ -4,12 +4,12 @@
|
||||
rm res_*.dat
|
||||
|
||||
# test standard Lammps
|
||||
# ./../../../../src/lmp_serial \
|
||||
# -in test-spin-precession.in
|
||||
./../../../../src/lmp_serial \
|
||||
-in test-spin-precession.in
|
||||
|
||||
# test spin/kk with Kokkos Lammps
|
||||
mpirun -np 1 ../../../../src/lmp_kokkos_mpi_only \
|
||||
-k on -sf kk -in test-spin-precession.in
|
||||
# mpirun -np 1 ../../../../src/lmp_kokkos_mpi_only \
|
||||
# -k on -sf kk -in test-spin-precession.in
|
||||
|
||||
# extract data from Lammps run
|
||||
in="$(grep -n Step log.lammps | awk -F ':' '{print $1}')"
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
#LAMMPS in.run
|
||||
|
||||
units metal
|
||||
# atom_style spin
|
||||
atom_style spin/kk
|
||||
atom_style spin
|
||||
# atom_style spin/kk
|
||||
atom_modify map array
|
||||
boundary f f f
|
||||
shell echo "test1"
|
||||
|
||||
@ -3,9 +3,15 @@
|
||||
# clean old res
|
||||
rm res_*.dat
|
||||
|
||||
# compute Lammps
|
||||
# test standard Lammps
|
||||
./../../../../src/lmp_serial \
|
||||
-in test-spin-precession.in
|
||||
|
||||
# test spin/kk with Kokkos Lammps
|
||||
# mpirun -np 1 ../../../../src/lmp_kokkos_mpi_only \
|
||||
# -k on -sf kk -in test-spin-precession.in
|
||||
|
||||
# extract data from Lammps run
|
||||
in="$(grep -n Step log.lammps | awk -F ':' '{print $1}')"
|
||||
en="$(grep -n Loop log.lammps | awk -F ':' '{print $1}')"
|
||||
in="$(echo "$in+1" | bc -l)"
|
||||
|
||||
@ -2,6 +2,7 @@
|
||||
|
||||
units metal
|
||||
atom_style spin
|
||||
# atom_style spin/kk
|
||||
atom_modify map array
|
||||
boundary f f f
|
||||
|
||||
|
||||
@ -12,7 +12,14 @@ do
|
||||
temp="$(echo "$tempi+$i*($tempf-$tempi)/$N" | bc -l)"
|
||||
sed s/temperature/${temp}/g test-prec-spin.template > \
|
||||
test-prec-spin.in
|
||||
|
||||
# test standard Lammps
|
||||
./../../../../src/lmp_serial -in test-prec-spin.in
|
||||
|
||||
# test spin/kk with Kokkos Lammps
|
||||
# mpirun -np 1 ../../../../src/lmp_kokkos_mpi_only \
|
||||
# -k on -sf kk -in test-prec-spin.in
|
||||
|
||||
Hz="$(tail -n 1 average_spin | awk -F " " '{print $3}')"
|
||||
sz="$(tail -n 1 average_spin | awk -F " " '{print $5}')"
|
||||
en="$(tail -n 1 average_spin | awk -F " " '{print $6}')"
|
||||
|
||||
@ -2,6 +2,7 @@
|
||||
|
||||
units metal
|
||||
atom_style spin
|
||||
# atom_style spin/kk
|
||||
atom_modify map array
|
||||
boundary p p p
|
||||
|
||||
|
||||
@ -50,5 +50,5 @@ thermo 200
|
||||
compute outsp all property/atom spx spy spz sp fmx fmy fmz
|
||||
dump 1 all custom 10 dump_iron.lammpstrj type x y z c_outsp[1] c_outsp[2] c_outsp[3]
|
||||
|
||||
# run 100000
|
||||
run 10000
|
||||
run 100000
|
||||
# run 1
|
||||
|
||||
@ -3,10 +3,14 @@
|
||||
# clean old res
|
||||
rm res_*.dat
|
||||
|
||||
# compute Lammps
|
||||
# test standard Lammps
|
||||
../../../../src/lmp_serial -in in.spin.iron-nve
|
||||
|
||||
# test spin/kk with Kokkos Lammps
|
||||
# mpirun -np 1 ../../../../src/lmp_kokkos_mpi_only \
|
||||
# -k on -sf kk -in in.spin.iron-nve
|
||||
../../../../src/lmp_serial -in in.spin.iron-nve
|
||||
|
||||
# extract data from Lammps run
|
||||
in="$(grep -n Step log.lammps | awk -F ':' '{print $1}')"
|
||||
en="$(grep -n Loop log.lammps | awk -F ':' '{print $1}')"
|
||||
in="$(echo "$in+1" | bc -l)"
|
||||
|
||||
@ -3,6 +3,7 @@
|
||||
clear
|
||||
units metal
|
||||
atom_style spin
|
||||
# atom_style spin/kk
|
||||
|
||||
dimension 3
|
||||
boundary p p p
|
||||
|
||||
@ -3,6 +3,7 @@
|
||||
clear
|
||||
units metal
|
||||
atom_style spin
|
||||
# atom_style spin/kk
|
||||
|
||||
dimension 3
|
||||
boundary p p p
|
||||
|
||||
@ -3,16 +3,32 @@
|
||||
# clean old res
|
||||
rm res_*.dat
|
||||
|
||||
# compute NVT Spin -> Lattice
|
||||
### compute NVT Spin -> Lattice
|
||||
|
||||
# test standard Lammps
|
||||
./../../../../src/lmp_serial -in in.spin.nvt_spin
|
||||
|
||||
# test spin/kk with Kokkos Lammps
|
||||
# mpirun -np 1 ../../../../src/lmp_kokkos_mpi_only \
|
||||
# -k on -sf kk -in in.spin.nvt_spin
|
||||
|
||||
# extract data from Lammps run
|
||||
in="$(grep -n Step log.lammps | awk -F ':' '{print $1}')"
|
||||
en="$(grep -n Loop log.lammps | awk -F ':' '{print $1}')"
|
||||
in="$(echo "$in+1" | bc -l)"
|
||||
en="$(echo "$en-$in" | bc -l)"
|
||||
tail -n +$in log.lammps | head -n $en > res_nvt_spin.dat
|
||||
|
||||
# compute NVT Lattice -> Spin
|
||||
### compute NVT Lattice -> Spin
|
||||
|
||||
# test standard Lammps
|
||||
./../../../../src/lmp_serial -in in.spin.nvt_lattice
|
||||
|
||||
# test spin/kk with Kokkos Lammps
|
||||
# mpirun -np 1 ../../../../src/lmp_kokkos_mpi_only \
|
||||
# -k on -sf kk -in in.spin.nvt_lattice
|
||||
|
||||
# extract data from Lammps run
|
||||
in="$(grep -n Step log.lammps | awk -F ':' '{print $1}')"
|
||||
en="$(grep -n Loop log.lammps | awk -F ':' '{print $1}')"
|
||||
in="$(echo "$in+1" | bc -l)"
|
||||
|
||||
Reference in New Issue
Block a user