|
n2p2 - A neural network potential package
|
#include <SymGrpBaseCompAng.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::SymGrpBaseComp | |
| double | getRmin () const |
| Getter for rmin. | |
| double | getRmax () const |
| Getter for rmax. | |
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 | |
| SymGrpBaseCompAng (std::size_t type, ElementMap const &elementMap) | |
| Constructor, sets type. | |
| virtual std::vector< SymFncBaseCompAng const * > | getMembers () const =0 |
| Get symmetry function members. | |
Protected Member Functions inherited from nnp::SymGrpBaseComp | |
| SymGrpBaseComp (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 > | calculateComp |
| Vector indicating whether compact function needs to be recalculated. | |
| std::vector< double > | mrl |
| Member rl. | |
| std::vector< double > | mrc |
| Member rc. | |
| std::vector< double > | mal |
| Member angleLeft. | |
| std::vector< double > | mar |
| Member angleRight. | |
| std::vector< std::vector< std::vector< std::size_t > > > | mci |
| Member cache indices for actual neighbor element. | |
Protected Attributes inherited from nnp::SymGrpBaseComp | |
| double | rmin |
| Minimum radius within group. | |
| double | rmax |
| Maximum radius within group. | |
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 32 of file SymGrpBaseCompAng.h.
|
protected |
Constructor, sets type.
| [in] | type | Type of symmetry functions grouped. |
| [in] | elementMap | Element Map used. |
Definition at line 30 of file SymGrpBaseCompAng.cpp.
References e1, e2, nnp::SymGrp::elementMap, nnp::SymGrp::parametersCommon, nnp::SymGrp::parametersMember, nnp::SymGrpBaseComp::SymGrpBaseComp(), and nnp::SymGrp::type.
Referenced by nnp::SymGrpCompAngn::SymGrpCompAngn(), and nnp::SymGrpCompAngw::SymGrpCompAngw().


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

|
virtual |
Give symmetry function group parameters on multiple lines.
Implements nnp::SymGrp.
Definition at line 56 of file SymGrpBaseCompAng.cpp.
References calculateComp, nnp::SymGrp::convLength, e1, e2, nnp::SymGrp::ec, nnp::SymGrp::elementMap, nnp::SymGrp::getIndex(), getMembers(), nnp::SymGrp::getPrintFormatCommon(), nnp::SymGrp::getPrintFormatMember(), nnp::SymGrp::index, nnp::SymGrpBaseComp::rmax, nnp::SymGrpBaseComp::rmin, nnp::strpr(), and nnp::SymGrp::type.

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

|
protected |
Element index of neighbor atom 1 (common feature).
Definition at line 58 of file SymGrpBaseCompAng.h.
Referenced by nnp::SymGrpCompAngn::addMember(), nnp::SymGrpCompAngw::addMember(), nnp::SymGrpCompAngn::calculate(), nnp::SymGrpCompAngw::calculate(), nnp::SymGrpCompAngn::operator<(), nnp::SymGrpCompAngw::operator<(), nnp::SymGrpCompAngn::operator==(), nnp::SymGrpCompAngw::operator==(), parameterLines(), and SymGrpBaseCompAng().
|
protected |
Element index of neighbor atom 2 (common feature).
Definition at line 60 of file SymGrpBaseCompAng.h.
Referenced by nnp::SymGrpCompAngn::addMember(), nnp::SymGrpCompAngw::addMember(), nnp::SymGrpCompAngn::calculate(), nnp::SymGrpCompAngw::calculate(), nnp::SymGrpCompAngn::operator<(), nnp::SymGrpCompAngw::operator<(), nnp::SymGrpCompAngn::operator==(), nnp::SymGrpCompAngw::operator==(), parameterLines(), and SymGrpBaseCompAng().
|
protected |
Vector indicating whether compact function needs to be recalculated.
Definition at line 62 of file SymGrpBaseCompAng.h.
Referenced by nnp::SymGrpCompAngn::calculate(), parameterLines(), nnp::SymGrpCompAngn::sortMembers(), and nnp::SymGrpCompAngw::sortMembers().
|
protected |
Member rl.
Definition at line 64 of file SymGrpBaseCompAng.h.
Referenced by nnp::SymGrpCompAngn::calculate(), nnp::SymGrpCompAngw::calculate(), nnp::SymGrpCompAngn::sortMembers(), and nnp::SymGrpCompAngw::sortMembers().
|
protected |
Member rc.
Definition at line 66 of file SymGrpBaseCompAng.h.
Referenced by nnp::SymGrpCompAngn::calculate(), nnp::SymGrpCompAngw::calculate(), nnp::SymGrpCompAngn::sortMembers(), and nnp::SymGrpCompAngw::sortMembers().
|
protected |
Member angleLeft.
Definition at line 68 of file SymGrpBaseCompAng.h.
Referenced by nnp::SymGrpCompAngn::calculate(), nnp::SymGrpCompAngw::calculate(), nnp::SymGrpCompAngn::sortMembers(), and nnp::SymGrpCompAngw::sortMembers().
|
protected |
Member angleRight.
Definition at line 70 of file SymGrpBaseCompAng.h.
Referenced by nnp::SymGrpCompAngn::calculate(), nnp::SymGrpCompAngw::calculate(), nnp::SymGrpCompAngn::sortMembers(), and nnp::SymGrpCompAngw::sortMembers().
|
protected |
Member cache indices for actual neighbor element.
Definition at line 74 of file SymGrpBaseCompAng.h.
Referenced by nnp::SymGrpCompAngn::calculate(), nnp::SymGrpCompAngw::calculate(), nnp::SymGrpCompAngn::sortMembers(), and nnp::SymGrpCompAngw::sortMembers().