Hello,
I am using ML-HDNNP package for ML-driven MD simulations with the latest 24.Aug.2024 version, which only need “atomic” atom_style and “atomonly” neighbor list.
I would like to use “hybrid” pair_style to perform thermodynamic integration for CO2 liquid between the ML potential and a classical potential that needs bond and angle descriptions. So, when I include bond and angle information in the data file for read_data with atom_style “angle”, then neighbor list is set up so that I see “pair build: full/bin”, not “pair build: full/bin/atomonly”, definitely because the bond information is considered to construct the neighbor list including atoms outside the cutoff radius. I found that the HDNNP behaves incorrectly with “pair build: full/bin” so that the predicted CO2 structure becomes weird. I tested that the total energies are different for the same atomic structure between “atomic” and “angle” atom_style due to the different neighbor list construction.
So, I would like to force HDNNP always consider atomonly neighbor list no matter which atom_style is selected. I checked pair_hdnnp.cpp code and it seems that I may need to change the part in the code as shown below, but I am not sure how to do this.
void PairHDNNP::init_style()
{
neighbor->add_request(this, NeighConst::REQ_FULL);
…
If you don’t mind, could you please suggest the way that I can do this? Also I am wondering if what I would like to do is actually impossible.
Thank you so much.
Best regards,
Kwangnam Kim