Correlation 4.10.0
An Analysis Tool for Liquids and for Amorphous Solids
Loading...
Searching...
No Matches
DihedralCalculator.hpp
Go to the documentation of this file.
1
8
9#pragma once
10
14#include "core/Cell.hpp"
16
18
30public:
31 [[nodiscard]] std::string_view getName() const override { return "Dihedral Angles (Tensor)"; }
32 [[nodiscard]] std::string_view getShortName() const override { return "Dihedral"; }
33 [[nodiscard]] std::string_view getGroup() const override { return "Structural"; }
34 [[nodiscard]] std::string_view getDescription() const override {
35 return "Computes 4-body dihedral angle tensors for structural analysis.";
36 }
37
38 [[nodiscard]] bool isFrameCalculator() const override { return true; }
39 [[nodiscard]] bool isTrajectoryCalculator() const override { return false; }
40
50 const correlation::analysis::AnalysisSettings &settings) const override;
51
60 static void compute(const correlation::core::Cell &cell,
63};
64
65} // 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.
Structural analysis utilities for neighbor detection and bond topology.
Manages the calculation and storage of various distribution functions.
Definition DistributionFunctions.hpp:259
std::vector< std::vector< std::vector< std::vector< std::vector< real_t > > > > > DihedralTensor
Tensor for storing dihedrals [e1][e2][e3][e4][dihedral_index].
Definition StructureAnalyzer.hpp:40
Computes all unique 4-body dihedral (torsion) angles in the simulation cell.
Definition DihedralCalculator.hpp:29
bool isFrameCalculator() const override
Check if this calculator runs per-frame (e.g. RDF, PAD).
Definition DihedralCalculator.hpp:38
bool isTrajectoryCalculator() const override
Check if this calculator runs on the whole trajectory (e.g. VACF).
Definition DihedralCalculator.hpp:39
std::string_view getDescription() const override
Returns a brief description of the calculator's purpose.
Definition DihedralCalculator.hpp:34
std::string_view getName() const override
Returns the unique identifier/name of the calculator.
Definition DihedralCalculator.hpp:31
std::string_view getShortName() const override
Returns a short, UI-friendly name of the calculator (e.g. "g_r", "S_q").
Definition DihedralCalculator.hpp:32
static void compute(const correlation::core::Cell &cell, const correlation::core::NeighborGraph &graph, correlation::analysis::StructureAnalyzer::DihedralTensor &out_dihedrals)
Computes and populates the dihedral angles tensor.
Definition DihedralCalculator.cpp:183
void calculateFrame(correlation::analysis::DistributionFunctions &dists, const correlation::analysis::AnalysisSettings &settings) const override
Dispatches the calculation for a single configuration frame.
Definition DihedralCalculator.cpp:20
std::string_view getGroup() const override
Returns the UI group this calculator belongs to (e.g., "Radial", "Angular", "Dynamic",...
Definition DihedralCalculator.hpp:33
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
Configuration settings for distribution function analysis.
Definition DistributionFunctions.hpp:106