|
n2p2 - A neural network potential package
|
#include <SymGrpBaseExpAng.h>


Public Member Functions | |
| virtual void | setScalingFactors () |
| Fill scalingFactors with values from member symmetry functions. | |
| virtual std::vector< std::string > | parameterLines () const |
| Give symmetry function group parameters on multiple lines. | |
Public Member Functions inherited from nnp::SymGrpBaseCutoff | |
| double | getRc () const |
| Get private rc member variable. | |
Public Member Functions inherited from nnp::SymGrp | |
| virtual | ~SymGrp () |
| Virtual destructor. | |
| virtual bool | operator== (SymGrp const &rhs) const =0 |
| Overload == operator. | |
| virtual bool | operator< (SymGrp const &rhs) const =0 |
| Overload < operator. | |
| bool | operator!= (SymGrp const &rhs) const |
| Overload != operator. | |
| bool | operator> (SymGrp const &rhs) const |
| Overload > operator. | |
| bool | operator<= (SymGrp const &rhs) const |
| Overload <= operator. | |
| bool | operator>= (SymGrp const &rhs) const |
| Overload >= operator. | |
| virtual bool | addMember (SymFnc const *const symmetryFunction)=0 |
| Potentially add a member to group. | |
| virtual void | sortMembers ()=0 |
| Sort member symmetry functions. | |
| virtual void | calculate (Atom &atom, bool const derivatives) const =0 |
| Calculate all symmetry functions of this group for one atom. | |
| void | setIndex (std::size_t index) |
| Set private index member variable. | |
| std::size_t | getIndex () const |
| Get private index member variable. | |
| std::size_t | getType () const |
| Get private type member variable. | |
| std::size_t | getEc () const |
| Get private ec member variable. | |
Protected Member Functions | |
| SymGrpBaseExpAng (std::size_t type, ElementMap const &elementMap) | |
| Constructor, sets type. | |
| virtual std::vector< SymFncBaseExpAng const * > | getMembers () const =0 |
| Get symmetry function members. | |
Protected Member Functions inherited from nnp::SymGrpBaseCutoff | |
| SymGrpBaseCutoff (std::size_t type, ElementMap const &elementMap) | |
| Constructor, sets type. | |
Protected Member Functions inherited from nnp::SymGrp | |
| SymGrp (std::size_t type, ElementMap const &elementMap) | |
| Constructor, sets type. | |
| std::string | getPrintFormatCommon () const |
| Get common parameter line format string. | |
| std::string | getPrintFormatMember () const |
| Get member parameter line format string. | |
Protected Attributes | |
| std::size_t | e1 |
| Element index of neighbor atom 1 (common feature). | |
| std::size_t | e2 |
| Element index of neighbor atom 2 (common feature). | |
| std::vector< bool > | calculateExp |
| Vector indicating whether exponential term needs to be calculated. | |
| std::vector< double > | factorNorm |
| Vector containing precalculated normalizing factor for each zeta. | |
| std::vector< double > | factorDeriv |
| Vector containing precalculated normalizing factor for derivatives. | |
| std::vector< bool > | useIntegerPow |
| Vector containing values of all member symmetry functions. | |
| std::vector< int > | zetaInt |
| Vector containing values of all member symmetry functions. | |
| std::vector< double > | eta |
| Vector containing values of all member symmetry functions. | |
| std::vector< double > | zeta |
| Vector containing values of all member symmetry functions. | |
| std::vector< double > | lambda |
| Vector containing values of all member symmetry functions. | |
| std::vector< double > | zetaLambda |
| Vector containing values of all member symmetry functions. | |
| std::vector< double > | rs |
| Vector containing values of all member symmetry functions. | |
Protected Attributes inherited from nnp::SymGrpBaseCutoff | |
| double | rc |
| Cutoff radius \(r_c\) (common feature). | |
| double | cutoffAlpha |
| Cutoff function parameter \(\alpha\) (common feature). | |
| std::string | subtype |
| Subtype string (specifies cutoff type) (common feature). | |
| CutoffFunction | fc |
| Cutoff function used by this symmetry function group. | |
| CutoffFunction::CutoffType | cutoffType |
| Cutoff type used by this symmetry function group (common feature). | |
Protected Attributes inherited from nnp::SymGrp | |
| std::size_t | type |
| Symmetry function type. | |
| ElementMap | elementMap |
| Copy of element map. | |
| std::size_t | index |
| Symmetry function group index. | |
| std::size_t | ec |
| Element index of center atom (common feature). | |
| double | convLength |
| Data set normalization length conversion factor. | |
| std::vector< size_t > | memberIndex |
| Vector containing indices of all member symmetry functions. | |
| std::vector< double > | scalingFactors |
| Scaling factors of all member symmetry functions. | |
| std::set< std::string > | parametersCommon |
| Set of common parameters IDs. | |
| std::set< std::string > | parametersMember |
| Set of common parameters IDs. | |
| std::vector< std::vector< std::size_t > > | memberIndexPerElement |
| Vector containing per-element indices of all member symmetry functions. | |
Additional Inherited Members | |
Protected Types inherited from nnp::SymGrp | |
| 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::SymGrp | |
| 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::SymGrp | |
| 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. | |
Definition at line 31 of file SymGrpBaseExpAng.h.
|
protected |
Constructor, sets type.
| [in] | type | Type of symmetry functions grouped. |
| [in] | elementMap | Element Map used. |
Definition at line 30 of file SymGrpBaseExpAng.cpp.
References e1, e2, nnp::SymGrp::elementMap, nnp::SymGrp::parametersCommon, nnp::SymGrp::parametersMember, nnp::SymGrpBaseCutoff::SymGrpBaseCutoff(), and nnp::SymGrp::type.
Referenced by nnp::SymGrpExpAngn::SymGrpExpAngn(), and nnp::SymGrpExpAngw::SymGrpExpAngw().


