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

Domain engine responsible for computing, validating, and querying chemical bond cutoffs. More...

#include <BondCutoffEngine.hpp>

Static Public Member Functions

static correlation::analysis::BondCutoffMatrix compute (std::span< const Element > elements)
 Pre-calculates the squared bond cutoff distances for every pair of chemical elements.
static correlation::analysis::BondCutoffMatrix compute (const Cell &cell)
 Pre-calculates the bond cutoff matrix from the elements present in a Cell.
static void validate (const correlation::analysis::BondCutoffMatrix &cutoffs)
 Validates a bond cutoff matrix against domain bounds.
static const correlation::analysis::BondCutoffRange & getBondCutoffRange (const correlation::analysis::BondCutoffMatrix &cutoffs, size_t type1, size_t type2)
 Gets the bond cutoff range for two given element type indices.
static real_t getBondCutoffSQ (const correlation::analysis::BondCutoffMatrix &cutoffs, size_t type1, size_t type2)
 Gets the maximum squared bond cutoff distance for two given element types.
static real_t getMinBondCutoffSQ (const correlation::analysis::BondCutoffMatrix &cutoffs, size_t type1, size_t type2)
 Gets the minimum squared bond cutoff distance for two given element types.
static real_t getBondCutoff (const correlation::analysis::BondCutoffMatrix &cutoffs, size_t type1, size_t type2)
 Gets the maximum bond cutoff distance for two given element types.
static real_t getMinBondCutoff (const correlation::analysis::BondCutoffMatrix &cutoffs, size_t type1, size_t type2)
 Gets the minimum bond cutoff distance for two given element types.

Detailed Description

Domain engine responsible for computing, validating, and querying chemical bond cutoffs.

Member Function Documentation

◆ compute() [1/2]

correlation::analysis::BondCutoffMatrix correlation::core::BondCutoffEngine::compute ( const Cell & cell)
staticnodiscard

Pre-calculates the bond cutoff matrix from the elements present in a Cell.

Parameters
[in]cellThe structure containing unique chemical elements.
Returns
Matrix of calculated BondCutoffRange entries.
Here is the call graph for this function:

◆ compute() [2/2]

correlation::analysis::BondCutoffMatrix correlation::core::BondCutoffEngine::compute ( std::span< const Element > elements)
staticnodiscard

Pre-calculates the squared bond cutoff distances for every pair of chemical elements.

Parameters
[in]elementsList or span of unique chemical elements.
Returns
Matrix of calculated BondCutoffRange entries.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getBondCutoff()

real_t correlation::core::BondCutoffEngine::getBondCutoff ( const correlation::analysis::BondCutoffMatrix & cutoffs,
size_t type1,
size_t type2 )
staticnodiscard

Gets the maximum bond cutoff distance for two given element types.

Parameters
[in]cutoffsMatrix of bond cutoff ranges.
[in]type1ID of first element type.
[in]type2ID of second element type.
Returns
The maximum bond cutoff distance.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getBondCutoffRange()

const correlation::analysis::BondCutoffRange & correlation::core::BondCutoffEngine::getBondCutoffRange ( const correlation::analysis::BondCutoffMatrix & cutoffs,
size_t type1,
size_t type2 )
staticnodiscard

Gets the bond cutoff range for two given element type indices.

Parameters
[in]cutoffsMatrix of bond cutoff ranges.
[in]type1ID of first element type.
[in]type2ID of second element type.
Returns
Const reference to the BondCutoffRange, or a zeroed default range if out of bounds.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getBondCutoffSQ()

real_t correlation::core::BondCutoffEngine::getBondCutoffSQ ( const correlation::analysis::BondCutoffMatrix & cutoffs,
size_t type1,
size_t type2 )
staticnodiscard

Gets the maximum squared bond cutoff distance for two given element types.

Parameters
[in]cutoffsMatrix of bond cutoff ranges.
[in]type1ID of first element type.
[in]type2ID of second element type.
Returns
The squared maximum bond cutoff distance.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getMinBondCutoff()

real_t correlation::core::BondCutoffEngine::getMinBondCutoff ( const correlation::analysis::BondCutoffMatrix & cutoffs,
size_t type1,
size_t type2 )
staticnodiscard

Gets the minimum bond cutoff distance for two given element types.

Parameters
[in]cutoffsMatrix of bond cutoff ranges.
[in]type1ID of first element type.
[in]type2ID of second element type.
Returns
The minimum bond cutoff distance.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getMinBondCutoffSQ()

real_t correlation::core::BondCutoffEngine::getMinBondCutoffSQ ( const correlation::analysis::BondCutoffMatrix & cutoffs,
size_t type1,
size_t type2 )
staticnodiscard

Gets the minimum squared bond cutoff distance for two given element types.

Parameters
[in]cutoffsMatrix of bond cutoff ranges.
[in]type1ID of first element type.
[in]type2ID of second element type.
Returns
The squared minimum bond cutoff distance.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ validate()

void correlation::core::BondCutoffEngine::validate ( const correlation::analysis::BondCutoffMatrix & cutoffs)
static

Validates a bond cutoff matrix against domain bounds.

Parameters
[in]cutoffsMatrix of bond cutoff ranges to inspect.
Exceptions
std::invalid_argumentIf any cutoff bound is negative or min_sq > max_sq.
Here is the caller graph for this function:

The documentation for this class was generated from the following files: