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