Correlation 4.10.0
An Analysis Tool for Liquids and for Amorphous Solids
Loading...
Searching...
No Matches
RDFCalculator.hpp
Go to the documentation of this file.
1
8
9#pragma once
10
13#include "math/Constants.hpp"
14
15#include <map>
16#include <string>
17
19
33public:
34 [[nodiscard]] std::string_view getName() const override { return "Radial Distribution Function"; }
35 [[nodiscard]] std::string_view getShortName() const override { return "RDF"; }
36 [[nodiscard]] std::string_view getGroup() const override { return "Radial"; }
37 [[nodiscard]] std::string_view getDescription() const override {
38 return "Computes radial distribution functions g(r), J(r), and G(r).";
39 }
40
42 const correlation::analysis::AnalysisSettings &settings) const override;
43
63 [[nodiscard]] static std::map<std::string, correlation::analysis::Histogram>
66 const std::map<std::string, real_t> &ashcroft_weights, real_t r_max, real_t r_bin_width,
68};
69
70} // namespace correlation::calculators
Mathematical and physical constants for the Correlation tool.
Manager for distribution function calculations (RDF, PAD, S(Q), etc.).
Contract for single-frame spatial calculators.
Manages the calculation and storage of various distribution functions.
Definition DistributionFunctions.hpp:259
Computes and stores pairwise distances and bond angles in tensors indexed by element type.
Definition StructureAnalyzer.hpp:33
Abstract contract for calculators operating on per-frame spatial coordinates and cells....
Definition ISpatialCalculator.hpp:19
Computes the Radial Distribution Function (RDF), also known as the pair correlation function g(r).
Definition RDFCalculator.hpp:32
std::string_view getGroup() const override
Returns the UI group this calculator belongs to (e.g., "Radial", "Angular", "Dynamic",...
Definition RDFCalculator.hpp:36
std::string_view getName() const override
Returns the unique identifier/name of the calculator.
Definition RDFCalculator.hpp:34
void calculateFrame(correlation::analysis::DistributionFunctions &dists, const correlation::analysis::AnalysisSettings &settings) const override
Calculate per-frame properties. Called concurrently on distinct DistributionFunctions objects....
Definition RDFCalculator.cpp:319
std::string_view getShortName() const override
Returns a short, UI-friendly name of the calculator (e.g. "g_r", "S_q").
Definition RDFCalculator.hpp:35
std::string_view getDescription() const override
Returns a brief description of the calculator's purpose.
Definition RDFCalculator.hpp:37
static std::map< std::string, correlation::analysis::Histogram > calculate(const correlation::core::Cell &cell, const correlation::analysis::StructureAnalyzer *neighbors, const std::map< std::string, real_t > &ashcroft_weights, real_t r_max, real_t r_bin_width, real_t max_radius=correlation::math::MAX_CUTOFF_RADIUS)
Calculates the J(r), g(r), and G(r) histograms for the given cell and pair distances.
Definition RDFCalculator.cpp:329
Represents the simulation cell (periodic box).
Definition Cell.hpp:30
Definition OptionsSyncService.hpp:18
constexpr real_t MAX_CUTOFF_RADIUS
Maximum allowable cutoff radius in Angstroms.
Definition Constants.hpp:46
double real_t
Definition Precision.hpp:18
Configuration settings for distribution function analysis.
Definition DistributionFunctions.hpp:106