ESPResSo
Extensible Simulation Package for Research on Soft Matter Systems
|
Parameters for Coulomb bond Potential. More...
#include <bonded_coulomb.hpp>
Public Member Functions | |
double | cutoff () const |
BondedCoulomb (double prefactor) | |
std::optional< Utils::Vector3d > | force (double q1q2, Utils::Vector3d const &dx) const |
Compute the bonded Coulomb pair force. | |
std::optional< double > | energy (double q1q2, Utils::Vector3d const &dx) const |
Compute the bonded Coulomb pair energy. | |
Public Attributes | |
double | prefactor |
Coulomb prefactor. | |
Static Public Attributes | |
static constexpr int | num = 1 |
Parameters for Coulomb bond Potential.
Definition at line 37 of file bonded_coulomb.hpp.
|
inline |
Definition at line 45 of file bonded_coulomb.hpp.
References prefactor.
|
inline |
Definition at line 41 of file bonded_coulomb.hpp.
|
inline |
Compute the bonded Coulomb pair energy.
[in] | q1q2 | Product of the particle charges. |
[in] | dx | Distance between the particles. |
Definition at line 73 of file bonded_coulomb.hpp.
References Utils::Vector< T, N >::norm(), and prefactor.
|
inline |
Compute the bonded Coulomb pair force.
[in] | q1q2 | Product of the particle charges. |
[in] | dx | Distance between the particles. |
Definition at line 57 of file bonded_coulomb.hpp.
References Utils::Vector< T, N >::norm2(), and prefactor.
|
staticconstexpr |
Definition at line 43 of file bonded_coulomb.hpp.
double BondedCoulomb::prefactor |
Coulomb prefactor.
Definition at line 39 of file bonded_coulomb.hpp.
Referenced by BondedCoulomb(), energy(), and force().