.. index:: pair: struct; pot::EngineRequest .. _doxid-structpot_1_1_engine_request: struct pot::EngineRequest ========================= .. toctree:: :hidden: Overview ~~~~~~~~ What a driver knows when it asks for a potential by name. :ref:`More...` .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include struct EngineRequest { // fields std::vector :ref:`potential_config`; std::string :ref:`potential`; std::string :ref:`model_path`; std::string :ref:`device` = "cpu"; std::string :ref:`task_name` = "omol"; int :ref:`charge` = 0; int :ref:`spin` = 1; std::string :ref:`library`; std::string :ref:`engine_dir`; int :ref:`cpmd_scf_max_iter` = 400; double :ref:`cpmd_scf_convergence` = 1.0e-5; double :ref:`cp2k_eps_scf` = 1.0e-9; int :ref:`cp2k_max_scf` = 30; int :ref:`cp2k_outer_max_scf` = 10; std::string :ref:`lammps_params_path`; std::string :ref:`executable_dir`; std::string :ref:`params_path`; std::vector :ref:`params_payload`; std::string :ref:`plugin_name`; }; .. _details-structpot_1_1_engine_request: Detailed Documentation ~~~~~~~~~~~~~~~~~~~~~~ What a driver knows when it asks for a potential by name. Fields ------ .. index:: pair: variable; potential_config .. _doxid-structpot_1_1_engine_request_1a91ad628f316ad39e78baff2198100d33: .. ref-code-block:: cpp :class: doxyrest-title-code-block std::vector potential_config Optional canonical rgpot PotentialConfig shared with the direct path. .. index:: pair: variable; potential .. _doxid-structpot_1_1_engine_request_1a4a8ec6990e639e0269eca61af3219b4a: .. ref-code-block:: cpp :class: doxyrest-title-code-block std::string potential potential: uma, omol, metatomic, ... .. index:: pair: variable; model_path .. _doxid-structpot_1_1_engine_request_1a076cf170dc129863bc089d1a8544e89e: .. ref-code-block:: cpp :class: doxyrest-title-code-block std::string model_path model .. index:: pair: variable; device .. _doxid-structpot_1_1_engine_request_1a800c29c99139557a6724889dad5a5bcb: .. ref-code-block:: cpp :class: doxyrest-title-code-block std::string device = "cpu" device .. index:: pair: variable; task_name .. _doxid-structpot_1_1_engine_request_1a484bd4aeea05828116fb754a60ad036e: .. ref-code-block:: cpp :class: doxyrest-title-code-block std::string task_name = "omol" task-name (UMA task head) .. index:: pair: variable; charge .. _doxid-structpot_1_1_engine_request_1a04de4043882eca092431d284a3094474: .. ref-code-block:: cpp :class: doxyrest-title-code-block int charge = 0 uma-charge .. index:: pair: variable; spin .. _doxid-structpot_1_1_engine_request_1aa6d767a836101699389a51646762283d: .. ref-code-block:: cpp :class: doxyrest-title-code-block int spin = 1 uma-spin (multiplicity) .. index:: pair: variable; library .. _doxid-structpot_1_1_engine_request_1ac593aa60b4c63df020e32bb1ae2c853d: .. ref-code-block:: cpp :class: doxyrest-title-code-block std::string library potential-library: overrides the table .. index:: pair: variable; engine_dir .. _doxid-structpot_1_1_engine_request_1a3fbdcfa58ff5ac8b7d27157cee5e6532: .. ref-code-block:: cpp :class: doxyrest-title-code-block std::string engine_dir engine-dir: where the table's names live .. index:: pair: variable; cpmd_scf_max_iter .. _doxid-structpot_1_1_engine_request_1ae03b3a3974cb8963f19088a6759ebc31: .. ref-code-block:: cpp :class: doxyrest-title-code-block 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. .. index:: pair: variable; cpmd_scf_convergence .. _doxid-structpot_1_1_engine_request_1a0686c3185b2fd2f771e9e449c367a254: .. ref-code-block:: cpp :class: doxyrest-title-code-block double cpmd_scf_convergence = 1.0e-5 cpmd-scf-convergence: CPMD's CONVERGENCE ORBITALS criterion. .. index:: pair: variable; cp2k_eps_scf .. _doxid-structpot_1_1_engine_request_1a1fd4f5bb3331ab267bbc67496c76daf0: .. ref-code-block:: cpp :class: doxyrest-title-code-block double cp2k_eps_scf = 1.0e-9 cp2k-eps-scf: CP2K's &SCF EPS_SCF for the default cp2k deck. .. index:: pair: variable; cp2k_max_scf .. _doxid-structpot_1_1_engine_request_1ae4752eb6aa94765bd42731c6c95d7eec: .. ref-code-block:: cpp :class: doxyrest-title-code-block 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. .. index:: pair: variable; cp2k_outer_max_scf .. _doxid-structpot_1_1_engine_request_1ac129f10890ec0ad1cb6bf8810dcf4677: .. ref-code-block:: cpp :class: doxyrest-title-code-block int cp2k_outer_max_scf = 10 &OUTER_SCF MAX_SCF of the default cp2k deck; 0 drops the outer loop. .. index:: pair: variable; lammps_params_path .. _doxid-structpot_1_1_engine_request_1a7731b2993d7910f956f9e902590cae58: .. ref-code-block:: cpp :class: doxyrest-title-code-block std::string lammps_params_path lammps-params: pair style, coefficients and type map for lammps. .. index:: pair: variable; executable_dir .. _doxid-structpot_1_1_engine_request_1a88ef953fe23d5f3cbf1ad217c69bcce4: .. ref-code-block:: cpp :class: doxyrest-title-code-block std::string executable_dir Directory of the running executable, for the default search; empty takes it from /proc/self/exe. .. index:: pair: variable; params_path .. _doxid-structpot_1_1_engine_request_1aefbaeacb0814cf0cd33ee951873faf04: .. ref-code-block:: cpp :class: doxyrest-title-code-block 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. .. index:: pair: variable; params_payload .. _doxid-structpot_1_1_engine_request_1afded2d048849d3f2e5a88e86e3120b2c: .. ref-code-block:: cpp :class: doxyrest-title-code-block std::vector params_payload The parameters message itself ([oracle.plugin] opaquePayload). Wins over params_path. .. index:: pair: variable; plugin_name .. _doxid-structpot_1_1_engine_request_1a3fb91eddd24583db79f2eb998b98fd9f: .. ref-code-block:: cpp :class: doxyrest-title-code-block std::string plugin_name [oracle.plugin] pluginName, for the startup report only.