Correlation 4.10.0
An Analysis Tool for Liquids and for Amorphous Solids
Loading...
Searching...
No Matches
BondCutoffService.hpp
Go to the documentation of this file.
1
8
9#pragma once
10
12#include "core/Cell.hpp"
13#include "core/Trajectory.hpp"
14
15namespace correlation::app {
16
22public:
23 BondCutoffService() = default;
24 ~BondCutoffService() = default;
25
28 BondCutoffService(BondCutoffService &&) noexcept = default;
29 BondCutoffService &operator=(BondCutoffService &&) noexcept = default;
30
36 [[nodiscard]] static correlation::analysis::BondCutoffMatrix
37 getRecommendedBondCutoffs(correlation::core::Trajectory *trajectory);
38
45 static correlation::analysis::BondCutoffMatrix
46 applyScaledBondCutoffs(correlation::core::Trajectory *trajectory, real_t scale_factor);
47
56 static correlation::analysis::BondCutoffMatrix
57 setUniformBondCutoff(const correlation::core::Cell *cell,
58 correlation::core::Trajectory *trajectory, real_t min_cutoff,
59 real_t max_cutoff);
60
64 [[nodiscard]] static real_t getBondCutoff(const correlation::core::Trajectory *trajectory,
65 size_t type1, size_t type2) noexcept;
66
70 [[nodiscard]] static real_t getMinBondCutoff(const correlation::core::Trajectory *trajectory,
71 size_t type1, size_t type2) noexcept;
72
76 static void setBondCutoffs(correlation::core::Trajectory *trajectory,
77 const correlation::analysis::BondCutoffMatrix &cutoffs);
78};
79
80} // namespace correlation::app
Simulation cell structure with periodic boundary conditions.
Manager for distribution function calculations (RDF, PAD, S(Q), etc.).
Trajectory data structure for time-series atomistic simulations.
static void setBondCutoffs(correlation::core::Trajectory *trajectory, const correlation::analysis::BondCutoffMatrix &cutoffs)
Sets the bond cutoffs on the target trajectory.
Definition BondCutoffService.cpp:61
static correlation::analysis::BondCutoffMatrix getRecommendedBondCutoffs(correlation::core::Trajectory *trajectory)
Calculates recommended bond cutoffs (min and max) from trajectory.
Definition BondCutoffService.cpp:15
BondCutoffService & operator=(const BondCutoffService &)=default
static real_t getMinBondCutoff(const correlation::core::Trajectory *trajectory, size_t type1, size_t type2) noexcept
Gets minimum cutoff for a pair of element type indices.
Definition BondCutoffService.cpp:53
static real_t getBondCutoff(const correlation::core::Trajectory *trajectory, size_t type1, size_t type2) noexcept
Gets maximum cutoff for a pair of element type indices.
Definition BondCutoffService.cpp:45
BondCutoffService(BondCutoffService &&) noexcept=default
BondCutoffService(const BondCutoffService &)=default
static correlation::analysis::BondCutoffMatrix applyScaledBondCutoffs(correlation::core::Trajectory *trajectory, real_t scale_factor)
Scales recommended covalent cutoffs by a multiplicative factor and assigns them.
Definition BondCutoffService.cpp:24
static correlation::analysis::BondCutoffMatrix setUniformBondCutoff(const correlation::core::Cell *cell, correlation::core::Trajectory *trajectory, real_t min_cutoff, real_t max_cutoff)
Constructs uniform min and max cutoff distances across all atom pairs.
Definition BondCutoffService.cpp:33
Definition AnalysisTypes.hpp:11
Definition AppController.hpp:27
Definition ITrajectoryCalculator.hpp:13
Definition AnalysisTypes.hpp:11
double real_t
Definition Precision.hpp:18