![]() |
ESPResSo
Extensible Simulation Package for Research on Soft Matter Systems
|
Parameters for three-body angular potential (cosine). More...
#include <angle_cosine.hpp>
Public Member Functions | |
| double | cutoff () const |
| AngleCosineBond (double bend, double phi0) | |
| std::tuple< Utils::Vector3d, Utils::Vector3d, Utils::Vector3d > | forces (Utils::Vector3d const &vec1, Utils::Vector3d const &vec2) const |
| Compute the three-body angle interaction force. | |
| double | energy (Utils::Vector3d const &vec1, Utils::Vector3d const &vec2) const |
| Computes the three-body angle interaction energy. | |
Public Attributes | |
| double | bend |
| bending constant | |
| double | phi0 |
| equilibrium angle (default is 180 degrees) | |
| double | cos_phi0 |
cosine of phi0 (internal parameter) | |
| double | sin_phi0 |
sine of phi0 (internal parameter) | |
Static Public Attributes | |
| static constexpr int | num = 2 |
Parameters for three-body angular potential (cosine).
Definition at line 40 of file angle_cosine.hpp.
Definition at line 54 of file angle_cosine.hpp.
|
inline |
Definition at line 50 of file angle_cosine.hpp.
|
inline |
Computes the three-body angle interaction energy.
| [in] | vec1 | Vector from central particle to left particle. |
| [in] | vec2 | Vector from central particle to right particle. |
Definition at line 89 of file angle_cosine.hpp.
References bend, calc_cosine(), cos_phi0, sin_phi0, Utils::sqr(), and stream.
|
inline |
Compute the three-body angle interaction force.
| [in] | vec1 | Vector from central particle to left particle. |
| [in] | vec2 | Vector from central particle to right particle. |
Definition at line 72 of file angle_cosine.hpp.
References angle_generic_force(), bend, cos_phi0, sin_phi0, Utils::sqr(), and stream.
| double AngleCosineBond::bend |
bending constant
Definition at line 42 of file angle_cosine.hpp.
Referenced by AngleCosineBond(), energy(), and forces().
| double AngleCosineBond::cos_phi0 |
cosine of phi0 (internal parameter)
Definition at line 46 of file angle_cosine.hpp.
Definition at line 52 of file angle_cosine.hpp.
| double AngleCosineBond::phi0 |
equilibrium angle (default is 180 degrees)
Definition at line 44 of file angle_cosine.hpp.
Referenced by AngleCosineBond().
| double AngleCosineBond::sin_phi0 |
sine of phi0 (internal parameter)
Definition at line 48 of file angle_cosine.hpp.