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

Stateless utility service providing atomic mass, time step, and cutoff calculations. More...

#include <PhysicsService.hpp>

Static Public Member Functions

static real_t computeRecommendedTimeStep (const correlation::core::Cell *cell)
 Computes a recommended simulation time step based on atomic masses in a cell.
static correlation::analysis::BondCutoffMatrix scaleBondCutoffs (const correlation::analysis::BondCutoffMatrix &cutoffs, real_t scale_factor)
 Scales a bond cutoff matrix by a linear scaling factor.
static correlation::analysis::BondCutoffMatrix buildUniformBondCutoffs (size_t num_elements, real_t min_cutoff, real_t max_cutoff)
 Constructs a uniform symmetric bond cutoff matrix for a given element count.

Detailed Description

Stateless utility service providing atomic mass, time step, and cutoff calculations.

Member Function Documentation

◆ buildUniformBondCutoffs()

correlation::analysis::BondCutoffMatrix correlation::app::PhysicsService::buildUniformBondCutoffs ( size_t num_elements,
real_t min_cutoff,
real_t max_cutoff )
staticnodiscard

Constructs a uniform symmetric bond cutoff matrix for a given element count.

Parameters
[in]num_elementsNumber of unique elements.
[in]min_cutoffMinimum cutoff distance in Å.
[in]max_cutoffMaximum cutoff distance in Å.
Returns
Symmetrized uniform bond cutoff matrix.
Here is the caller graph for this function:

◆ computeRecommendedTimeStep()

real_t correlation::app::PhysicsService::computeRecommendedTimeStep ( const correlation::core::Cell * cell)
staticnodiscard

Computes a recommended simulation time step based on atomic masses in a cell.

Parameters
[in]cellPointer to the cell whose elements determine the time step.
Returns
Recommended time step in femtoseconds (fs).
Here is the call graph for this function:
Here is the caller graph for this function:

◆ scaleBondCutoffs()

correlation::analysis::BondCutoffMatrix correlation::app::PhysicsService::scaleBondCutoffs ( const correlation::analysis::BondCutoffMatrix & cutoffs,
real_t scale_factor )
staticnodiscard

Scales a bond cutoff matrix by a linear scaling factor.

Parameters
[in]cutoffsSource bond cutoff matrix.
[in]scale_factorMultiplier applied to cutoff distances (squared internally).
Returns
Scaled bond cutoff matrix.
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: