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

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