Correlation 4.10.0
An Analysis Tool for Liquids and for Amorphous Solids
Loading...
Searching...
No Matches
AngleCalculator.hpp
Go to the documentation of this file.
1
8
9#pragma once
10
13#include "core/Cell.hpp"
15
16#include <vector>
17
19
21using AngleTensor = std::vector<std::vector<std::vector<std::vector<real_t>>>>;
22
37public:
38 [[nodiscard]] std::string_view getName() const override { return "Bond Angles (Tensor)"; }
39 [[nodiscard]] std::string_view getShortName() const override { return "Angle"; }
40 [[nodiscard]] std::string_view getGroup() const override { return "Structural"; }
41 [[nodiscard]] std::string_view getDescription() const override {
42 return "Computes 3-body plane angle tensors for structural analysis.";
43 }
44
45 [[nodiscard]] bool isFrameCalculator() const override { return true; }
46 [[nodiscard]] bool isTrajectoryCalculator() const override { return false; }
47
57 const correlation::analysis::AnalysisSettings &settings) const override;
58
67 static void compute(const correlation::core::Cell &cell,
68 const correlation::core::NeighborGraph &graph, AngleTensor &out_angles);
69};
70
71} // namespace correlation::calculators
Abstract base class for all analysis calculators.
Simulation cell structure with periodic boundary conditions.
Manager for distribution function calculations (RDF, PAD, S(Q), etc.).
Compressed Sparse Row (CSR) neighbor graph of atomic bonds and adjacency.
Manages the calculation and storage of various distribution functions.
Definition DistributionFunctions.hpp:259
Computes all unique 3-body plane angles in the simulation cell.
Definition AngleCalculator.hpp:36
std::string_view getGroup() const override
Returns the UI group this calculator belongs to (e.g., "Radial", "Angular", "Dynamic",...
Definition AngleCalculator.hpp:40
bool isFrameCalculator() const override
Check if this calculator runs per-frame (e.g. RDF, PAD).
Definition AngleCalculator.hpp:45
static void compute(const correlation::core::Cell &cell, const correlation::core::NeighborGraph &graph, AngleTensor &out_angles)
Computes and populates the bond angles tensor.
Definition AngleCalculator.cpp:120
std::string_view getDescription() const override
Returns a brief description of the calculator's purpose.
Definition AngleCalculator.hpp:41
bool isTrajectoryCalculator() const override
Check if this calculator runs on the whole trajectory (e.g. VACF).
Definition AngleCalculator.hpp:46
std::string_view getName() const override
Returns the unique identifier/name of the calculator.
Definition AngleCalculator.hpp:38
std::string_view getShortName() const override
Returns a short, UI-friendly name of the calculator (e.g. "g_r", "S_q").
Definition AngleCalculator.hpp:39
void calculateFrame(correlation::analysis::DistributionFunctions &dists, const correlation::analysis::AnalysisSettings &settings) const override
Dispatches the calculation for a single configuration frame.
Definition AngleCalculator.cpp:22
Represents the simulation cell (periodic box).
Definition Cell.hpp:30
Compressed Sparse Row (CSR) based graph representing atomic connectivity.
Definition NeighborGraph.hpp:55
Definition OptionsSyncService.hpp:18
std::vector< std::vector< std::vector< std::vector< real_t > > > > AngleTensor
Type definition for an angle tensor [center][outer1][outer2][angle_index].
Definition AngleCalculator.hpp:21
Configuration settings for distribution function analysis.
Definition DistributionFunctions.hpp:106