Files
lammps/examples/SPIN/test_problems/validation_damped_precession/run-test-prec.sh
julient31 51e3f9dcda Commit JT 033020
- modified all spin pairs (match nve)
- correct doc min_modify
- correct code max norm (square values)
- added draft nvt validation
2020-03-30 08:09:11 -06:00

20 lines
484 B
Bash
Executable File

#!/bin/bash
# clean old res
rm res_*.dat
# compute Lammps
./../../../../src/lmp_serial \
-in test-spin-precession.in
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_lammps.dat
# compute Langevin
python3 llg_precession.py > res_llg.dat
# plot results
python3 plot_precession.py res_lammps.dat res_llg.dat