Dear jtclemm,
My apologies for bothering you again. While verifying my code, I encountered a rather odd issue when trying to restart a simulation.
The modified code works fine when I first run the simulation on the HPC. I use the command mpirun -np 48 ./lmp_mpi -in try1k.in
, and everything runs as expected. I used the modified pair_style
:
pair_coeff * * hertz/piecewise 3.5e8 7e10 0.25 0.25 1.0 0.005 tangential mindlin_rescale/force 3.2e8 6.4e10 1.0 0.001 0.001 0.005
Here, I set the values as follows:
- Emod1 = 3.5e8
- Emod2 = 7e10
- Poiss1 = 0.25
- Poiss2 = 0.25
- Damp = 1.0
- Delta_switch = 0.005
For the tangential part, following your suggestions, I specified:
- k1 = 3.2e8
- k2 = 6.4e10
- xt = 1.0
- mu1 = 0.001
- mu2 = 0.001
- Delta_switch = 0.005
However, when I stop the simulation and try to restart it, I always encounter the error: “Illegal Mindlin tangential model”. Upon checking the source code, I found that the error occurs when any of the following conditions are met:
if (k < 0.0 || xt < 0.0 || mu < 0.0)
error->all(FLERR, "Illegal Mindlin tangential model");
This is puzzling because all the k
, xt
, and mu
values I provided are definitely larger than 0.
Then I tested the code on my own PC using ./lmp_mpi -in try1k.in
, and encountered an unusual situation. Initially, the restart worked fine, but after stopping and trying to restart again, I randomly get the “Illegal Mindlin tangential model” error. Sometimes the restart works, sometimes it doesn’t. It’s inconsistent, and I’m unsure what could be causing it.
Additionally, when I ran mpirun -np 48 ./lmp_mpi -in try10k.in
, I encountered a new error:
ERROR: Domain too large for neighbor bins.
This issue makes things more complicated. I would appreciate any insights or suggestions you might have regarding what’s really happening here. I attached all related files for your reference.
Thank you in advance for your time and help!
Best regards,
gran_sub_mod_custom.cpp (1.4 KB)
gran_sub_mod_custom.h (849 Bytes)
gran_sub_mod_tangential.cpp (14.0 KB)
gran_sub_mod_tangential.h (4.9 KB)
restart_filetry1k.52000000 (8.0 MB)
Particle_coarse.lj (3.6 MB)
try1k.in (4.8 KB)