Correlation 4.10.0
An Analysis Tool for Liquids and for Amorphous Solids
Loading...
Searching...
No Matches
correlation::mlip::OrbV3GNNModel Class Reference

Zero-dependency native C++23 inference engine for Cellulose ORB-v3 + LDOSHead potentials. More...

#include <OrbV3GNNModel.hpp>

Inheritance diagram for correlation::mlip::OrbV3GNNModel:
Collaboration diagram for correlation::mlip::OrbV3GNNModel:

Classes

struct  Impl

Public Member Functions

 OrbV3GNNModel (std::string model_path="")
 Constructs an OrbV3GNNModel from a flat binary weight file (or auto-discovers default).
 ~OrbV3GNNModel () override
 OrbV3GNNModel (OrbV3GNNModel &&) noexcept
OrbV3GNNModel & operator= (OrbV3GNNModel &&) noexcept
 OrbV3GNNModel (const OrbV3GNNModel &)=delete
OrbV3GNNModel & operator= (const OrbV3GNNModel &)=delete
std::string getModelName () const override
 Returns the model architecture and loaded weight file identifier.
MLIPOutput evaluate (const correlation::core::Cell &cell) const override
 Evaluates energy, forces, stress, and atom-projected LDOS on a simulation Cell.
bool isLoaded () const noexcept
 Checks whether the binary weight file was successfully mapped and validated.
const OrbV3ModelHeader & header () const noexcept
 Returns the parsed 64-byte header of the loaded model.
const std::string & modelPath () const noexcept
 Returns the resolved filesystem path of the loaded weight binary.
Public Member Functions inherited from correlation::mlip::MLIPInterface
virtual ~MLIPInterface ()=default

Static Public Member Functions

static std::string findDefaultModelPath (const std::string &preferred_path="")
 Searches standard workspace and user directories for cellulose_ldos.bin.

Private Attributes

std::unique_ptr< Impl > impl_
std::string model_path_

Detailed Description

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.

Constructor & Destructor Documentation

◆ 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_pathPath to cellulose_ldos.bin (if empty, searches default paths).
Here is the call graph for this function:
Here is the caller graph for this function:

◆ ~OrbV3GNNModel()

correlation::mlip::OrbV3GNNModel::~OrbV3GNNModel ( )
overridedefault

◆ OrbV3GNNModel() [2/3]

correlation::mlip::OrbV3GNNModel::OrbV3GNNModel ( OrbV3GNNModel && )
defaultnoexcept
Here is the call graph for this function:

◆ OrbV3GNNModel() [3/3]

correlation::mlip::OrbV3GNNModel::OrbV3GNNModel ( const OrbV3GNNModel & )
delete
Here is the call graph for this function:

Member Function Documentation

◆ evaluate()

MLIPOutput correlation::mlip::OrbV3GNNModel::evaluate ( const correlation::core::Cell & cell) const
nodiscardoverridevirtual

Evaluates energy, forces, stress, and atom-projected LDOS on a simulation Cell.

Parameters
[in]cellAtomic configuration cell.
Returns
MLIPOutput containing energy, forces, stress, and site-resolved LDOS spectra.
Exceptions
std::runtime_errorif unmapped numeric species (Z=0) are present or model is unloaded.

Implements correlation::mlip::MLIPInterface.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ 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_pathOptional explicit user path to check first.
Returns
Resolved existing file path, or empty string if not found.
Here is the caller graph for this function:

◆ getModelName()

std::string correlation::mlip::OrbV3GNNModel::getModelName ( ) const
nodiscardoverridevirtual

Returns the model architecture and loaded weight file identifier.

Returns
Model descriptor string.

Implements correlation::mlip::MLIPInterface.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ header()

const OrbV3ModelHeader & correlation::mlip::OrbV3GNNModel::header ( ) const
nodiscardnoexcept

Returns the parsed 64-byte header of the loaded model.

Returns
Const reference to OrbV3ModelHeader.
Here is the caller graph for this function:

◆ 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.
Here is the caller graph for this function:

◆ 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.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ operator=() [1/2]

OrbV3GNNModel & correlation::mlip::OrbV3GNNModel::operator= ( const OrbV3GNNModel & )
delete
Here is the call graph for this function:

◆ operator=() [2/2]

OrbV3GNNModel & correlation::mlip::OrbV3GNNModel::operator= ( OrbV3GNNModel && )
defaultnoexcept
Here is the call graph for this function:

Member Data Documentation

◆ 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: