Correlation 4.10.0
An Analysis Tool for Liquids and for Amorphous Solids
Loading...
Searching...
No Matches
BondCutoffEngine.hpp
Go to the documentation of this file.
1
8
9#pragma once
10
12#include "core/Cell.hpp"
13
14#include <span>
15
16namespace correlation::core {
17
22public:
29 compute(std::span<const Element> elements);
30
36 [[nodiscard]] static correlation::analysis::BondCutoffMatrix compute(const Cell &cell);
37
43 static void validate(const correlation::analysis::BondCutoffMatrix &cutoffs);
44
52 [[nodiscard]] static const correlation::analysis::BondCutoffRange &
54 size_t type2);
55
63 [[nodiscard]] static real_t
65 size_t type2);
66
74 [[nodiscard]] static real_t
76 size_t type2);
77
85 [[nodiscard]] static real_t getBondCutoff(const correlation::analysis::BondCutoffMatrix &cutoffs,
86 size_t type1, size_t type2);
87
95 [[nodiscard]] static real_t
97 size_t type2);
98};
99
100} // namespace correlation::core
Simulation cell structure with periodic boundary conditions.
Contiguous 2D matrix of element-pair bond cutoff ranges.
Definition AnalysisTypes.hpp:48
Domain engine responsible for computing, validating, and querying chemical bond cutoffs.
Definition BondCutoffEngine.hpp:21
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.
Definition BondCutoffEngine.cpp:75
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.
Definition BondCutoffEngine.cpp:97
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.
Definition BondCutoffEngine.cpp:87
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.
Definition BondCutoffEngine.cpp:92
static correlation::analysis::BondCutoffMatrix compute(std::span< const Element > elements)
Pre-calculates the squared bond cutoff distances for every pair of chemical elements.
Definition BondCutoffEngine.cpp:30
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.
Definition BondCutoffEngine.cpp:102
static void validate(const correlation::analysis::BondCutoffMatrix &cutoffs)
Validates a bond cutoff matrix against domain bounds.
Definition BondCutoffEngine.cpp:60
Represents the simulation cell (periodic box).
Definition Cell.hpp:30
Definition ITrajectoryCalculator.hpp:13
double real_t
Definition Precision.hpp:18
Represents the squared minimum and maximum bond distance bounds for an element pair.
Definition AnalysisTypes.hpp:29