53#include "utils/simError.h"
57 NonBondedInteractionType::NonBondedInteractionType() {
58 nbitp.is_LennardJones =
false;
59 nbitp.is_Morse =
false;
61 nbitp.is_EAMTable =
false;
62 nbitp.is_EAMZhou =
false;
63 nbitp.is_EAMOxides =
false;
65 nbitp.is_RepulsivePower =
false;
67 nbitp.is_Buckingham =
false;
68 nbitp.is_InversePowerSeries =
false;
69 atomTypes_.first = NULL;
70 atomTypes_.second = NULL;
72 void NonBondedInteractionType::setAtomTypes(
73 std::pair<AtomType*, AtomType*> ats) {
77 std::pair<AtomType*, AtomType*> NonBondedInteractionType::getAtomTypes() {
82 std::shared_ptr<GenericData> genData) {
94 std::vector<std::shared_ptr<GenericData>>
100 const std::string& propName) {
104 void NonBondedInteractionType::setLennardJones() {
105 nbitp.is_LennardJones =
true;
108 bool NonBondedInteractionType::isLennardJones() {
109 return nbitp.is_LennardJones;
112 void NonBondedInteractionType::setMorse() { nbitp.is_Morse =
true; }
114 bool NonBondedInteractionType::isMorse() {
return nbitp.is_Morse; }
116 void NonBondedInteractionType::setEAMTable() { nbitp.is_EAMTable =
true; }
118 bool NonBondedInteractionType::isEAMTable() {
return nbitp.is_EAMTable; }
120 void NonBondedInteractionType::setEAMZhou() { nbitp.is_EAMZhou =
true; }
122 bool NonBondedInteractionType::isEAMZhou() {
return nbitp.is_EAMZhou; }
124 void NonBondedInteractionType::setEAMOxides() { nbitp.is_EAMOxides =
true; }
126 bool NonBondedInteractionType::isEAMOxides() {
return nbitp.is_EAMOxides; }
128 bool NonBondedInteractionType::isSC() {
return nbitp.is_SC; }
130 void NonBondedInteractionType::setSC() { nbitp.is_SC =
true; }
132 bool NonBondedInteractionType::isMAW() {
return nbitp.is_MAW; }
134 void NonBondedInteractionType::setMAW() { nbitp.is_MAW =
true; }
136 bool NonBondedInteractionType::isMetal() {
137 return isSC() || isEAMTable() || isEAMZhou();
140 bool NonBondedInteractionType::isRepulsivePower() {
141 return nbitp.is_RepulsivePower;
144 void NonBondedInteractionType::setRepulsivePower() {
145 nbitp.is_RepulsivePower =
true;
148 bool NonBondedInteractionType::isMie() {
return nbitp.is_Mie; }
150 void NonBondedInteractionType::setMie() { nbitp.is_Mie =
true; }
152 bool NonBondedInteractionType::isBuckingham() {
return nbitp.is_Buckingham; }
154 void NonBondedInteractionType::setBuckingham() { nbitp.is_Buckingham =
true; }
156 bool NonBondedInteractionType::isInversePowerSeries() {
157 return nbitp.is_InversePowerSeries;
160 void NonBondedInteractionType::setInversePowerSeries() {
161 nbitp.is_InversePowerSeries =
true;
void addProperty(std::shared_ptr< GenericData > genData)
Adds property into property map.
void removeProperty(const std::string &propName)
Removes property from PropertyMap by name.
std::vector< std::string > getPropertyNames()
Returns all names of properties.
std::shared_ptr< GenericData > getPropertyByName(const std::string &propName)
Returns property.
std::vector< std::shared_ptr< GenericData > > getProperties()
Returns all of the properties in PropertyMap.
std::shared_ptr< GenericData > getPropertyByName(const std::string &propName)
Returns property.
std::vector< std::shared_ptr< GenericData > > getProperties()
Returns all of the properties in PropertyMap.
void addProperty(std::shared_ptr< GenericData > genData)
Adds property into property map.
bool removeProperty(const std::string &propName)
Removes property from PropertyMap by name.
std::vector< std::string > getPropertyNames()
Returns all names of properties.
This basic Periodic Table class was originally taken from the data.cpp file in OpenBabel.