Author Topic: WARNING: ENERGY DRIFT (INTERNAL CONSISTENCY ERROR IN THE CODE)  (Read 349 times)

joannewanghf

  • Newbie
  • *
  • Posts: 2
    • View Profile
WARNING: ENERGY DRIFT (INTERNAL CONSISTENCY ERROR IN THE CODE)
« on: January 12, 2021, 07:14:15 AM »
Dear Prof. Dubbeldam and RASPA community,
I have used RASPA 2.0.37 for gas adsorption simulations in a Cu-MOF in last months.

I built myown forcefiled files based on Dubbeldam2012MIL-101, and got reasonable isotherm data for CH4 and CO2 adsorption. But encountered ENERGY DRIFT warning when I move to C2H2 (acetylene) adsorption, even at low pressure (e.g. 24Pa, 298K).

I found this warning would be eliminated when the charge of C_C2H2 and H_C2H2 equal to zero, but it leads to very low absolute adsorption (i.e., 0.02 cm^3/g. the experimental result is ~52 cm^3/g).  When I set the charge of C_C2H2 and H_C2H2 as 0.278, I got close adsorption as experiment but ENERGY DRIFT warning occurs.

I tried to change, respectively, radii of Cu, C_C2H2 and H_C2H2 in pseudoatom.def, L-J parameters of Cu, C_C2H2 and H_C2H2 in force_field_mixing_rules.def. All of attempts led to dramatically changes in amount of total ENERGY DRIFT and seems no rules. Besides, I performed two runs, respectively, with the same input files, it gives very different total energy drift.

So how can I fix this problem, and how to build a proper forcefield for specific systems, is there some guidelines or skills?

Some parameters used in one of my jobs with the smallest total energy drift (1.11544) is attached :
   

joannewanghf

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: WARNING: ENERGY DRIFT (INTERNAL CONSISTENCY ERROR IN THE CODE)
« Reply #1 on: January 13, 2021, 06:53:12 AM »
I modified atom coordinates of C2H2 and problem solved. But I don't know why.
« Last Edit: January 13, 2021, 08:02:22 AM by joannewanghf »

David Dubbeldam

  • Full Member
  • ***
  • Posts: 141
    • View Profile
Re: WARNING: ENERGY DRIFT (INTERNAL CONSISTENCY ERROR IN THE CODE)
« Reply #2 on: January 13, 2021, 06:55:16 PM »
It might be that if you choose the atomic positions wrong, that the molecules can overlap. This happened in particular with for example water where the larger oxygen shield the hydrogens. Often the hydrogens do not have a VDW parameter because the repulsion of the oxygen is sufficient. Choosing a wrong repulsion (too small sigma) leads to overlap with the hydrogens and hence numerical issues. So with classical force fields you should always be aware and avoid unphysical situations.