n2p2 - A neural network potential package
|
#include <SymGrpBaseCutoff.h>
Public Member Functions | |
double | getRc () const |
Get private rc member variable. More... | |
Public Member Functions inherited from nnp::SymGrp | |
virtual | ~SymGrp () |
Virtual destructor. More... | |
virtual bool | operator== (SymGrp const &rhs) const =0 |
Overload == operator. More... | |
virtual bool | operator< (SymGrp const &rhs) const =0 |
Overload < operator. More... | |
bool | operator!= (SymGrp const &rhs) const |
Overload != operator. More... | |
bool | operator> (SymGrp const &rhs) const |
Overload > operator. More... | |
bool | operator<= (SymGrp const &rhs) const |
Overload <= operator. More... | |
bool | operator>= (SymGrp const &rhs) const |
Overload >= operator. More... | |
virtual bool | addMember (SymFnc const *const symmetryFunction)=0 |
Potentially add a member to group. More... | |
virtual void | sortMembers ()=0 |
Sort member symmetry functions. More... | |
virtual void | setScalingFactors ()=0 |
Fill scalingFactors with values from member symmetry functions. More... | |
virtual void | calculate (Atom &atom, bool const derivatives) const =0 |
Calculate all symmetry functions of this group for one atom. More... | |
virtual std::vector< std::string > | parameterLines () const =0 |
Give symmetry function group parameters on multiple lines. More... | |
void | setIndex (std::size_t index) |
Set private index member variable. More... | |
std::size_t | getIndex () const |
Get private index member variable. More... | |
std::size_t | getType () const |
Get private type member variable. More... | |
std::size_t | getEc () const |
Get private ec member variable. More... | |
Protected Member Functions | |
SymGrpBaseCutoff (std::size_t type, ElementMap const &elementMap) | |
Constructor, sets type. More... | |
Protected Member Functions inherited from nnp::SymGrp | |
SymGrp (std::size_t type, ElementMap const &elementMap) | |
Constructor, sets type. More... | |
std::string | getPrintFormatCommon () const |
Get common parameter line format string. More... | |
std::string | getPrintFormatMember () const |
Get member parameter line format string. More... | |
Protected Attributes | |
double | rc |
Cutoff radius \(r_c\) (common feature). More... | |
double | cutoffAlpha |
Cutoff function parameter \(\alpha\) (common feature). More... | |
std::string | subtype |
Subtype string (specifies cutoff type) (common feature). More... | |
CutoffFunction | fc |
Cutoff function used by this symmetry function group. More... | |
CutoffFunction::CutoffType | cutoffType |
Cutoff type used by this symmetry function group (common feature). More... | |
Protected Attributes inherited from nnp::SymGrp | |
std::size_t | type |
Symmetry function type. More... | |
ElementMap | elementMap |
Copy of element map. More... | |
std::size_t | index |
Symmetry function group index. More... | |
std::size_t | ec |
Element index of center atom (common feature). More... | |
double | convLength |
Data set normalization length conversion factor. More... | |
std::vector< size_t > | memberIndex |
Vector containing indices of all member symmetry functions. More... | |
std::vector< double > | scalingFactors |
Scaling factors of all member symmetry functions. More... | |
std::set< std::string > | parametersCommon |
Set of common parameters IDs. More... | |
std::set< std::string > | parametersMember |
Set of common parameters IDs. More... | |
std::vector< std::vector< std::size_t > > | memberIndexPerElement |
Vector containing per-element indices of all member symmetry functions. More... | |
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. More... | |
static PrintOrder const | initializePrintOrder () |
Initialize static print order vector for all possible parameters. More... | |
Static Protected Attributes inherited from nnp::SymGrp | |
static PrintFormat const | printFormat = initializePrintFormat() |
Map of parameter format strings and empty strings. More... | |
static PrintOrder const | printOrder = initializePrintOrder() |
Vector of parameters in order of printing. More... | |
Definition at line 29 of file SymGrpBaseCutoff.h.
|
protected |
Constructor, sets type.
[in] | type | Type of symmetry functions grouped. |
[in] | elementMap | Element Map used. |
Definition at line 23 of file SymGrpBaseCutoff.cpp.
References nnp::SymGrp::parametersCommon.
double nnp::SymGrpBaseCutoff::getRc | ( | ) | const |
Get private rc member variable.
|
protected |
Cutoff radius \(r_c\) (common feature).
Definition at line 37 of file SymGrpBaseCutoff.h.
Referenced by nnp::SymGrpExpAngn::addMember(), nnp::SymGrpExpAngnWeighted::addMember(), nnp::SymGrpExpAngw::addMember(), nnp::SymGrpExpRad::addMember(), nnp::SymGrpExpRadWeighted::addMember(), nnp::SymGrpExpAngn::calculate(), nnp::SymGrpExpAngnWeighted::calculate(), nnp::SymGrpExpAngw::calculate(), nnp::SymGrpExpRad::calculate(), nnp::SymGrpExpRadWeighted::calculate(), nnp::SymGrpExpAngn::operator<(), nnp::SymGrpExpAngnWeighted::operator<(), nnp::SymGrpExpAngw::operator<(), nnp::SymGrpExpRad::operator<(), nnp::SymGrpExpRadWeighted::operator<(), nnp::SymGrpExpAngn::operator==(), nnp::SymGrpExpAngnWeighted::operator==(), nnp::SymGrpExpAngw::operator==(), nnp::SymGrpExpRad::operator==(), nnp::SymGrpExpRadWeighted::operator==(), nnp::SymGrpBaseExpAng::parameterLines(), nnp::SymGrpExpAngnWeighted::parameterLines(), nnp::SymGrpExpRad::parameterLines(), and nnp::SymGrpExpRadWeighted::parameterLines().
|
protected |
Cutoff function parameter \(\alpha\) (common feature).
Definition at line 39 of file SymGrpBaseCutoff.h.
Referenced by nnp::SymGrpExpAngn::addMember(), nnp::SymGrpExpAngnWeighted::addMember(), nnp::SymGrpExpAngw::addMember(), nnp::SymGrpExpRad::addMember(), nnp::SymGrpExpRadWeighted::addMember(), nnp::SymGrpExpAngn::operator<(), nnp::SymGrpExpAngnWeighted::operator<(), nnp::SymGrpExpAngw::operator<(), nnp::SymGrpExpRad::operator<(), nnp::SymGrpExpRadWeighted::operator<(), nnp::SymGrpExpAngn::operator==(), nnp::SymGrpExpAngnWeighted::operator==(), nnp::SymGrpExpAngw::operator==(), nnp::SymGrpExpRad::operator==(), nnp::SymGrpExpRadWeighted::operator==(), nnp::SymGrpBaseExpAng::parameterLines(), nnp::SymGrpExpAngnWeighted::parameterLines(), nnp::SymGrpExpRad::parameterLines(), and nnp::SymGrpExpRadWeighted::parameterLines().
|
protected |
Subtype string (specifies cutoff type) (common feature).
Definition at line 41 of file SymGrpBaseCutoff.h.
Referenced by nnp::SymGrpExpAngn::addMember(), nnp::SymGrpExpAngnWeighted::addMember(), nnp::SymGrpExpAngw::addMember(), nnp::SymGrpExpRad::addMember(), nnp::SymGrpExpRadWeighted::addMember(), nnp::SymGrpBaseExpAng::parameterLines(), nnp::SymGrpExpAngnWeighted::parameterLines(), nnp::SymGrpExpRad::parameterLines(), and nnp::SymGrpExpRadWeighted::parameterLines().
|
protected |
Cutoff function used by this symmetry function group.
Definition at line 43 of file SymGrpBaseCutoff.h.
Referenced by nnp::SymGrpExpAngn::addMember(), nnp::SymGrpExpAngnWeighted::addMember(), nnp::SymGrpExpAngw::addMember(), nnp::SymGrpExpRad::addMember(), nnp::SymGrpExpRadWeighted::addMember(), nnp::SymGrpExpAngn::calculate(), nnp::SymGrpExpAngnWeighted::calculate(), nnp::SymGrpExpAngw::calculate(), nnp::SymGrpExpRad::calculate(), and nnp::SymGrpExpRadWeighted::calculate().
|
protected |
Cutoff type used by this symmetry function group (common feature).
Definition at line 45 of file SymGrpBaseCutoff.h.
Referenced by nnp::SymGrpExpAngn::addMember(), nnp::SymGrpExpAngnWeighted::addMember(), nnp::SymGrpExpAngw::addMember(), nnp::SymGrpExpRad::addMember(), nnp::SymGrpExpRadWeighted::addMember(), nnp::SymGrpExpAngn::operator<(), nnp::SymGrpExpAngnWeighted::operator<(), nnp::SymGrpExpAngw::operator<(), nnp::SymGrpExpRad::operator<(), nnp::SymGrpExpRadWeighted::operator<(), nnp::SymGrpExpAngn::operator==(), nnp::SymGrpExpAngnWeighted::operator==(), nnp::SymGrpExpAngw::operator==(), nnp::SymGrpExpRad::operator==(), and nnp::SymGrpExpRadWeighted::operator==().