Greetings! I’ve been endeavoring to calculate the elastic constants of the FeCrNi alloy, drawing upon stress data acquired from simulation. Despite numerous troubleshooting attempts and diligent consultation with the LAMMPS manual, I’ve encountered a persistent stumbling block. It appears that the crux of the issue may lie within the formatting of the FeCrNi.eam.alloy file, yet despite my efforts, the resolution eludes me. Would anyone be able to offer guidance on this matter? Is the error glaringly evident? Furthermore, are there specific sections of the LAMMPS manual that could provide insight? Any assistance extended would be immensely appreciated.
boundary p p p
# Read initial structure
read_data FeCrNi.data
# Define interatomic potential
pair_style eam/alloy
pair_coeff * * FeCrNi.eam.alloy Fe Cr Ni
# Define groups
group all type 1 2 3
# Set minimization parameters
min_style cg
minimize 1.0e-4 1.0e-6 1000 10000
# Set temperature and run equilibration
velocity all create 300.0 12345 mom yes rot yes dist gaussian
fix 1 all npt temp 300.0 300.0 100 iso 0.0 0.0 1000.0
# Output settings for equilibration
thermo 100
thermo_style custom step temp pe ke etotal press vol
# Equilibration run
run 5000
# Unfix equilibration fix
unfix 1
# Apply small strain increments and calculate stress response
variable strain equal 0.001
# Change box dimensions to apply strain
variable stxx equal "lx*(1+v_strain)"
variable styy equal "ly*(1-v_strain/2)"
variable stzz equal "lz*(1-v_strain/2)"
change_box all x scale ${stxx} y scale ${styy} z scale ${stzz} remap
# Output settings for strain application
thermo 100
thermo_style custom step temp press pxx pyy pzz c_stress[1] c_stress[2] c_stress[3]
# Run after applying strain
run 5000
# Output elastic constants
compute stress all stress/atom
compute peratom all reduce sum c_stress[1] c_stress[2] c_stress[3]
thermo_style custom step temp c_peratom[1] c_peratom[2] c_peratom[3]
# Final run to capture stress data
run 0
Data Format: Unfortunately, due to its size, I can only provide a snippet of the FeCrNi.eam.alloy file.
3 Fe Ni Cr
10000 1.00000000000000E-0002 10000 6.00000000000000E-0004 6.00000000000000E+0000
26 5.58450000000000E+0001 3.54837406888750E+0000 fcc
0 -9.99999999998227E-0002 -1.41421356234476E-0001 -1.73205080742562E-0001 -1.99999999954781E-0001
-2.23606797639720E-0001 -2.44948974049970E-0001 -2.64575130683947E-0001 -2.82842711754734E-0001 -2.99999998848328E-0001
-3.16227764263707E-0001 -3.31662476471998E-0001 -3.46410157887591E-0001 -3.60555122558091E-0001 -3.74165731976283E-0001
-3.87298325801030E-0001 -3.99999988596878E-0001 -4.12310548047542E-0001 -4.24264050492182E-0001 -4.35889871763836E-0001
-4.47213567799939E-0001 -4.58257535868370E-0001 -4.69041535528676E-0001 -4.79583104066329E-0001 -4.89897891406332E-0001