#include <ASE_ORCA.h>
Public Member Functions | |
| ASEOrcaPot (const Parameters &a_params) | |
| virtual | ~ASEOrcaPot () |
| void | force (long nAtoms, const double *R, const int *atomicNrs, double *F, double *U, double *variance, const double *box) override |
| bool | isThreadSafe () const noexcept override |
| Whether this potential's force() can be called from multiple threads on the SAME instance. | |
| bool | requiresIsolatedMoleculeLayout () const noexcept override |
| ORCA does not support PBC; non-centered PBC wraps tear molecules (#188). | |
| bool | needsPerImageInstance () const noexcept override |
| ORCA runs as external subprocess; separate instances are independent. | |
| Public Member Functions inherited from eonc::Potential | |
| Potential (PotType a_ptype) | |
| Potential (PotType a_ptype, const Parameters &) | |
| Potential (const Parameters &a_params) | |
| virtual | ~Potential () |
| std::tuple< double, AtomMatrix > | get_ef (const AtomMatrix &pos, const VectorXi &atmnrs, const Matrix3d &box) |
| PotType | getType () const |
| virtual bool | isSurrogate () const noexcept |
| Whether this is a surrogate (GP) potential. | |
| virtual bool | isSharedInstanceThreadSafe () const noexcept |
| Conservative gate for sharing one Potential instance across threads. | |
| virtual bool | supportsBatchEvaluation () const noexcept |
| Whether this potential supports batched evaluation of N systems in a single call. | |
| virtual void | forceBatch (long nSystems, long nAtoms, const double *const *positions, const int *const *atomicNrs, double *const *forces, double *energies, double *variances, const double *const *boxes) |
| Evaluate forces for N systems in a single call. | |
Private Attributes | |
| py::object | calc |
| py::object | ase |
| std::filesystem::path | workDir |
| size_t | counter {0} |
Additional Inherited Members | |
| Public Attributes inherited from eonc::Potential | |
| std::atomic< size_t > | forceCallCounter |
| Protected Attributes inherited from eonc::Potential | |
| PotType | ptype |
Definition at line 26 of file ASE_ORCA.h.
| ASEOrcaPot::ASEOrcaPot | ( | const Parameters & | a_params | ) |
Definition at line 61 of file ASE_ORCA.cpp.
|
virtual |
Definition at line 110 of file ASE_ORCA.cpp.
|
overridevirtual |
Implements eonc::Potential.
Definition at line 119 of file ASE_ORCA.cpp.
|
inlinenodiscardoverridevirtualnoexcept |
Whether this potential's force() can be called from multiple threads on the SAME instance.
Python-based potentials return false. Potentials with internal mutex (MetatomicPotential) return true but serialize internally – use needsPerImageInstance() to check if separate instances would enable true parallelism.
Reimplemented from eonc::Potential.
Definition at line 41 of file ASE_ORCA.h.
|
inlinenodiscardoverridevirtualnoexcept |
ORCA runs as external subprocess; separate instances are independent.
Reimplemented from eonc::Potential.
Definition at line 47 of file ASE_ORCA.h.
|
inlinenodiscardoverridevirtualnoexcept |
ORCA does not support PBC; non-centered PBC wraps tear molecules (#188).
Reimplemented from eonc::Potential.
Definition at line 43 of file ASE_ORCA.h.
|
private |
Definition at line 30 of file ASE_ORCA.h.
|
private |
Definition at line 29 of file ASE_ORCA.h.
|
private |
Definition at line 32 of file ASE_ORCA.h.
|
private |
Definition at line 31 of file ASE_ORCA.h.