|
virtual |
Fill scalingFactors with values from member symmetry functions.
Implements nnp::SymGrp.
Definition at line 45 of file SymGrpBaseExpAng.cpp.
References factorNorm, getMembers(), and nnp::SymGrp::scalingFactors.

|
virtual |
Give symmetry function group parameters on multiple lines.
Implements nnp::SymGrp.
Definition at line 59 of file SymGrpBaseExpAng.cpp.
References calculateExp, nnp::SymGrp::convLength, nnp::SymGrpBaseCutoff::cutoffAlpha, e1, e2, nnp::SymGrp::ec, nnp::SymGrp::elementMap, nnp::SymGrp::getIndex(), getMembers(), nnp::SymGrp::getPrintFormatCommon(), nnp::SymGrp::getPrintFormatMember(), nnp::SymGrp::index, nnp::SymGrpBaseCutoff::rc, nnp::strpr(), nnp::SymGrpBaseCutoff::subtype, and nnp::SymGrp::type.

|
protectedpure virtual |
Get symmetry function members.
Implemented in nnp::SymGrpExpAngn, and nnp::SymGrpExpAngw.
Referenced by parameterLines(), and setScalingFactors().

|
protected |
Element index of neighbor atom 1 (common feature).
Definition at line 57 of file SymGrpBaseExpAng.h.
Referenced by nnp::SymGrpExpAngn::addMember(), nnp::SymGrpExpAngw::addMember(), nnp::SymGrpExpAngn::calculate(), nnp::SymGrpExpAngw::calculate(), nnp::SymGrpExpAngn::operator<(), nnp::SymGrpExpAngw::operator<(), nnp::SymGrpExpAngn::operator==(), nnp::SymGrpExpAngw::operator==(), parameterLines(), and SymGrpBaseExpAng().
|
protected |
Element index of neighbor atom 2 (common feature).
Definition at line 59 of file SymGrpBaseExpAng.h.
Referenced by nnp::SymGrpExpAngn::addMember(), nnp::SymGrpExpAngw::addMember(), nnp::SymGrpExpAngn::calculate(), nnp::SymGrpExpAngw::calculate(), nnp::SymGrpExpAngn::operator<(), nnp::SymGrpExpAngw::operator<(), nnp::SymGrpExpAngn::operator==(), nnp::SymGrpExpAngw::operator==(), parameterLines(), and SymGrpBaseExpAng().
|
protected |
Vector indicating whether exponential term needs to be calculated.
Definition at line 61 of file SymGrpBaseExpAng.h.
Referenced by nnp::SymGrpExpAngn::calculate(), nnp::SymGrpExpAngw::calculate(), parameterLines(), nnp::SymGrpExpAngn::sortMembers(), and nnp::SymGrpExpAngw::sortMembers().
|
protected |
Vector containing precalculated normalizing factor for each zeta.
Definition at line 63 of file SymGrpBaseExpAng.h.
Referenced by nnp::SymGrpExpAngn::calculate(), nnp::SymGrpExpAngw::calculate(), setScalingFactors(), nnp::SymGrpExpAngn::sortMembers(), and nnp::SymGrpExpAngw::sortMembers().
|
protected |
Vector containing precalculated normalizing factor for derivatives.
Definition at line 65 of file SymGrpBaseExpAng.h.
Referenced by nnp::SymGrpExpAngn::calculate(), nnp::SymGrpExpAngw::calculate(), nnp::SymGrpExpAngn::sortMembers(), and nnp::SymGrpExpAngw::sortMembers().
|
protected |
Vector containing values of all member symmetry functions.
Definition at line 67 of file SymGrpBaseExpAng.h.
Referenced by nnp::SymGrpExpAngn::calculate(), nnp::SymGrpExpAngw::calculate(), nnp::SymGrpExpAngn::sortMembers(), and nnp::SymGrpExpAngw::sortMembers().
|
protected |
Vector containing values of all member symmetry functions.
Definition at line 69 of file SymGrpBaseExpAng.h.
Referenced by nnp::SymGrpExpAngn::calculate(), nnp::SymGrpExpAngw::calculate(), nnp::SymGrpExpAngn::sortMembers(), and nnp::SymGrpExpAngw::sortMembers().
|
protected |
Vector containing values of all member symmetry functions.
Definition at line 71 of file SymGrpBaseExpAng.h.
Referenced by nnp::SymGrpExpAngn::calculate(), nnp::SymGrpExpAngw::calculate(), nnp::SymGrpExpAngn::sortMembers(), and nnp::SymGrpExpAngw::sortMembers().
|
protected |
Vector containing values of all member symmetry functions.
Definition at line 73 of file SymGrpBaseExpAng.h.
Referenced by nnp::SymGrpExpAngn::calculate(), nnp::SymGrpExpAngw::calculate(), nnp::SymGrpExpAngn::sortMembers(), and nnp::SymGrpExpAngw::sortMembers().
|
protected |
Vector containing values of all member symmetry functions.
Definition at line 75 of file SymGrpBaseExpAng.h.
Referenced by nnp::SymGrpExpAngn::calculate(), nnp::SymGrpExpAngw::calculate(), nnp::SymGrpExpAngn::sortMembers(), and nnp::SymGrpExpAngw::sortMembers().
|
protected |
Vector containing values of all member symmetry functions.
Definition at line 77 of file SymGrpBaseExpAng.h.
Referenced by nnp::SymGrpExpAngn::calculate(), nnp::SymGrpExpAngw::calculate(), nnp::SymGrpExpAngn::sortMembers(), and nnp::SymGrpExpAngw::sortMembers().
|
protected |
Vector containing values of all member symmetry functions.
Definition at line 79 of file SymGrpBaseExpAng.h.
Referenced by nnp::SymGrpExpAngn::calculate(), nnp::SymGrpExpAngw::calculate(), nnp::SymGrpExpAngn::sortMembers(), and nnp::SymGrpExpAngw::sortMembers().