ESPResSo
Extensible Simulation Package for Research on Soft Matter Systems
|
Parameters for 4-body tabulated potential. More...
#include <bonded_tab.hpp>
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 258 of file bonded_tab.hpp.
References calc_dihedral_angle(), and TabulatedBond::pot.
|
inline |
Compute the four-body dihedral interaction force.
The forces have a singularity at \( \phi = 0 \) and \( \phi = \pi \) (see [40] 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 214 of file bonded_tab.hpp.
References calc_dihedral_angle(), TabulatedBond::pot, and vector_product().
|
staticconstexpr |
Definition at line 104 of file bonded_tab.hpp.