Correlation 4.10.0
An Analysis Tool for Liquids and for Amorphous Solids
Loading...
Searching...
No Matches
correlation::analysis::CutoffSanityChecker Class Reference

Validates bond cutoff matrices against simulation cell periodic boundary conditions and fundamental physical coordination chemistry constraints. More...

#include <CutoffSanityChecker.hpp>

Public Member Functions

 CutoffSanityChecker ()=delete

Static Public Member Functions

static auto checkCutoffs (const BondCutoffMatrix &matrix, const std::vector< core::Element > &elements, const core::Cell *cell=nullptr) -> SanityReport
 Evaluates the sanity of an entire bond cutoff matrix against periodic box geometry and physical constraints.
static auto applyFix (BondCutoffMatrix &matrix, const std::vector< core::Element > &elements, const core::Cell *cell, SanityFixAction action) -> bool
 Automatically applies a recommended repair action to the bond cutoff matrix.

Detailed Description

Validates bond cutoff matrices against simulation cell periodic boundary conditions and fundamental physical coordination chemistry constraints.

Constructor & Destructor Documentation

◆ CutoffSanityChecker()

correlation::analysis::CutoffSanityChecker::CutoffSanityChecker ( )
delete

Member Function Documentation

◆ applyFix()

auto correlation::analysis::CutoffSanityChecker::applyFix ( BondCutoffMatrix & matrix,
const std::vector< core::Element > & elements,
const core::Cell * cell,
SanityFixAction action )->bool
static

Automatically applies a recommended repair action to the bond cutoff matrix.

Parameters
[in,out]matrixThe bond cutoff matrix to modify.
[in]elementsList of elements present in the system.
[in]cellPointer to the simulation cell.
[in]actionThe remediation action code to execute.
Returns
True if the matrix was successfully modified, false otherwise.
Here is the caller graph for this function:

◆ checkCutoffs()

auto correlation::analysis::CutoffSanityChecker::checkCutoffs ( const BondCutoffMatrix & matrix,
const std::vector< core::Element > & elements,
const core::Cell * cell = nullptr )->SanityReport
staticnodiscard

Evaluates the sanity of an entire bond cutoff matrix against periodic box geometry and physical constraints.

Parameters
[in]matrixThe bond cutoff matrix to evaluate.
[in]elementsList of elements present in the system.
[in]cellPointer to the simulation cell (optional, used for PBC checks).
Returns
A SanityReport containing severity, title, diagnostic message, and fix action.
Here is the caller graph for this function:

The documentation for this class was generated from the following files: