|
n2p2 - A neural network potential package
|
Wide angular symmetry function with compact support (type 22) More...
#include <SymGrpCompAngw.h>


Public Member Functions | |
| SymGrpCompAngw (ElementMap const &elementMap) | |
| Constructor, sets type = 22. | |
| virtual bool | operator== (SymGrp const &rhs) const |
| Overload == operator. | |
| virtual bool | operator< (SymGrp const &rhs) const |
| Overload < operator. | |
| virtual bool | addMember (SymFnc const *const symmetryFunction) |
| Potentially add a member to group. | |
| virtual void | sortMembers () |
| Sort member symmetry functions. | |
| virtual void | calculate (Atom &atom, bool const derivatives) const |
| Calculate all symmetry functions of this group for one atom. | |
Public Member Functions inherited from nnp::SymGrpBaseCompAng | |
| 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. | |
| 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. | |
| 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. | |
Private Member Functions | |
| virtual std::vector< SymFncBaseCompAng const * > | getMembers () const |
| Get symmetry function members. | |
Private Attributes | |
| std::vector< SymFncCompAngw const * > | members |
| Vector of all group member pointers. | |
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 |
Protected Member Functions inherited from nnp::SymGrpBaseCompAng | |
| SymGrpBaseCompAng (std::size_t type, ElementMap const &elementMap) | |
| Constructor, sets type. | |
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. | |
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. | |
Protected Attributes inherited from nnp::SymGrpBaseCompAng | |
| 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. | |
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. | |
Wide angular symmetry function with compact support (type 22)
\[G^{22}_i = \sum_{\substack{j,k\neq i \\ j < k}} C(r_{ij}, r_l, r_c) C(r_{ik}, r_l, r_c) C(\theta_{ijk}, \theta_l, \theta_r), \]
where \(C(x, x_\text{low}, x_\text{high})\) is a function with compact support \(\left[x_\text{low}, x_\text{high}\right]\).
Common features:
Definition at line 50 of file SymGrpCompAngw.h.
| SymGrpCompAngw::SymGrpCompAngw | ( | ElementMap const & | elementMap | ) |
Constructor, sets type = 22.
Definition at line 30 of file SymGrpCompAngw.cpp.
References nnp::SymGrp::elementMap, and nnp::SymGrpBaseCompAng::SymGrpBaseCompAng().
Referenced by operator<(), and operator==().


|
virtual |
Overload == operator.
Implements nnp::SymGrp.
Definition at line 36 of file SymGrpCompAngw.cpp.
References nnp::SymGrpBaseCompAng::e1, nnp::SymGrpBaseCompAng::e2, nnp::SymGrp::ec, nnp::SymGrp::getEc(), nnp::SymGrp::getType(), SymGrpCompAngw(), and nnp::SymGrp::type.

|
virtual |
Overload < operator.
Implements nnp::SymGrp.
Definition at line 46 of file SymGrpCompAngw.cpp.
References nnp::SymGrpBaseCompAng::e1, nnp::SymGrpBaseCompAng::e2, nnp::SymGrp::ec, nnp::SymGrp::getEc(), nnp::SymGrp::getType(), SymGrpCompAngw(), and nnp::SymGrp::type.

|
virtual |
Potentially add a member to group.
| [in] | symmetryFunction | Candidate symmetry function. |
If symmetry function is compatible with common feature list its pointer will be added to members.
Implements nnp::SymGrp.
Definition at line 60 of file SymGrpCompAngw.cpp.
References nnp::SymGrp::convLength, nnp::SymGrpBaseCompAng::e1, nnp::SymGrpBaseCompAng::e2, nnp::SymGrp::ec, nnp::SymFnc::getConvLength(), nnp::SymFncBaseCompAng::getE1(), nnp::SymFncBaseCompAng::getE2(), nnp::SymFnc::getEc(), nnp::SymFnc::getRc(), nnp::SymFncBaseComp::getRl(), nnp::SymFnc::getType(), members, nnp::SymGrpBaseComp::rmax, nnp::SymGrpBaseComp::rmin, and nnp::SymGrp::type.

|
virtual |
Sort member symmetry functions.
Also allocate and precalculate additional stuff.
Implements nnp::SymGrp.
Definition at line 93 of file SymGrpCompAngw.cpp.
References nnp::SymGrpBaseCompAng::calculateComp, nnp::comparePointerTargets(), nnp::SymGrp::getIndex(), nnp::SymGrpBaseCompAng::mal, nnp::SymGrpBaseCompAng::mar, nnp::SymGrpBaseCompAng::mci, nnp::SymGrp::memberIndex, nnp::SymGrp::memberIndexPerElement, members, nnp::SymGrpBaseCompAng::mrc, and nnp::SymGrpBaseCompAng::mrl.

|
virtual |
Calculate all symmetry functions of this group for one atom.
| [in,out] | atom | Atom for which symmetry functions are caluclated. |
| [in] | derivatives | If also symmetry function derivatives will be calculated and saved. |
Implements nnp::SymGrp.
Definition at line 134 of file SymGrpCompAngw.cpp.
References nnp::Atom::Neighbor::cache, nnp::Atom::Neighbor::d, nnp::Atom::dGdr, nnp::Atom::Neighbor::dGdr, nnp::Atom::Neighbor::dr, nnp::SymGrpBaseCompAng::e1, nnp::SymGrpBaseCompAng::e2, nnp::Atom::Neighbor::element, nnp::Atom::G, nnp::SymFncBaseCompAng::getCompactAngle(), nnp::SymFncBaseCompAng::getCompactRadial(), nnp::SymGrpBaseCompAng::mal, nnp::SymGrpBaseCompAng::mar, nnp::SymGrpBaseCompAng::mci, nnp::SymGrp::memberIndex, nnp::SymGrp::memberIndexPerElement, members, nnp::SymGrpBaseCompAng::mrc, nnp::SymGrpBaseCompAng::mrl, nnp::Atom::neighbors, nnp::Atom::numNeighbors, nnp::Vec3D::r, nnp::SymGrpBaseComp::rmin, and nnp::SymGrp::scalingFactors.

|
inlineprivatevirtual |
Get symmetry function members.
Implements nnp::SymGrpBaseCompAng.
Definition at line 95 of file SymGrpCompAngw.h.
|
private |
Vector of all group member pointers.
Definition at line 92 of file SymGrpCompAngw.h.
Referenced by addMember(), calculate(), getMembers(), and sortMembers().