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

Stateless transformation service mapping atomic elements to cutoff configurations. More...

#include <BondCutoffMapper.hpp>

Static Public Member Functions

static std::vector< CutoffEntry > createDefaultCutoffEntries (std::span< const correlation::core::Element > elements)
 Generates default covalent cutoff entries for a collection of elements.
static correlation::analysis::BondCutoffMatrix parseCutoffMatrix (std::span< const CutoffEntry > entries, std::span< const correlation::core::Element > elements)
 Parses and validates cutoff entries into a symmetric BondCutoffMatrix.

Static Private Member Functions

static real_t parseDistanceSafe (const std::string &str)
 Safely parses a distance string to real_t with a zero fallback.
static int findElementIndex (std::span< const correlation::core::Element > elements, const std::string &symbol)
 Finds the index of an element symbol within an element span.

Detailed Description

Stateless transformation service mapping atomic elements to cutoff configurations.

Member Function Documentation

◆ createDefaultCutoffEntries()

std::vector< CutoffEntry > correlation::app::BondCutoffMapper::createDefaultCutoffEntries ( std::span< const correlation::core::Element > elements)
staticnodiscard

Generates default covalent cutoff entries for a collection of elements.

Parameters
[in]elementsCollection of unique elements in the system.
Returns
Vector of formatted CutoffEntry objects with estimated covalent bounds.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ findElementIndex()

int correlation::app::BondCutoffMapper::findElementIndex ( std::span< const correlation::core::Element > elements,
const std::string & symbol )
staticnodiscardprivate

Finds the index of an element symbol within an element span.

Parameters
[in]elementsCollection of elements.
[in]symbolSymbol to look up.
Returns
Index if found, or -1 if not found.
Here is the caller graph for this function:

◆ parseCutoffMatrix()

correlation::analysis::BondCutoffMatrix correlation::app::BondCutoffMapper::parseCutoffMatrix ( std::span< const CutoffEntry > entries,
std::span< const correlation::core::Element > elements )
staticnodiscard

Parses and validates cutoff entries into a symmetric BondCutoffMatrix.

Parameters
[in]entriesCollection of cutoff entries to parse.
[in]elementsCollection of elements defining matrix dimension and index order.
Returns
Symmetrized BondCutoffMatrix with squared distance ranges.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ parseDistanceSafe()

real_t correlation::app::BondCutoffMapper::parseDistanceSafe ( const std::string & str)
staticnodiscardprivate

Safely parses a distance string to real_t with a zero fallback.

Parameters
[in]strDistance string to parse.
Returns
Parsed distance value or 0.0 on conversion failure.
Here is the caller graph for this function:

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