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