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