n2p2 - A neural network potential package
nnp::EwaldStructureData Class Reference

#include <IEwaldTrunc.h>

Collaboration diagram for nnp::EwaldStructureData:

Public Member Functions

 EwaldStructureData (double const V, std::size_t const N)
 
 ~EwaldStructureData ()=default
 
double getVolume () const
 
std::size_t getNumAtoms () const
 

Private Attributes

double volume = 0.0
 
std::size_t numAtoms = 0
 

Detailed Description

Definition at line 22 of file IEwaldTrunc.h.

Constructor & Destructor Documentation

◆ EwaldStructureData()

nnp::EwaldStructureData::EwaldStructureData ( double const  V,
std::size_t const  N 
)
inline

Definition at line 25 of file IEwaldTrunc.h.

26 : volume{V}, numAtoms{N}
27 {};

◆ ~EwaldStructureData()

nnp::EwaldStructureData::~EwaldStructureData ( )
default

Member Function Documentation

◆ getVolume()

double nnp::EwaldStructureData::getVolume ( ) const
inline

Definition at line 30 of file IEwaldTrunc.h.

30{ return volume; };

References volume.

Referenced by nnp::EwaldTruncJackson::calculateParameters(), nnp::EwaldTruncKolafaFixR::calculateParameters(), and nnp::EwaldTruncKolafaOptEta::calculateParameters().

Here is the caller graph for this function:

◆ getNumAtoms()

std::size_t nnp::EwaldStructureData::getNumAtoms ( ) const
inline

Definition at line 31 of file IEwaldTrunc.h.

31{ return numAtoms; };

References numAtoms.

Referenced by nnp::EwaldTruncKolafaFixR::calculateParameters(), and nnp::EwaldTruncKolafaOptEta::calculateParameters().

Here is the caller graph for this function:

Member Data Documentation

◆ volume

double nnp::EwaldStructureData::volume = 0.0
private

Definition at line 33 of file IEwaldTrunc.h.

Referenced by getVolume().

◆ numAtoms

std::size_t nnp::EwaldStructureData::numAtoms = 0
private

Definition at line 34 of file IEwaldTrunc.h.

Referenced by getNumAtoms().


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