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