Dear Bence Mészáros,
Thank you for your interest in MBX and our many-body models, and for reaching out with your question regarding the MB-SCAN potential for water.
In MBX, the implemented potentials are called using their “monomer name”.
Using the config.nrg file for MB-pol as an example here, “h2o” is the monomer name, and so in MBX this corresponds to / calls MB-pol.
MB-pol I-PI example:
1. TO USE MB-DFT MODELS WITH I-PI
To use MB-SCAN instead of MB-pol, you replace “MONOMER h2o” with “MONOMER h2o-scan” in the config.nrg file.
MB-SCAN config.nrg
SYSTEM WATER 256
MOLECULE
MONOMER h2o-scan
O 2.781038e+00 -3.651332e+00 -1.210302e+00
H 3.212050e+00 -3.232290e+00 -1.990020e+00
H 1.875751e+00 -3.261017e+00 -1.183359e+00
ENDMON
ENDMOL
MOLECULE
MONOMER h2o-scan
.
.
.
Rest of file
MB-SCAN(DC) config.nrg
SYSTEM WATER 256
MOLECULE
MONOMER h2o-dcscan
O 2.781038e+00 -3.651332e+00 -1.210302e+00
H 3.212050e+00 -3.232290e+00 -1.990020e+00
H 1.875751e+00 -3.261017e+00 -1.183359e+00
ENDMON
ENDMOL
MOLECULE
MONOMER h2o-dcscan
.
.
.
Rest of file
For I-PI simulations, this is all you need to change.
2. TO USE MB-DFT MODELS WITH LAMMPS
For reference, the change is similar for LAMMPS. In the lammps.in file, we would define h2o-dcscan as opposed to h2o ; for ions Na+ and Cl-, we would use na+dcscan and cl-dcscan, respectively.
Defining only e.g. cl- and h2o, would use MB-nrg and MB-pol.
MB-SCAN(DC) LAMMPS example:
https://github.com/paesanilab/MBX/tree/mb_scan_mb_dcscan/plugins/lammps/examples/cl-_bulk_dcscan
As we further develop MB-DFT, MB-DFT(DC) and related methods, we will continue to add more examples for both I-PI and LAMMPS, as well as improving our documentation.
Please let us know if we can be of any assistance, and happy computing!
Best regards,
The MBX team
Dear Bence Mészáros,
Thank you for reaching out and informing us about the performance issues with MB-SCAN and MB-SCAN(DC) compared to MB-pol in MBX v1.2.
We would like to inform you that the performance-enhanced MB-SCAN and MB-SCAN(DC) potentials for water, as well as Na+ and Cl− in water,
are now available in the branch mbx_with_mb-dft_1.2: https://github.com/paesanilab/MBX/tree/mbx_with_mb-dft_1.2
This update replaces the previous (v1.0) mb_scan_mb_dcscan branch, which will soon be deprecated.
We appreciate your interest in MB-SCAN, MB-SCAN(DC), and MB-DFT.
We're pleased to share that in the next release (v1.3), MB-SCAN, MB-SCAN(DC), and representative related MB-DFT models will be included in the master branch.
Please don't hesitate to reach out if you need any assistance. Happy computing!
Best regards,
The MBX Developer Team