gpridge.integrations.gromacs_quantities¶
Caller-supplied GROMACS quantities as a GPRidge oracle.
GROMACS positions are nanometres, energies are kJ/mol, and forces are
kJ/mol/nm. GromacsQuantityOracle converts one callable that already
returns those quantities:
evaluate(positions_nm, cell_nm) -> (energy_kJ_mol, forces_kJ_mol_nm)
cell_nm is a (3, 3) array, or None when the oracle has no
cell. The callable is invoked with fixed atoms already restored, in
nanometres.
This class does not start gmx, does not import gmxapi, and does
not read a .tpr. The caller is responsible for
evaluating the requested geometry and returning both energy and Cartesian
forces. A workflow using mdrun -rerun must request and extract the
forces as well as the energy.
Classes¶
Convert one GROMACS-unit evaluation into the GPRidge oracle. |
Module Contents¶
- class gpridge.integrations.gromacs_quantities.GromacsQuantityOracle(evaluate, **kwargs)¶
Bases:
gpridge.integrations.oracle.OracleConvert one GROMACS-unit evaluation into the GPRidge oracle.