Correlation 4.10.0
An Analysis Tool for Liquids and for Amorphous Solids
Loading...
Searching...
No Matches
correlation::physics Namespace Reference

Provides structures and functions for handling atomic and material physical properties. More...

Namespaces

namespace  detail

Functions

real_t getCovalentRadius (std::string_view symbol)
 Retrieves the covalent radius of a given chemical element.
constexpr std::optional< real_t > findAtomicMass (std::string_view symbol) noexcept
 Retrieves the atomic mass of a given chemical element without throwing.
real_t getAtomicMass (std::string_view symbol)
 Retrieves the atomic mass of a given chemical element.
const std::array< real_t, 9 > & getAtomicFormFactors (std::string_view symbol)
 Retrieves the atomic form factors for a given chemical element.

Detailed Description

Provides structures and functions for handling atomic and material physical properties.

Function Documentation

◆ findAtomicMass()

std::optional< real_t > correlation::physics::findAtomicMass ( std::string_view symbol)
nodiscardconstexprnoexcept

Retrieves the atomic mass of a given chemical element without throwing.

Parameters
[in]symbolThe atomic symbol of the element.
Returns
The atomic mass in atomic mass units (Da or g/mol), or std::nullopt if unknown.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getAtomicFormFactors()

const std::array< real_t, 9 > & correlation::physics::getAtomicFormFactors ( std::string_view symbol)
inline

Retrieves the atomic form factors for a given chemical element.

The array contains 9 coefficients (a1, b1, a2, b2, a3, b3, a4, b4, c) based on the Cromer-Mann equation.

Parameters
symbolThe atomic symbol of the element.
Returns
A 9-element array containing the form factor coefficients.
Exceptions
std::out_of_rangeif the element symbol is not found in the database.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getAtomicMass()

real_t correlation::physics::getAtomicMass ( std::string_view symbol)
inline

Retrieves the atomic mass of a given chemical element.

Parameters
symbolThe atomic symbol of the element.
Returns
The atomic mass in atomic mass units (Da or g/mol).
Exceptions
std::out_of_rangeif the element symbol is not found in the database.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getCovalentRadius()

real_t correlation::physics::getCovalentRadius ( std::string_view symbol)
inline

Retrieves the covalent radius of a given chemical element.

Parameters
symbolThe atomic symbol of the element (e.g., "C", "O", "Fe").
Returns
The covalent radius in Angstroms.
Exceptions
std::out_of_rangeif the element symbol is not found in the database.
Here is the call graph for this function:
Here is the caller graph for this function: