Correlation 4.10.0
An Analysis Tool for Liquids and for Amorphous Solids
Loading...
Searching...
No Matches
VDOSCalculator.hpp
Go to the documentation of this file.
1
8
9#pragma once
10
13
14namespace correlation::core {
15class Cell;
16}
17
19
30
41
47public:
48 [[nodiscard]] std::string_view getName() const override {
49 return "Vibrational Density of States";
50 }
51 [[nodiscard]] std::string_view getShortName() const override { return "VDOS"; }
52 [[nodiscard]] std::string_view getGroup() const override { return "Dynamical"; }
53 [[nodiscard]] std::string_view getDescription() const override {
54 return "Computes the Vibrational Density of States (VDOS).";
55 }
56
57 [[nodiscard]] bool isFrameCalculator() const override { return false; }
58 [[nodiscard]] bool isTrajectoryCalculator() const override { return true; }
59
62 const correlation::analysis::AnalysisSettings &settings) const override;
63
73 [[nodiscard]] static VDOSDecomposition
75 const VDOSParams &params = {}, const correlation::core::Cell *cell = nullptr);
76
85 [[nodiscard]] static correlation::analysis::Histogram
86 calculate(const correlation::analysis::Histogram &vacf_hist, const VDOSParams &params = {},
87 const correlation::core::Cell *cell = nullptr);
88
98 [[nodiscard]] static real_t computeRecommendedMaxFrequency(const correlation::core::Cell &cell,
99 real_t time_step) noexcept;
100};
101
102} // namespace correlation::calculators
Abstract base class for all analysis calculators.
Manager for distribution function calculations (RDF, PAD, S(Q), etc.).
double real_t
Definition Precision.hpp:18
Manages the calculation and storage of various distribution functions.
Definition DistributionFunctions.hpp:259
Computes the Vibrational Density of States (VDOS) from the VACF.
Definition VDOSCalculator.hpp:46
std::string_view getName() const override
Returns the unique identifier/name of the calculator.
Definition VDOSCalculator.hpp:48
bool isTrajectoryCalculator() const override
Check if this calculator runs on the whole trajectory (e.g. VACF).
Definition VDOSCalculator.hpp:58
bool isFrameCalculator() const override
Check if this calculator runs per-frame (e.g. RDF, PAD).
Definition VDOSCalculator.hpp:57
static VDOSDecomposition calculateDecomposed(const correlation::analysis::Histogram &vacf_hist, const VDOSParams &params={}, const correlation::core::Cell *cell=nullptr)
Computes 2PT-decomposed vibrational and translational DoS histograms on ω >= 0.
Definition VDOSCalculator.cpp:349
std::string_view getDescription() const override
Returns a brief description of the calculator's purpose.
Definition VDOSCalculator.hpp:53
std::string_view getGroup() const override
Returns the UI group this calculator belongs to (e.g., "Radial", "Angular", "Dynamic",...
Definition VDOSCalculator.hpp:52
static real_t computeRecommendedMaxFrequency(const correlation::core::Cell &cell, real_t time_step) noexcept
Computes the recommended maximum positive vDoS frequency based on the lightest element.
Definition VDOSCalculator.cpp:289
void calculateTrajectory(correlation::analysis::DistributionFunctions &dists, const correlation::core::Trajectory &traj, const correlation::analysis::AnalysisSettings &settings) const override
Calculate multi-frame properties or post-processing. Called once after all frames are accumulated.
Definition VDOSCalculator.cpp:318
static correlation::analysis::Histogram calculate(const correlation::analysis::Histogram &vacf_hist, const VDOSParams &params={}, const correlation::core::Cell *cell=nullptr)
Computes the vibrational-only VDOS g_vib(ω) on real energies (meV, >= 0).
Definition VDOSCalculator.cpp:388
std::string_view getShortName() const override
Returns a short, UI-friendly name of the calculator (e.g. "g_r", "S_q").
Definition VDOSCalculator.hpp:51
Represents the simulation cell (periodic box).
Definition Cell.hpp:30
This class stores a series of snapshots of a system.
Definition Trajectory.hpp:32
VDOSWindowType
Time-domain tapering half-window applied to the VACF prior to Fourier cosine transform.
Definition AnalysisTypes.hpp:448
@ Hann
Half-Hann: 0.5 * (1 + cos(pi * t / t_max)) — exact zero at t_max (default).
Definition AnalysisTypes.hpp:449
Definition OptionsSyncService.hpp:18
Definition ITrajectoryCalculator.hpp:13
double real_t
Definition Precision.hpp:18
Configuration settings for distribution function analysis.
Definition DistributionFunctions.hpp:106
Container for a single calculated distribution function.
Definition DistributionFunctions.hpp:226
Result of 2PT spectral decomposition into vibrational and translational modes.
Definition VDOSCalculator.hpp:34
real_t fluidicity
2PT fluidicity parameter f ∈ [0, 1] (0 = solid, 1 = gas).
Definition VDOSCalculator.hpp:39
correlation::analysis::Histogram translational
Translational/diffusive DoS g_trans(ω), ∫g_trans d(ħω) = 1.
Definition VDOSCalculator.hpp:38
correlation::analysis::Histogram vibrational
Vibrational-only VDOS g_vib(ω), g_vib(0) = 0, ∫g_vib d(ħω) = 1.
Definition VDOSCalculator.hpp:36
Parameters for the Vibrational Density of States (VDOS) calculation.
Definition VDOSCalculator.hpp:23
correlation::analysis::VDOSWindowType window_type
Time-domain tapering half-window.
Definition VDOSCalculator.hpp:25
real_t max_real_freq
Maximum positive frequency bound in THz.
Definition VDOSCalculator.hpp:24
size_t zero_pad_factor
Zero-padding multiplier for FFT interpolation (>= 1).
Definition VDOSCalculator.hpp:27
bool normalize
Area-normalize VDOS over [0, E_Nyquist] to 1 (units: meV⁻¹).
Definition VDOSCalculator.hpp:28