|
Correlation 4.10.0
An Analysis Tool for Liquids and for Amorphous Solids
|
Constructs periodic neighbor graphs and extracts tensors for GNN evaluation. More...
#include <PeriodicGraphBuilder.hpp>
Static Public Member Functions | |
| static PeriodicGraphData | buildGraph (const correlation::core::Cell &cell, real_t cutoff_radius=static_cast< real_t >(5.0), bool include_self_loops=false, size_t l_max=0, size_t max_num_neighbors=0) |
| Constructs a periodic atomic graph with periodic boundary condition shift vectors. | |
| static ElementCompatibilityReport | validateElementCompatibility (const correlation::core::Cell &cell) |
| Validates whether all elements in a Cell map to valid atomic numbers and Cellulose LDOS training species ({H, C, O}). | |
| static PeriodicGraphData | buildOrbGraph (const correlation::core::Cell &cell, const OrbDescriptorConfig &config={}) |
| Constructs a periodic atomic graph and extracts complete ORB-v3 descriptors. | |
| static int64_t | getAtomicNumber (std::string_view symbol) noexcept |
| Resolves atomic number Z for a chemical element symbol. | |
| static real_t | computeCutoffEnvelope (real_t distance, real_t cutoff_radius) noexcept |
| Computes a smooth polynomial cutoff envelope f_c(d) decaying to zero at cutoff. | |
| static real_t | computeOrbCutoffEnvelope (real_t distance, real_t cutoff_radius) noexcept |
| Computes ORB-v3 polynomial cutoff envelope f_c(d) of order p=4 decaying smoothly to 0 at cutoff_radius. | |
| static std::vector< real_t > | computeBesselBasis (real_t distance, real_t cutoff_radius, size_t num_basis) |
| Computes spherical Bessel radial basis functions with polynomial envelope. | |
| static std::vector< real_t > | computeOrbBesselBasis (real_t distance, const OrbDescriptorConfig &config={}) |
| Computes ORB-v3 Bessel radial basis functions without envelope. | |
| static std::vector< real_t > | computeGaussianRBF (real_t distance, const GaussianRBFConfig &config) |
| Computes Gaussian radial basis functions (RBF) for an interatomic distance. | |
| static void | computeSphericalHarmonics (const correlation::math::Vector3< real_t > &vec, size_t l_max, std::span< real_t > out) noexcept |
| Evaluates real orthonormal spherical harmonics Y_lm(r) up to l_max <= 3 into a pre-allocated span. | |
| static std::vector< real_t > | computeSphericalHarmonics (const correlation::math::Vector3< real_t > &vec, size_t l_max) |
| Evaluates real orthonormal spherical harmonics Y_lm(r) up to l_max <= 3 returning a newly allocated vector. | |
| static void | computeOrbSphericalHarmonics (const correlation::math::Vector3< real_t > &unit_vec, size_t l_max, std::span< real_t > out) noexcept |
| Evaluates e3nn component-normalized spherical harmonics Y_lm(r) up to l_max <= 3 into a span. | |
| static std::vector< real_t > | computeOrbSphericalHarmonics (const correlation::math::Vector3< real_t > &unit_vec, size_t l_max) |
| Evaluates e3nn component-normalized spherical harmonics Y_lm(r) returning a vector. | |
Constructs periodic neighbor graphs and extracts tensors for GNN evaluation.
|
staticnodiscard |
Constructs a periodic atomic graph with periodic boundary condition shift vectors.
| [in] | cell | Simulation cell containing lattice vectors and atomic positions. |
| [in] | cutoff_radius | Cutoff sphere radius in Angstroms (default: 5.0). |
| [in] | include_self_loops | Whether to include zero-displacement self-loops (default: false). |
| [in] | l_max | Maximum spherical harmonics degree (0..3) to embed (default: 0, no harmonics computed). |
| [in] | max_num_neighbors | Optional cap on nearest neighbors per atom (0 = unlimited). |


|
staticnodiscard |
Constructs a periodic atomic graph and extracts complete ORB-v3 descriptors.
| [in] | cell | Simulation cell containing lattice vectors and atomic positions. |
| [in] | config | ORB descriptor configuration parameters. |


|
staticnodiscard |
Computes spherical Bessel radial basis functions with polynomial envelope.
| [in] | distance | Interatomic distance d. |
| [in] | cutoff_radius | Cutoff radius r_c. |
| [in] | num_basis | Number of radial Bessel basis functions. |
num_basis. 

|
staticnodiscardnoexcept |
Computes a smooth polynomial cutoff envelope f_c(d) decaying to zero at cutoff.
| [in] | distance | Interatomic distance d. |
| [in] | cutoff_radius | Cutoff radius r_c. |


|
staticnodiscard |
Computes Gaussian radial basis functions (RBF) for an interatomic distance.
| [in] | distance | Interatomic distance d. |
| [in] | config | Gaussian RBF configuration parameters. |
config.num_basis. 

|
staticnodiscard |
Computes ORB-v3 Bessel radial basis functions without envelope.
| [in] | distance | Interatomic distance d. |
| [in] | config | ORB descriptor configuration specifying cutoff and basis count. |
config.num_rbf. 

|
staticnodiscardnoexcept |
Computes ORB-v3 polynomial cutoff envelope f_c(d) of order p=4 decaying smoothly to 0 at cutoff_radius.
| [in] | distance | Interatomic distance d. |
| [in] | cutoff_radius | Cutoff radius. |


|
staticnodiscard |
Evaluates e3nn component-normalized spherical harmonics Y_lm(r) returning a vector.
| [in] | unit_vec | 3D normalized unit displacement vector. |
| [in] | l_max | Maximum degree (clamped to 3). |

|
staticnoexcept |
Evaluates e3nn component-normalized spherical harmonics Y_lm(r) up to l_max <= 3 into a span.
| [in] | unit_vec | 3D normalized unit displacement vector. |
| [in] | l_max | Maximum degree (clamped to 3). Total components evaluated: (l_max + 1)^2. |
| [out] | out | Destination span of size at least (l_max + 1)^2. |


|
staticnodiscard |
Evaluates real orthonormal spherical harmonics Y_lm(r) up to l_max <= 3 returning a newly allocated vector.
| [in] | vec | 3D displacement vector r. |
| [in] | l_max | Maximum degree (clamped to 3). Total components evaluated: (l_max + 1)^2. |

|
staticnoexcept |
Evaluates real orthonormal spherical harmonics Y_lm(r) up to l_max <= 3 into a pre-allocated span.
| [in] | vec | 3D displacement vector r. |
| [in] | l_max | Maximum degree (clamped to 3). Total components evaluated: (l_max + 1)^2. |
| [out] | out | Destination span of size at least (l_max + 1)^2. |


|
staticnodiscardnoexcept |
Resolves atomic number Z for a chemical element symbol.
| [in] | symbol | Element symbol string (e.g. "Si", "Fe", "O"). |


|
staticnodiscard |
Validates whether all elements in a Cell map to valid atomic numbers and Cellulose LDOS training species ({H, C, O}).
| [in] | cell | Simulation cell to inspect. |

