Files
lammps/examples/mdi/in.series.driver
2022-06-15 17:08:54 -06:00

44 lines
814 B
Plaintext

# 3d Lennard-Jones melt - MDI driver script
variable x index 5
variable y index 5
variable z index 5
variable rho index 0.7 0.8 0.9
mdi connect
label LOOP
units lj
atom_style atomic
lattice fcc ${rho}
region box block 0 $x 0 $y 0 $z
create_box 1 box
create_atoms 1 box
mass 1 1.0
displace_atoms all random 0.1 0.1 0.1 48294
neighbor 0.3 bin
neigh_modify delay 0 every 1 check yes
fix 1 all mdi/qm add no virial yes connect no
variable epress equal (f_1[1]+f_1[2]+f_1[3])/3
thermo_style custom step temp f_1 v_epress f_1[1] f_1[2] f_1[3]
run 0
write_dump all custom dump.series.driver &
id type x y z f_1[1] f_1[2] f_1[3] modify sort id append yes
clear
next rho
jump SELF LOOP
mdi exit