|
n2p2 - A neural network potential package
|
Intermediate class for SFs based on cutoff functions. More...
#include <SymFncBaseCutoff.h>


Public Member Functions | |
| virtual std::vector< std::string > | parameterInfo () const |
| Get description with parameter names and values. | |
| void | setCutoffFunction (CutoffFunction::CutoffType cutoffType, double cutoffAlpha) |
| Set cutoff function type and parameter. | |
| double | getCutoffAlpha () const |
| Get private cutoffAlpha member variable. | |
| std::string | getSubtype () const |
| Get private subtype member variable. | |
| CutoffFunction::CutoffType | getCutoffType () const |
| Get private cutoffType member variable. | |
Public Member Functions inherited from nnp::SymFnc | |
| virtual | ~SymFnc () |
| Virtual destructor. | |
| virtual bool | operator== (SymFnc const &rhs) const =0 |
| Overload == operator. | |
| virtual bool | operator< (SymFnc const &rhs) const =0 |
| Overload < operator. | |
| bool | operator!= (SymFnc const &rhs) const |
| Overload != operator. | |
| bool | operator> (SymFnc const &rhs) const |
| Overload > operator. | |
| bool | operator<= (SymFnc const &rhs) const |
| Overload <= operator. | |
| bool | operator>= (SymFnc const &rhs) const |
| Overload >= operator. | |
| virtual void | setParameters (std::string const ¶meterString)=0 |
| Set parameters. | |
| virtual void | changeLengthUnit (double convLength)=0 |
| Change length unit. | |
| virtual std::string | getSettingsLine () const =0 |
| Get settings file line from currently set parameters. | |
| virtual void | calculate (Atom &atom, bool const derivatives) const =0 |
| Calculate symmetry function for one atom. | |
| virtual std::string | parameterLine () const =0 |
| Give symmetry function parameters in one line. | |
| void | setScalingType (ScalingType scalingType, std::string statisticsLine, double Smin, double Smax) |
| Set symmetry function scaling type. | |
| double | scale (double value) const |
| Apply symmetry function scaling and/or centering. | |
| double | unscale (double value) const |
| Undo symmetry function scaling and/or centering. | |
| std::size_t | getType () const |
| Get private type member variable. | |
| std::size_t | getIndex () const |
| Get private index member variable. | |
| std::size_t | getLineNumber () const |
| Get private lineNumber member variable. | |
| std::size_t | getEc () const |
| Get private ec member variable. | |
| std::size_t | getMinNeighbors () const |
| Get private minNeighbors member variable. | |
| double | getRc () const |
| Get private rc member variable. | |
| double | getGmin () const |
| Get private Gmin member variable. | |
| double | getGmax () const |
| Get private Gmax member variable. | |
| double | getScalingFactor () const |
| Get private scalingFactor member variable. | |
| double | getConvLength () const |
| Get private convLength member variable. | |
| std::set< std::string > | getParameters () const |
| Get private parameters member variable. | |
| std::vector< std::size_t > | getIndexPerElement () const |
| Get private indexPerElement member variable. | |
| void | setIndex (std::size_t index) |
| Set private index member variable. | |
| void | setIndexPerElement (std::size_t elementIndex, std::size_t index) |
| Set private indexPerElement member variable. | |
| void | setLineNumber (std::size_t lineNumber) |
| Set line number. | |
| std::string | scalingLine () const |
| Get string with scaling information. | |
| virtual double | calculateRadialPart (double distance) const =0 |
| Calculate (partial) symmetry function value for one given distance. | |
| virtual double | calculateAngularPart (double angle) const =0 |
| Calculate (partial) symmetry function value for one given angle. | |
| virtual bool | checkRelevantElement (std::size_t index) const =0 |
| Check whether symmetry function is relevant for given element. | |
| virtual std::vector< std::string > | getCacheIdentifiers () const |
| Get unique cache identifiers. | |
| void | addCacheIndex (std::size_t element, std::size_t cacheIndex, std::string cacheIdentifier) |
| Add one cache index for given neighbor element and check identifier. | |
| std::vector< std::vector< std::size_t > > | getCacheIndices () const |
| Getter for cacheIndices. | |
Protected Member Functions | |
| SymFncBaseCutoff (std::size_t type, ElementMap const &) | |
| Constructor, initializes type. | |
Protected Member Functions inherited from nnp::SymFnc | |
| SymFnc (std::size_t type, ElementMap const &) | |
| Constructor, initializes type. | |
| std::string | getPrintFormat () const |
| Generate format string for symmetry function parameter printing. | |
Protected Attributes | |
| double | cutoffAlpha |
| Cutoff parameter \(\alpha\). | |
| std::string | subtype |
| Subtype string (specifies cutoff type). | |
| CutoffFunction | fc |
| Cutoff function used by this symmetry function. | |
| CutoffFunction::CutoffType | cutoffType |
| Cutoff type used by this symmetry function. | |
Protected Attributes inherited from nnp::SymFnc | |
| std::size_t | type |
| Symmetry function type. | |
| ElementMap | elementMap |
| Copy of element map. | |
| std::size_t | index |
| Symmetry function index (per element). | |
| std::size_t | lineNumber |
| Line number. | |
| std::size_t | ec |
| Element index of center atom. | |
| std::size_t | minNeighbors |
| Minimum number of neighbors required. | |
| double | Smin |
| Minimum for scaling range. | |
| double | Smax |
| Maximum for scaling range. | |
| double | Gmin |
| Minimum unscaled symmetry function value. | |
| double | Gmax |
| Maximum unscaled symmetry function value. | |
| double | Gmean |
| Mean unscaled symmetry function value. | |
| double | Gsigma |
| Sigma of unscaled symmetry function values. | |
| double | rc |
| Cutoff radius \(r_c\). | |
| double | scalingFactor |
| Scaling factor. | |
| double | convLength |
| Data set normalization length conversion factor. | |
| ScalingType | scalingType |
| Symmetry function scaling type used by this symmetry function. | |
| std::set< std::string > | parameters |
| Set with symmetry function parameter IDs (lookup for printing). | |
| std::vector< std::size_t > | indexPerElement |
| Per-element index for derivative memory in Atom::Neighbor::dGdr arrays. | |
| std::vector< std::vector< std::size_t > > | cacheIndices |
| Cache indices for each element. | |
Additional Inherited Members | |
Public Types inherited from nnp::SymFnc | |
| enum | ScalingType { ST_NONE , ST_SCALE , ST_CENTER , ST_SCALECENTER , ST_SCALESIGMA } |
| List of available scaling types. More... | |
Protected Types inherited from nnp::SymFnc | |
| typedef std::map< std::string, std::pair< std::string, std::string > > | PrintFormat |
| typedef std::vector< std::string > | PrintOrder |
Static Protected Member Functions inherited from nnp::SymFnc | |
| static PrintFormat const | initializePrintFormat () |
| Initialize static print format map for all possible parameters. | |
| static PrintOrder const | initializePrintOrder () |
| Initialize static print order vector for all possible parameters. | |
Static Protected Attributes inherited from nnp::SymFnc | |
| static std::size_t const | sfinfoWidth = 12 |
| Width of the SFINFO parameter description field (see parameterInfo()). | |
| static PrintFormat const | printFormat = initializePrintFormat() |
| Map of parameter format strings and empty strings. | |
| static PrintOrder const | printOrder = initializePrintOrder() |
| Vector of parameters in order of printing. | |
Intermediate class for SFs based on cutoff functions.
Definition at line 30 of file SymFncBaseCutoff.h.
|
protected |
Constructor, initializes type.
Definition at line 51 of file SymFncBaseCutoff.cpp.
References cutoffAlpha, cutoffType, nnp::SymFnc::elementMap, nnp::SymFnc::parameters, subtype, nnp::SymFnc::SymFnc(), and nnp::SymFnc::type.
Referenced by nnp::SymFncBaseExpAng::SymFncBaseExpAng(), nnp::SymFncExpAngnWeighted::SymFncExpAngnWeighted(), nnp::SymFncExpRad::SymFncExpRad(), and nnp::SymFncExpRadWeighted::SymFncExpRadWeighted().


