Zero-dependency native C++23 inference engine for Cellulose ORB-v3 + LDOSHead potentials.
More...
#include <OrbV3GNNModel.hpp>
|
| static std::string | findDefaultModelPath (const std::string &preferred_path="") |
| | Searches standard workspace and user directories for cellulose_ldos.bin.
|
Zero-dependency native C++23 inference engine for Cellulose ORB-v3 + LDOSHead potentials.
Evaluates total/per-atom potential energy, atomic forces, virial stress, and 256-bin atom-projected Local Density of States (LDOS) directly from atomic positions (core::Cell) and PeriodicGraphBuilder::buildOrbGraph tensors.
◆ OrbV3GNNModel() [1/3]
| correlation::mlip::OrbV3GNNModel::OrbV3GNNModel |
( |
std::string | model_path = "" | ) |
|
|
explicit |
Constructs an OrbV3GNNModel from a flat binary weight file (or auto-discovers default).
- Parameters
-
| [in] | model_path | Path to cellulose_ldos.bin (if empty, searches default paths). |
◆ ~OrbV3GNNModel()
| correlation::mlip::OrbV3GNNModel::~OrbV3GNNModel |
( |
| ) |
|
|
overridedefault |
◆ OrbV3GNNModel() [2/3]
| correlation::mlip::OrbV3GNNModel::OrbV3GNNModel |
( |
OrbV3GNNModel && | | ) |
|
|
defaultnoexcept |
◆ OrbV3GNNModel() [3/3]
| correlation::mlip::OrbV3GNNModel::OrbV3GNNModel |
( |
const OrbV3GNNModel & | | ) |
|
|
delete |
◆ evaluate()
Evaluates energy, forces, stress, and atom-projected LDOS on a simulation Cell.
- Parameters
-
| [in] | cell | Atomic configuration cell. |
- Returns
- MLIPOutput containing energy, forces, stress, and site-resolved LDOS spectra.
- Exceptions
-
| std::runtime_error | if unmapped numeric species (Z=0) are present or model is unloaded. |
Implements correlation::mlip::MLIPInterface.
◆ findDefaultModelPath()
| std::string correlation::mlip::OrbV3GNNModel::findDefaultModelPath |
( |
const std::string & | preferred_path = "" | ) |
|
|
staticnodiscard |
Searches standard workspace and user directories for cellulose_ldos.bin.
- Parameters
-
| [in] | preferred_path | Optional explicit user path to check first. |
- Returns
- Resolved existing file path, or empty string if not found.
◆ getModelName()
| std::string correlation::mlip::OrbV3GNNModel::getModelName |
( |
| ) |
const |
|
nodiscardoverridevirtual |
◆ header()
Returns the parsed 64-byte header of the loaded model.
- Returns
- Const reference to OrbV3ModelHeader.
◆ isLoaded()
| bool correlation::mlip::OrbV3GNNModel::isLoaded |
( |
| ) |
const |
|
nodiscardnoexcept |
Checks whether the binary weight file was successfully mapped and validated.
- Returns
- True if ready for inference.
◆ modelPath()
| const std::string & correlation::mlip::OrbV3GNNModel::modelPath |
( |
| ) |
const |
|
inlinenodiscardnoexcept |
Returns the resolved filesystem path of the loaded weight binary.
- Returns
- Model file path string.
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ impl_
| std::unique_ptr<Impl> correlation::mlip::OrbV3GNNModel::impl_ |
|
private |
◆ model_path_
| std::string correlation::mlip::OrbV3GNNModel::model_path_ |
|
private |
The documentation for this class was generated from the following files: