RASPA3 3.0.12
A molecular simulation code for computing adsorption and diffusion in nanoporous materials
|
Represents a bond_bond potential between two particles. More...
Public Member Functions | |
BondBondPotential () | |
Default constructor for BondBondPotential. | |
BondBondPotential (std::array< std::size_t, 3 > identifiers, BondBondType type, std::vector< double > vector_parameters) | |
BondBondPotential (std::array< std::size_t, 3 > identifiers, const BondBondType type) | |
Constructs a BondBondPotential with specified type and bond_bond IDs. | |
bool | operator== (BondBondPotential const &) const =default |
std::string | print () const |
Generates a string representation of the bond_bond potential. | |
double | calculateEnergy (const double3 &posA, const double3 &posB, const double3 &posc) const |
Static Public Attributes | |
static std::array< std::size_t, 2 > | numberOfBondBondParameters {3, 3} |
Number of parameters required for each bond_bond type. | |
static std::map< std::string, BondBondType, caseInsensitiveComparator > | definitionForString |
Mapping of bond_bond type strings to BondBondType enums. | |
Friends | |
Archive< std::ofstream > & | operator<< (Archive< std::ofstream > &archive, const BondBondPotential &b) |
Archive< std::ifstream > & | operator>> (Archive< std::ifstream > &archive, BondBondPotential &b) |
Represents a bond_bond potential between two particles.
The BondBondPotential struct encapsulates the type of bond_bond and associated parameters between two particles. It includes versioning for serialization, bond_bond type, identifiers of bond_bonded particles, and bond_bond parameters.
|
inline |
Default constructor for BondBondPotential.
Initializes a BondBondPotential object with Undefined bond_bond type and zeroed bond_bond IDs.
|
inline |
Constructs a BondBondPotential with specified type and bond_bond IDs.
type | The type of bond_bond potential. |
identifiers | A pair of particle identifiers forming the bond_bond. |
std::string BondBondPotential::print | ( | ) | const |
Generates a string representation of the bond_bond potential.
Provides a formatted string containing bond_bond type, particle IDs, and parameters.
|
inlinestatic |
Mapping of bond_bond type strings to BondBondType enums.
A static map that associates bond_bond type names with their corresponding BondBondType enumeration values.
|
inlinestatic |
Number of parameters required for each bond_bond type.
A static vector indicating the number of parameters needed for each bond_bond type.