|
n2p2 - A neural network potential package
|
Setup data for Ewald summation. More...
#include <EwaldSetup.h>

Public Member Functions | |
| EwaldSetup () | |
| Default constructor. | |
| void | setTruncMethod (EWALDTruncMethod const m) |
| EWALDTruncMethod | getTruncMethod () const |
| double | getMaxCharge () const |
| double | getPrecision () const |
| double | getMaxQSigma () const |
| void | setMaxQSigma (double const maxWidth) |
| Setter for maximum width of charges. | |
| void | readFromArgs (std::vector< std::string > const &args) |
| Setup parameters from argument vector. | |
| void | toNormalizedUnits (double const convEnergy, double const convLength) |
| Convert cutoff parameters to normalized units. | |
| void | calculateParameters (double const newVolume, size_t const newNumAtoms) |
| Compute eta, rCut and kCut. | |
| void | logEwaldCutoffs (Log &log, double const lengthConversion) const |
| Use after Ewald summation! | |
Public Attributes | |
| EwaldParameters | params |
Private Member Functions | |
| bool | publishedNewCutoffs () const |
| bool | isEstimateReliable () const |
Private Attributes | |
| EWALDTruncMethod | truncMethod |
| Method for determining real and k space cutoffs. | |
| EwaldGlobalSettings | GlobSett |
| std::unique_ptr< IEwaldTrunc > | truncImpl |
Setup data for Ewald summation.
Definition at line 37 of file EwaldSetup.h.
| EwaldSetup::EwaldSetup | ( | ) |
Default constructor.
Definition at line 29 of file EwaldSetup.cpp.
References GlobSett, nnp::JACKSON_CATLOW, params, truncImpl, and truncMethod.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Setter for maximum width of charges.
| maxWidth | Maximum width of gaussian charges. |
Definition at line 89 of file EwaldSetup.h.
References GlobSett.
| void EwaldSetup::readFromArgs | ( | std::vector< std::string > const & | args | ) |
Setup parameters from argument vector.
| [in] | args | Vector containing arguments of input file. |
Definition at line 36 of file EwaldSetup.cpp.
References GlobSett, nnp::JACKSON_CATLOW, params, truncImpl, and truncMethod.
| void EwaldSetup::toNormalizedUnits | ( | double const | convEnergy, |
| double const | convLength ) |
Convert cutoff parameters to normalized units.
| convEnergy | Conversion factor for energy. |
| convLength | Conversion factor for length. |
Definition at line 74 of file EwaldSetup.cpp.
References GlobSett, nnp::KOLAFA_PERRAM, params, and truncMethod.
| void EwaldSetup::calculateParameters | ( | double const | newVolume, |
| size_t const | newNumAtoms ) |
Compute eta, rCut and kCut.
| [in] | newVolume | Volume of the real space cell. |
| [in] | newNumAtoms | Number of atoms in system. |
Definition at line 88 of file EwaldSetup.cpp.
References GlobSett, params, and truncImpl.
Referenced by nnp::Structure::calculateMaxCutoffRadiusOverall().

| void EwaldSetup::logEwaldCutoffs | ( | Log & | log, |
| double const | lengthConversion ) const |
Use after Ewald summation!
Definition at line 95 of file EwaldSetup.cpp.
References nnp::EwaldParameters::eta, isEstimateReliable(), nnp::EwaldParameters::kCut, params, publishedNewCutoffs(), nnp::EwaldParameters::rCut, and nnp::strpr().

|
private |
Definition at line 115 of file EwaldSetup.cpp.
References truncImpl.
Referenced by logEwaldCutoffs().

|
private |
Definition at line 119 of file EwaldSetup.cpp.
References GlobSett, params, and truncImpl.
Referenced by logEwaldCutoffs().

| EwaldParameters nnp::EwaldSetup::params |
Definition at line 39 of file EwaldSetup.h.
Referenced by nnp::Structure::calculateDAdrQ(), nnp::Structure::calculateElectrostaticEnergy(), nnp::Structure::calculateMaxCutoffRadiusOverall(), calculateParameters(), EwaldSetup(), isEstimateReliable(), logEwaldCutoffs(), readFromArgs(), nnp::KspaceGrid::setup(), and toNormalizedUnits().
|
private |
Method for determining real and k space cutoffs.
Definition at line 80 of file EwaldSetup.h.
Referenced by EwaldSetup(), getTruncMethod(), readFromArgs(), setTruncMethod(), and toNormalizedUnits().
|
private |
Definition at line 81 of file EwaldSetup.h.
Referenced by calculateParameters(), EwaldSetup(), getMaxCharge(), getMaxQSigma(), getPrecision(), isEstimateReliable(), readFromArgs(), setMaxQSigma(), and toNormalizedUnits().
|
private |
Definition at line 83 of file EwaldSetup.h.
Referenced by calculateParameters(), EwaldSetup(), isEstimateReliable(), publishedNewCutoffs(), and readFromArgs().