Correlation 4.10.0
An Analysis Tool for Liquids and for Amorphous Solids
Loading...
Searching...
No Matches
PhysicalData.hpp File Reference

Database of physical properties for chemical elements (radii, masses, form factors). More...

#include "math/Precision.hpp"
#include <algorithm>
#include <array>
#include <optional>
#include <stdexcept>
#include <string>
#include <string_view>
Include dependency graph for PhysicalData.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  correlation::physics::detail::ElementData
 Internal structure to hold element-specific physical data. More...

Namespaces

namespace  correlation::physics
 Provides structures and functions for handling atomic and material physical properties.
namespace  correlation
namespace  correlation::physics::detail

Functions

constexpr const ElementData * correlation::physics::detail::find (std::string_view symbol) noexcept
 Searches for an element by its symbol in the static database.
real_t correlation::physics::getCovalentRadius (std::string_view symbol)
 Retrieves the covalent radius of a given chemical element.
constexpr std::optional< real_t > correlation::physics::findAtomicMass (std::string_view symbol) noexcept
 Retrieves the atomic mass of a given chemical element without throwing.
real_t correlation::physics::getAtomicMass (std::string_view symbol)
 Retrieves the atomic mass of a given chemical element.
const std::array< real_t, 9 > & correlation::physics::getAtomicFormFactors (std::string_view symbol)
 Retrieves the atomic form factors for a given chemical element.

Variables

constexpr std::array< ElementData, 98 > correlation::physics::detail::DATABASE

Detailed Description

Database of physical properties for chemical elements (radii, masses, form factors).

License
SPDX-License-Identifier: AGPL-3.0-only