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