Files
lammps/examples/mliap/in.mliap.so3.nn.Si
2021-06-13 17:40:00 -04:00

53 lines
1.2 KiB
Plaintext

# Run NPT MD simulation for Si at 500 K.
variable nsteps index 100 #0
# NOTE: These are not intended to represent real materials
units metal
atom_style atomic
atom_modify map array
boundary p p p
atom_modify sort 0 0.0
#read_data Si.data
lattice diamond 5.43
region box block 0 2 0 2 0 2
create_box 1 box
create_atoms 1 box
mass 1 29.0
# temperature
variable t equal 500.
# Potential
#pair_style mliap model nn Si-snap/NN_weights.txt descriptor sna Si-snap/DescriptorParam.txt
pair_style mliap model nn Si.nn.mliap.model descriptor so3 Si.nn.mliap.descriptor
pair_coeff * * Si Si
# Set-up output
compute eatom all pe/atom
compute energy all reduce sum c_eatom
compute satom all stress/atom NULL
compute str all reduce sum c_satom[1] c_satom[2] c_satom[3]
variable press equal (c_str[1]+c_str[2]+c_str[3])/(3*vol)
thermo_style custom step temp epair c_energy etotal press v_press
thermo 10
thermo_modify norm yes
# Set up NVE run
timestep 0.5e-3
neighbor 1.0 bin
neigh_modify once no every 1 delay 0 check yes
# Run MD
velocity all create $t 5287287 loop geom
fix 1 all npt temp ${t} ${t} 0.2 iso 0.0 0.0 2
run ${nsteps}