|
RASPA3 3.0.13
A molecular simulation code for computing adsorption and diffusion in nanoporous materials
|
Represents the van der Waals parameters for particle interactions. More...
Public Types | |
| enum class | Type : std::size_t { None = 0 , LennardJones = 1 , BuckingHam = 2 , Morse = 3 , FeynmannHibbs = 4 , MM3 = 5 , BornHugginsMeyer = 6 , RepulsiveHarmonic = 100 } |
| Enumeration of van der Waals potential types. | |
Public Member Functions | |
| VDWParameters () | |
| Default constructor for VDWParameters. | |
| VDWParameters (double4 parameters, double shift, double tailCorrectionEnergy, double tailCorrectionPressure, Type type) | |
| VDWParameters (double epsilon, double sigma) | |
| Constructs a Lennard-Jones VDWParameter structure. | |
| VDWParameters (double epsilon, double sigma, Type type) | |
| void | computeShiftAtCutOff (double cutOff) |
| Computes the potential energy shift at the cutoff distance. | |
| double | sizeParameter () const |
| bool | operator== (const VDWParameters &other) const |
Static Public Member Functions | |
| static Type | stringToEnum (std::string interactionType) |
| Returns interaction type from given string. | |
Public Attributes | |
| double4 | parameters |
| The potential parameters. For LJ: epsilon, sigma; for Buckingham: 3 parameters. | |
| double | shift |
| The potential energy shift calculated at the cutoff distance. | |
| double | tailCorrectionEnergy |
| The tail correction energy for the potential. | |
| double | tailCorrectionPressure |
| The tail correction energy for the potential. | |
| Type | type {0} |
| The type of van der Waals potential. | |
Friends | |
| Archive< std::ofstream > & | operator<< (Archive< std::ofstream > &archive, const VDWParameters &p) |
| Archive< std::ifstream > & | operator>> (Archive< std::ifstream > &archive, VDWParameters &p) |
Represents the van der Waals parameters for particle interactions.
The VDWParameters struct encapsulates parameters for different types of van der Waals potentials, including Lennard-Jones, Buckingham, Morse, Feynmann-Hibbs, MM3, and Born-Huggins-Meyer potentials. It includes the potential parameters, a shift value calculated at the cutoff distance, tail correction energy, and the type of potential.
|
inline |
Default constructor for VDWParameters.
Initializes the parameters with zero values.
|
inline |
Constructs a Lennard-Jones VDWParameter structure.
Initializes the VDWParameters with the given epsilon and sigma values for a Lennard-Jones potential.
| epsilon | The strength parameter of the potential in units of Kelvin. |
| sigma | The size parameter of the potential in units of Angstrom. |
|
inline |
Computes the potential energy shift at the cutoff distance.
Calculates the shift in potential energy at the specified cutoff distance to ensure continuity of the potential.
| cutOff | The cutoff distance at which to compute the shift. |
|
static |
Returns interaction type from given string.
| interactionType | string to convert to interaction type |