|
virtual |
Get description with parameter names and values.
Reimplemented from nnp::SymFnc.
Reimplemented in nnp::SymFncBaseExpAng, nnp::SymFncExpAngnWeighted, nnp::SymFncExpRad, and nnp::SymFncExpRadWeighted.
Definition at line 24 of file SymFncBaseCutoff.cpp.
References cutoffAlpha, nnp::pad(), nnp::SymFnc::parameterInfo(), nnp::SymFnc::sfinfoWidth, nnp::strpr(), and subtype.
Referenced by nnp::SymFncBaseExpAng::parameterInfo(), nnp::SymFncExpAngnWeighted::parameterInfo(), nnp::SymFncExpRad::parameterInfo(), and nnp::SymFncExpRadWeighted::parameterInfo().


| void SymFncBaseCutoff::setCutoffFunction | ( | CutoffFunction::CutoffType | cutoffType, |
| double | cutoffAlpha ) |
Set cutoff function type and parameter.
| [in] | cutoffType | Desired cutoff function for this symmetry function. |
| [in] | cutoffAlpha | Cutoff function parameter \(\alpha\). |
Definition at line 38 of file SymFncBaseCutoff.cpp.
References cutoffAlpha, cutoffType, fc, nnp::strpr(), and subtype.
Referenced by nnp::Element::setCutoffFunction().


|
inline |
Get private cutoffAlpha member variable.
Definition at line 78 of file SymFncBaseCutoff.h.
References cutoffAlpha.
Referenced by nnp::SymGrpExpAngn::addMember(), nnp::SymGrpExpAngnWeighted::addMember(), nnp::SymGrpExpAngw::addMember(), nnp::SymGrpExpRad::addMember(), and nnp::SymGrpExpRadWeighted::addMember().

