Good afternoon LAMMPS users,
Undergraduate student from UCF here trying to compare molecular dynamics results to a larger scale simulation for tension and compression test of Mg. I’m currently trying to run a 2 part box as shown in the code below however the simulation seems to be taking an excessive amount of time. I’m using the most recent windows version of LAMMPS and executing it using a lmp_mpi -in in.xxx format. I’ve attempted using the mpiexec -localonly #4 lmp_mpi -in in.xxxx format only to run into an error 109, unable to start the local smpd manager. Any insight on how to fix this error or run the code below more efficiently? Thank you.
Kind Regards
Jonathan Sosa
units metal
atom_style atomic
dimension 3
boundary p p p
variable latconst equal 3.20
lattice hcp {latconst}
region cube block 0 20 0 20 0 20
create_box 1 cube
lattice hcp {latconst} orient x 1 0 0 orient y 0 1 0 orient z 0 0 1
create_atoms 1 region cube
pair_style eam/fs
pair_coeff * * Mg.eam.fs Mg
variable L equal 128
variable dy equal 12.8
variable y1 equal -0.0
variable y2 equal {dy}
region Lower block INF INF {y1} {y2} INF INF units box
group Lower region Lower
variable y1 equal {L}-{dy}
variable y2 equal {L}
region Upper block INF INF {y1} {y2} INF INF units box
group Upper region Upper
group boundary union Lower Upper
group middle_atoms subtract all boundary
velocity all create 0.01 511124 rot yes mom yes
compute peratom all stress/atom pair virial
compute fy all reduce sum &
c_peratom[1] c_peratom[2] c_peratom[3] &
c_peratom[4] c_peratom[5] c_peratom[6]
compute p all reduce sum c_peratom[1] c_peratom[2] c_peratom[3]
variable sigmavolume equal c_fy[2]/vol
variable strain equal (ly-v_L)/v_L
variable press equal -(c_p[1]+c_p[2]+c_p[3])/(3*vol)
thermo 10000
thermo_style custom step ly vol v_strain v_sigmavolume temp etotal press v_press
fix relax all nvt temp 0.01 0.01 .01
timestep 0.005
run 500
unfix relax
variable upper_vel equal 0.01
fix zeroing_force_on_lower Lower setforce 0.0 0.0 0.0
fix zeroing_force_on_upper Upper setforce 0.0 0.0 0.0
velocity Lower set 0.0 0.0 0.0 units box
velocity Upper set 0.0 ${upper_vel} 0.0 units box
fix fix1 middle_atoms nvt temp 0.01 0.01 0.01
fix fix2 boundary nve
run 300000
velocity Upper set 0 0 0
run 1000
print “All done”