|
RASPA3 3.0.13
A molecular simulation code for computing adsorption and diffusion in nanoporous materials
|
Represents a bend_bend potential between two particles. More...

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