![]() |
ESPResSo
Extensible Simulation Package for Research on Soft Matter Systems
|
Parameters for 4-body tabulated potential. More...
#include <bonded_tab.hpp>
Inheritance diagram for TabulatedDihedralBond:
Collaboration diagram for TabulatedDihedralBond:Public Member Functions | |
| double | cutoff () const |
| TabulatedDihedralBond (double min, double max, std::vector< double > const &energy, std::vector< double > const &force) | |
| std::optional< std::tuple< Utils::Vector3d, Utils::Vector3d, Utils::Vector3d, Utils::Vector3d > > | forces (Utils::Vector3d const &v12, Utils::Vector3d const &v23, Utils::Vector3d const &v34) const |
| Compute the four-body dihedral interaction force. | |
| std::optional< double > | energy (Utils::Vector3d const &v12, Utils::Vector3d const &v23, Utils::Vector3d const &v34) const |
| Compute the four-body dihedral interaction energy. | |
Public Member Functions inherited from TabulatedBond | |
| TabulatedBond (double min, double max, std::vector< double > const &energy, std::vector< double > const &force) | |
| Set the parameters of a bonded tabulated potential. | |
Static Public Attributes | |
| static constexpr int | num = 3 |
Additional Inherited Members | |
Public Attributes inherited from TabulatedBond | |
| std::shared_ptr< TabulatedPotential > | pot |
Parameters for 4-body tabulated potential.
Definition at line 101 of file bonded_tab.hpp.
|
inline |
Definition at line 106 of file bonded_tab.hpp.
References TabulatedBond::pot, and round_error_prec.
|
inline |
Definition at line 102 of file bonded_tab.hpp.
|
inline |
Compute the four-body dihedral interaction energy.
The energy doesn't have any singularity if the angle phi is well-defined.
| [in] | v12 | Vector from p1 to p2 |
| [in] | v23 | Vector from p2 to p3 |
| [in] | v34 | Vector from p3 to p4 |
Definition at line 249 of file bonded_tab.hpp.
References calc_dihedral_angle(), TabulatedBond::pot, and stream.
|
inline |
Compute the four-body dihedral interaction force.
The forces have a singularity at \( \phi = 0 \) and \( \phi = \pi \) (see [43] page 592).
| [in] | v12 | Vector from p1 to p2 |
| [in] | v23 | Vector from p2 to p3 |
| [in] | v34 | Vector from p3 to p4 |
p2, p1, p3 Definition at line 205 of file bonded_tab.hpp.
References calc_dihedral_angle(), TabulatedBond::pot, stream, and vector_product().
Definition at line 104 of file bonded_tab.hpp.