Hi,
I am using the latest version of lammps (16th Feb 2016) and computing occupation in irradiation simulations in tungsten using the command
compute vacint cascade voronoi/atom occupation
While writing the output, after 36400 steps, the program crashes with the error:
APPLICATION TERMINATED WITH THE EXIT STRING: Segmentation fault (signal 11)
/home/maya/maya_lammps/lammps_debug_segfault
If I remove the occupation calculation, it works fine.
Could you suggest where did it go wrong?
The segfault happens when i invoke dump 5, the printing of occupation of final cascade after 36400 steps.
The input script is:
# LAMMPS Input File for BCC unit cell lattices
# ---------- Setup Variables ---------------------
variable latparam equal 3.1652
# ---------- Initialize Simulation ---------------------
clear
units metal
dimension 3
boundary p p p
atom_style atomic
# ---------- Create Atomistic Structure ---------------------
lattice bcc {latparam}**
**region box block 0.000000 221.494 0.00 221.494 0.000000 221.494 units box**
**create_box 2 box**
**lattice bcc {latparam} orient x 1 0 0 orient y 0 1 0 orient z 0 0 1
create_atoms 2 box
region reg_PKA sphere 110.5 110.5 110.5 1.45 units box
#mass * 183.84
# ---------- Define Interatomic Potential ---------------------
pair_style eam/fs
pair_coeff * * W_Dudarev.Bjorkas.eam.fs W W
neighbor 2.0 bin
neigh_modify delay 10 check yes
#------------Define regions------------------
region reg_all block INF INF INF INF INF INF units box
region reg_interior block 4 217 4 217 4 INF units box
region reg_exterior block 4 217 4 217 4 INF side out units box
#-----------Define groups-------------------
group cascade region reg_interior
group thermostat region reg_exterior
group PKA region reg_PKA
# ---------- Define Settings ---------------------
compute eng all pe/atom
compute eatoms all reduce sum c_eng
compute alltemp all temp
compute 2 cascade coord/atom 2.2
compute kecascade cascade ke/atom
compute vacint cascade voronoi/atom occupation
compute volu cascade voronoi/atom
#---------------------Equilibration settings------------------
#velocity all create 300.0 34986 # initialize atom velocities to temperature, seed random num generator
fix 1 all nve
fix 2 thermostat temp/rescale 1 300.0 300.0 0.5 1.0 region reg_exterior
fix 3 cascade temp/rescale 1 300.0 300.0 0.5 1.0 region reg_interior
#fix 240 all recenter INIT INIT INIT units box
thermo 100
thermo_style custom step temp pe etotal press
run 1000 # run the equilibriation phase
unfix 3 # remove the rescaling fix from the interior
dump 90 all custom 500 initial_coordinates.dat id type x y z vx vy vz
#dump 60 cascade custom 500 initial_energy.dat id type c_kecascade c_vacint[1] c_vacint[2] c_volu[1]
run 1000 # continue to equilibriate
undump 90
#undump 60
#----------------------Define PKA settings-----------------------
# set PKA velocity to correspond to ~ 20 keV -1474.4Ang/ps
velocity PKA set 619.891696 57.999341 808.557871 units box
#set group PKA vx 10.0 units box
#set group PKA vy 13.0 units box
#set group PKA vz -329.19 units box
#---------------------Defining initial time step----------------------
# set timestep to smaller value for initial phase of collisions (.01 fs for .2 ps)
timestep 0.00001
thermo 100
#dump 1 cascade custom 100 test_init_col.dump x y z c_2 type c_3
#dump 2 PKA custom 100 PKA_traj_init_col.dump x y z c_2 type c_4
#dump 1 cascade custom 100 initial_cascade.dump id x y z c_kecascade c_vacint[1] c_vacint[2] c_volu[1]
dump 2 PKA custom 100 initial_pka.dump id x y z vx vy vz
#dump 10 cascade xyz 100 initial_cascade.xyz
run 20000 # run the collisional phase for .2 ps
# run intermediate phase with intermediate timestep (.1 fs for 1 ps)
timestep 0.0001
#undump 1
undump 2
#dump 3 cascade custom 100 test_inter_evolve.dump x y z c_3 type c_2
#dump 4 PKA custom 100 PKA_traj_inter_evolve.dump x y z c_3 type c_2
#dump 3 cascade custom 100 inter_cascade.dump id x y z c_kecascade c_vacint[1] c_vacint[2] c_volu[1]
dump 4 PKA custom 100 inter_pka.dump id x y z vx vy vz
#dump 30 cascade xyz 100 inter_cascade.xyz
run 10000
# after initial phase, let evolve for remainder of time using .001 ps timestep (1 fs for 10 ps)
#undump 3 # close the previous dumps
undump 4
timestep 0.001
#dump 5 cascade custom 200 test_final_evolve.dump x y z c_3 type c_2
#dump 6 PKA custom 200 PKA_traj_final_evolve.dump x y z c_3 type c_2
dump 5 cascade custom 100 final_cascade.dump id x y z c_kecascade c_vacint[1] c_vacint[2] c_volu[1]
dump 6 PKA custom 100 final_pka.dump id x y z vx vy vz
#dump 50 cascade xyz 100 final_cascade.xyz
run 15000
Thank you