38 using AngleTensor = std::vector<std::vector<std::vector<std::vector<real_t>>>>;
40 using DihedralTensor = std::vector<std::vector<std::vector<std::vector<std::vector<real_t>>>>>;
54 bool ignore_periodic_self_interactions =
true,
67 bool ignore_periodic_self_interactions =
true,
90 [[nodiscard]] std::shared_ptr<const correlation::core::Cell>
cellPtr() const noexcept {
139 std::shared_ptr<const correlation::core::Cell>
cell_;
Simulation cell structure with periodic boundary conditions.
Compressed Sparse Row (CSR) neighbor graph of atomic bonds and adjacency.
Contiguous 2D matrix of element-pair bond cutoff ranges.
Definition AnalysisTypes.hpp:48
bool getIgnorePeriodicSelfInteractions() const
Returns true if periodic self-interactions are ignored.
Definition StructureAnalyzer.hpp:129
void ensureDihedralsComputed() const
Definition StructureAnalyzer.cpp:162
DihedralTensor dihedral_tensor_
Dihedral angle storage (lazy).
Definition StructureAnalyzer.hpp:148
void ensureAnglesComputed() const
Definition StructureAnalyzer.cpp:145
bool ignore_periodic_self_interactions_
Interaction guard.
Definition StructureAnalyzer.hpp:143
StructureAnalyzer & operator=(const StructureAnalyzer &)=delete
const correlation::core::Cell & cell() const noexcept
Gets a reference to the periodic cell.
Definition StructureAnalyzer.hpp:84
StructureAnalyzer(std::shared_ptr< const correlation::core::Cell > cell, real_t cutoff, BondCutoffMatrix bond_cutoffs, bool ignore_periodic_self_interactions=true, real_t r_bin_width=static_cast< real_t >(0.02))
Constructs a StructureAnalyzer using shared ownership of the Cell.
Definition StructureAnalyzer.cpp:54
std::atomic< bool > angles_computed_
Flag indicating if angles are computed.
Definition StructureAnalyzer.hpp:151
const DihedralTensor & dihedrals() const
Gets a multi-dimensional tensor containing dihedral angles. Computed lazily on first access in a thre...
Definition StructureAnalyzer.cpp:140
std::shared_ptr< const correlation::core::Cell > cellPtr() const noexcept
Gets the shared pointer to the periodic cell.
Definition StructureAnalyzer.hpp:90
~StructureAnalyzer()=default
std::mutex compute_mutex_
Mutex guarding lazy computation.
Definition StructureAnalyzer.hpp:150
std::atomic< bool > dihedrals_computed_
Flag indicating if dihedrals are computed.
Definition StructureAnalyzer.hpp:152
const correlation::core::NeighborGraph & neighborGraph() const
Gets the corresponding neighbor graph capturing topological connections.
Definition StructureAnalyzer.hpp:121
std::shared_ptr< const correlation::core::Cell > cell_
Shared pointer to the periodic cell.
Definition StructureAnalyzer.hpp:139
const AngleTensor & angles() const
Gets a multi-dimensional tensor containing bond angles. Computed lazily on first access in a thread-s...
Definition StructureAnalyzer.cpp:135
AngleTensor angle_tensor_
Bond angle storage (lazy).
Definition StructureAnalyzer.hpp:147
RawHistogramTensor raw_histograms_
Raw distance histogram storage.
Definition StructureAnalyzer.hpp:146
real_t cutoff_sq_
Squared cutoff for efficiency.
Definition StructureAnalyzer.hpp:140
BondCutoffMatrix bond_cutoffs_
Internal bond cutoffs matrix.
Definition StructureAnalyzer.hpp:141
StructureAnalyzer(const StructureAnalyzer &)=delete
std::vector< std::vector< std::vector< std::vector< real_t > > > > AngleTensor
Tensor for storing bond angles [center][outer1][outer2][angle_index].
Definition StructureAnalyzer.hpp:38
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
std::vector< std::vector< std::vector< real_t > > > RawHistogramTensor
Tensor for storing raw distance histogram bins [element1][element2][bin_index].
Definition StructureAnalyzer.hpp:36
const RawHistogramTensor & rawHistograms() const
Gets a multi-dimensional tensor containing raw distance histogram bins.
Definition StructureAnalyzer.hpp:98
correlation::core::NeighborGraph neighbor_graph_
Graph of topological bonds.
Definition StructureAnalyzer.hpp:145
Represents the simulation cell (periodic box).
Definition Cell.hpp:30
Compressed Sparse Row (CSR) based graph representing atomic connectivity.
Definition NeighborGraph.hpp:55
Definition AnalysisTypes.hpp:11
double real_t
Definition Precision.hpp:18