ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
ModuleMD::SNAP::CellAccumulator Class Reference

#include <snap_calculator.h>

Collaboration diagram for ModuleMD::SNAP::CellAccumulator:

Public Member Functions

 CellAccumulator (std::size_t atom_count)
void add (std::size_t center_index, const std::vector< std::size_t > &neighbor_indices, const std::vector< Neighbor > &neighbors, const ForceResult &result)
double energy () const
const std::vector< std::array< double, 3 > > & forces () const
const std::array< double, 9 > & virial () const

Private Attributes

double energy_ = 0.0
std::vector< std::array< double, 3 > > forces_
std::array< double, 9 > virial_

Constructor & Destructor Documentation

◆ CellAccumulator()

ModuleMD::SNAP::CellAccumulator::CellAccumulator ( std::size_t atom_count)
explicit
Here is the call graph for this function:
Here is the caller graph for this function:

Member Function Documentation

◆ add()

void ModuleMD::SNAP::CellAccumulator::add ( std::size_t center_index,
const std::vector< std::size_t > & neighbor_indices,
const std::vector< Neighbor > & neighbors,
const ForceResult & result )
Here is the caller graph for this function:

◆ energy()

double ModuleMD::SNAP::CellAccumulator::energy ( ) const
Here is the caller graph for this function:

◆ forces()

const std::vector< std::array< double, 3 > > & ModuleMD::SNAP::CellAccumulator::forces ( ) const
Here is the caller graph for this function:

◆ virial()

const std::array< double, 9 > & ModuleMD::SNAP::CellAccumulator::virial ( ) const
Here is the caller graph for this function:

Member Data Documentation

◆ energy_

double ModuleMD::SNAP::CellAccumulator::energy_ = 0.0
private

◆ forces_

std::vector<std::array<double, 3> > ModuleMD::SNAP::CellAccumulator::forces_
private

◆ virial_

std::array<double, 9> ModuleMD::SNAP::CellAccumulator::virial_
private

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