Hi, all.
I am performing hybrid GCMD (Grand Canonical Molecular Dynamics) simulations to study the adsorption and permeation of CO2 (TraPPE model) through a MOF (with open metal sites) along the Z-axis at a high pressure of 10-30 atm.
My LAMMPS version is 22 Jul 2025 - Update 3.
I am facing a fundamental dilemma regarding the handling of electrostatics and the fix gcmc command. My system consists of the MOF structure and an empty Feed reservoir (buffer space) outside the MOF along the Z-axis.
Here is what happens depending on the electrostatic settings:
1. Approach A: Using kspace pppm (with full_energy) The simulation runs normally at first. However, when CO2 molecules adsorb onto specific sites within the MOF (likely the open metal sites), it triggers a massive energy spike. This results in the following warning: WARNING: Energy of old configuration in fix gcmc is > MAXENERGYTEST. (src/MC/fix_gcmc.cpp:798) Once this happens, the full_energy evaluation causes the GCMC engine to completely stall (rejecting all insertions in the feed region).
2. Approach B: Using simple coul/cut 12.5 To avoid the full_energy global rejection, I switched to a simple cutoff model. Interestingly, this approach does not throw the MAXENERGYTEST warning. Gas insertion works continuously, but due to the lack of long-range repulsion, GCMC severely over-inserts CO2. The molecules jam completely at the feed/surface interface and cannot permeate into the pore channel at all. Even when I dropped the pressure to 10 atm, this severe physical jamming persisted.
3. Approach C: Using coul/dsf 0.05 12.5 I then attempted to use Damped Shifted Force, hoping it would prevent the over-packing of coul/cut without the global energy issues of PPPM. However, the result is exactly the same as Approach A. No physical jamming is observed, but when CO2 attaches to specific MOF sites, it throws the exact same MAXENERGYTEST warning, and the GCMC engine completely stalls.
Current Status & Workaround: While researching, I found a related discussion (GitHub issue #409) suggesting that normal MD fluctuations might trigger this warning if overlap_cutoff is too large. I have just reduced the overlap_cutoff in fix gcmc from 2.5 Ă… to 1.5 Ă… and am currently running a test to see if this prevents the false MAXENERGYTEST stalls for Approaches 1 and 3.
My Questions:
-
Have others experienced this sudden
MAXENERGYTESTstall when gas molecules attach to specific highly-charged sites in MOFs (Approaches 1 & 3)? Does tuningoverlap_cutoffdown to 1.5 usually resolve this, or is there another fundamental algorithmic fix I am missing? -
To stabilize these localized energy spikes, is “Site Passivation” (artificially setting the charges of the specific outermost metal sites to 0.0) an acceptable and valid practice in the MD community for such GCMD setups?
-
If I am forced to use
coul/cut(Approach 2) to prevent stalling, how do researchers typically calibrate the GCMCpressureorfugacity_coeffto avoid the severe over-insertion and jamming caused by the missing long-range repulsion?
Any insights, feedback on my approaches, or references would be greatly appreciated. Thank you!