|
inline |
Get private subtype member variable.
Definition at line 79 of file SymFncBaseCutoff.h.
References subtype.
Referenced by nnp::SymGrpExpAngn::addMember(), nnp::SymGrpExpAngnWeighted::addMember(), nnp::SymGrpExpAngw::addMember(), nnp::SymGrpExpRad::addMember(), and nnp::SymGrpExpRadWeighted::addMember().

|
inline |
Get private cutoffType member variable.
Definition at line 81 of file SymFncBaseCutoff.h.
References cutoffType.
Referenced by nnp::SymGrpExpAngn::addMember(), nnp::SymGrpExpAngnWeighted::addMember(), nnp::SymGrpExpAngw::addMember(), nnp::SymGrpExpRad::addMember(), and nnp::SymGrpExpRadWeighted::addMember().

|
protected |
Cutoff parameter \(\alpha\).
Definition at line 61 of file SymFncBaseCutoff.h.
Referenced by nnp::SymFncBaseExpAng::changeLengthUnit(), nnp::SymFncExpAngnWeighted::changeLengthUnit(), nnp::SymFncExpRad::changeLengthUnit(), nnp::SymFncExpRadWeighted::changeLengthUnit(), nnp::SymFncBaseExpAng::getCacheIdentifiers(), nnp::SymFncExpAngnWeighted::getCacheIdentifiers(), nnp::SymFncExpRad::getCacheIdentifiers(), nnp::SymFncExpRadWeighted::getCacheIdentifiers(), getCutoffAlpha(), nnp::SymFncExpAngn::operator<(), nnp::SymFncExpAngnWeighted::operator<(), nnp::SymFncExpAngw::operator<(), nnp::SymFncExpRad::operator<(), nnp::SymFncExpRadWeighted::operator<(), nnp::SymFncExpAngn::operator==(), nnp::SymFncExpAngnWeighted::operator==(), nnp::SymFncExpAngw::operator==(), nnp::SymFncExpRad::operator==(), nnp::SymFncExpRadWeighted::operator==(), parameterInfo(), nnp::SymFncBaseExpAng::parameterLine(), nnp::SymFncExpAngnWeighted::parameterLine(), nnp::SymFncExpRad::parameterLine(), nnp::SymFncExpRadWeighted::parameterLine(), setCutoffFunction(), nnp::SymFncBaseExpAng::setParameters(), nnp::SymFncExpAngnWeighted::setParameters(), nnp::SymFncExpRad::setParameters(), nnp::SymFncExpRadWeighted::setParameters(), and SymFncBaseCutoff().
|
protected |
Subtype string (specifies cutoff type).
Definition at line 63 of file SymFncBaseCutoff.h.
Referenced by nnp::SymFncBaseExpAng::getCacheIdentifiers(), nnp::SymFncExpAngnWeighted::getCacheIdentifiers(), nnp::SymFncExpRad::getCacheIdentifiers(), nnp::SymFncExpRadWeighted::getCacheIdentifiers(), getSubtype(), parameterInfo(), nnp::SymFncBaseExpAng::parameterLine(), nnp::SymFncExpAngnWeighted::parameterLine(), nnp::SymFncExpRad::parameterLine(), nnp::SymFncExpRadWeighted::parameterLine(), setCutoffFunction(), and SymFncBaseCutoff().
|
protected |
Cutoff function used by this symmetry function.
Definition at line 65 of file SymFncBaseCutoff.h.
Referenced by nnp::SymFncExpAngn::calculate(), nnp::SymFncExpAngnWeighted::calculate(), nnp::SymFncExpAngw::calculate(), nnp::SymFncExpRad::calculate(), nnp::SymFncExpRadWeighted::calculate(), nnp::SymFncBaseExpAng::calculateRadialPart(), nnp::SymFncExpAngnWeighted::calculateRadialPart(), nnp::SymFncExpRad::calculateRadialPart(), nnp::SymFncExpRadWeighted::calculateRadialPart(), nnp::SymFncBaseExpAng::changeLengthUnit(), nnp::SymFncExpAngnWeighted::changeLengthUnit(), nnp::SymFncExpRad::changeLengthUnit(), nnp::SymFncExpRadWeighted::changeLengthUnit(), setCutoffFunction(), nnp::SymFncBaseExpAng::setParameters(), nnp::SymFncExpAngnWeighted::setParameters(), nnp::SymFncExpRad::setParameters(), and nnp::SymFncExpRadWeighted::setParameters().
|
protected |
Cutoff type used by this symmetry function.
Definition at line 67 of file SymFncBaseCutoff.h.
Referenced by getCutoffType(), nnp::SymFncExpAngn::operator<(), nnp::SymFncExpAngnWeighted::operator<(), nnp::SymFncExpAngw::operator<(), nnp::SymFncExpRad::operator<(), nnp::SymFncExpRadWeighted::operator<(), nnp::SymFncExpAngn::operator==(), nnp::SymFncExpAngnWeighted::operator==(), nnp::SymFncExpAngw::operator==(), nnp::SymFncExpRad::operator==(), nnp::SymFncExpRadWeighted::operator==(), setCutoffFunction(), and SymFncBaseCutoff().