struct pot::EngineRequest¶
Overview¶
What a driver knows when it asks for a potential by name. More…
#include <gpr/potentials/EngineRegistry.h>
struct EngineRequest {
// fields
std::vector<unsigned char> potential_config;
std::string potential;
std::string model_path;
std::string device = “cpu”;
std::string task_name = “omol”;
int charge = 0;
int spin = 1;
std::string library;
std::string engine_dir;
int cpmd_scf_max_iter = 400;
double cpmd_scf_convergence = 1.0e-5;
double cp2k_eps_scf = 1.0e-9;
int cp2k_max_scf = 30;
int cp2k_outer_max_scf = 10;
std::string lammps_params_path;
std::string executable_dir;
std::string params_path;
std::vector<unsigned char> params_payload;
std::string plugin_name;
};
Detailed Documentation¶
What a driver knows when it asks for a potential by name.
Fields¶
std::vector<unsigned char> potential_config
Optional canonical rgpot PotentialConfig shared with the direct path.
std::string potential
potential: uma, omol, metatomic, …
std::string model_path
model
std::string device = “cpu”
device
std::string task_name = “omol”
task-name (UMA task head)
int charge = 0
uma-charge
int spin = 1
uma-spin (multiplicity)
std::string library
potential-library: overrides the table
std::string engine_dir
engine-dir: where the table’s names live
int cpmd_scf_max_iter = 400
cpmd-scf-max-iter: SCF steps one CPMD force call may spend. The engine reports a call that reaches it as a failed evaluation, which the search rejects instead of taking an unconverged energy.
double cpmd_scf_convergence = 1.0e-5
cpmd-scf-convergence: CPMD’s CONVERGENCE ORBITALS criterion.
double cp2k_eps_scf = 1.0e-9
cp2k-eps-scf: CP2K’s &SCF EPS_SCF for the default cp2k deck.
int cp2k_max_scf = 30
cp2k-max-scf: CP2K’s inner &SCF MAX_SCF. A call whose outer loop ends unconverged is a failed evaluation the search rejects.
int cp2k_outer_max_scf = 10
&OUTER_SCF MAX_SCF of the default cp2k deck; 0 drops the outer loop.
std::string lammps_params_path
lammps-params: pair style, coefficients and type map for lammps.
std::string executable_dir
Directory of the running executable, for the default search; empty takes it from /proc/self/exe.
std::string params_path
potential-params or [oracle.plugin] params_path: a file whose bytes are the engine’s parameters message, handed to rgpot_engine_create unread. Set, or with params_payload set, the request is a plugin request: the library is taken as given and the name table is not consulted, so any engine plugin loads without an entry here.
std::vector<unsigned char> params_payload
The parameters message itself ([oracle.plugin] opaquePayload). Wins over params_path.
std::string plugin_name
[oracle.plugin] pluginName, for the startup report only.