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

Service calculating and managing covalent bond cutoffs on trajectories and cells. More...

#include <BondCutoffService.hpp>

Public Member Functions

 BondCutoffService ()=default
 ~BondCutoffService ()=default
 BondCutoffService (const BondCutoffService &)=default
BondCutoffService & operator= (const BondCutoffService &)=default
 BondCutoffService (BondCutoffService &&) noexcept=default
BondCutoffService & operator= (BondCutoffService &&) noexcept=default

Static Public Member Functions

static correlation::analysis::BondCutoffMatrix getRecommendedBondCutoffs (correlation::core::Trajectory *trajectory)
 Calculates recommended bond cutoffs (min and max) from trajectory.
static correlation::analysis::BondCutoffMatrix applyScaledBondCutoffs (correlation::core::Trajectory *trajectory, real_t scale_factor)
 Scales recommended covalent cutoffs by a multiplicative factor and assigns them.
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.
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.
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.
static void setBondCutoffs (correlation::core::Trajectory *trajectory, const correlation::analysis::BondCutoffMatrix &cutoffs)
 Sets the bond cutoffs on the target trajectory.

Detailed Description

Service calculating and managing covalent bond cutoffs on trajectories and cells.

Constructor & Destructor Documentation

◆ BondCutoffService() [1/3]

correlation::app::BondCutoffService::BondCutoffService ( )
default
Here is the caller graph for this function:

◆ ~BondCutoffService()

correlation::app::BondCutoffService::~BondCutoffService ( )
default

◆ BondCutoffService() [2/3]

correlation::app::BondCutoffService::BondCutoffService ( const BondCutoffService & )
default
Here is the call graph for this function:

◆ BondCutoffService() [3/3]

correlation::app::BondCutoffService::BondCutoffService ( BondCutoffService && )
defaultnoexcept
Here is the call graph for this function:

Member Function Documentation

◆ applyScaledBondCutoffs()

correlation::analysis::BondCutoffMatrix correlation::app::BondCutoffService::applyScaledBondCutoffs ( correlation::core::Trajectory * trajectory,
real_t scale_factor )
static

Scales recommended covalent cutoffs by a multiplicative factor and assigns them.

Parameters
[in,out]trajectoryTarget trajectory instance.
[in]scale_factorScaling factor (> 0).
Returns
Newly scaled BondCutoffMatrix.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getBondCutoff()

real_t correlation::app::BondCutoffService::getBondCutoff ( const correlation::core::Trajectory * trajectory,
size_t type1,
size_t type2 )
staticnodiscardnoexcept

Gets maximum cutoff for a pair of element type indices.

Here is the caller graph for this function:

◆ getMinBondCutoff()

real_t correlation::app::BondCutoffService::getMinBondCutoff ( const correlation::core::Trajectory * trajectory,
size_t type1,
size_t type2 )
staticnodiscardnoexcept

Gets minimum cutoff for a pair of element type indices.

Here is the caller graph for this function:

◆ getRecommendedBondCutoffs()

correlation::analysis::BondCutoffMatrix correlation::app::BondCutoffService::getRecommendedBondCutoffs ( correlation::core::Trajectory * trajectory)
staticnodiscard

Calculates recommended bond cutoffs (min and max) from trajectory.

Parameters
[in,out]trajectoryTrajectory instance on which cutoffs are precomputed.
Returns
Computed BondCutoffMatrix or empty matrix if trajectory is null/empty.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ operator=() [1/2]

BondCutoffService & correlation::app::BondCutoffService::operator= ( BondCutoffService && )
defaultnoexcept
Here is the call graph for this function:

◆ operator=() [2/2]

BondCutoffService & correlation::app::BondCutoffService::operator= ( const BondCutoffService & )
default
Here is the call graph for this function:

◆ setBondCutoffs()

void correlation::app::BondCutoffService::setBondCutoffs ( correlation::core::Trajectory * trajectory,
const correlation::analysis::BondCutoffMatrix & cutoffs )
static

Sets the bond cutoffs on the target trajectory.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setUniformBondCutoff()

correlation::analysis::BondCutoffMatrix correlation::app::BondCutoffService::setUniformBondCutoff ( const correlation::core::Cell * cell,
correlation::core::Trajectory * trajectory,
real_t min_cutoff,
real_t max_cutoff )
static

Constructs uniform min and max cutoff distances across all atom pairs.

Parameters
[in]cellActive unit cell defining element count.
[in,out]trajectoryOptional trajectory to update with new cutoffs.
[in]min_cutoffMinimum cutoff distance in Å.
[in]max_cutoffMaximum cutoff distance in Å.
Returns
Symmetrized uniform BondCutoffMatrix.
Here is the call graph for this function:
Here is the caller graph for this function:

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