ESPResSo
Extensible Simulation Package for Research on Soft Matter Systems
|
Parameters for IBM elastic triangle (triel) More...
#include <ibm_triel.hpp>
Public Member Functions | |
double | cutoff () const |
IBMTriel (int ind1, int ind2, int ind3, double maxDist, tElasticLaw elasticLaw, double k1, double k2) | |
Set the IBM Triel parameters. | |
boost::optional< std::tuple< Utils::Vector3d, Utils::Vector3d, Utils::Vector3d > > | calc_forces (Utils::Vector3d const &vec1, Utils::Vector3d const &vec2) const |
Calculate the forces. | |
Public Attributes | |
double | l0 |
double | lp0 |
double | sinPhi0 |
double | cosPhi0 |
double | area0 |
double | a1 |
double | a2 |
double | b1 |
double | b2 |
double | maxDist |
tElasticLaw | elasticLaw |
double | k1 |
double | k2 |
Static Public Attributes | |
static constexpr int | num = 2 |
Parameters for IBM elastic triangle (triel)
Definition at line 34 of file ibm_triel.hpp.
IBMTriel::IBMTriel | ( | int | ind1, |
int | ind2, | ||
int | ind3, | ||
double | maxDist, | ||
tElasticLaw | elasticLaw, | ||
double | k1, | ||
double | k2 | ||
) |
Set the IBM Triel parameters.
Also calculate and store the reference state.
Definition at line 195 of file ibm_triel.cpp.
References a1, a2, area0, b1, b2, System::System::box_geo, cosPhi0, elasticLaw, get_ibm_particle_position(), System::get_system(), k1, k2, l0, lp0, maxDist, sinPhi0, and Utils::vector_product().
boost::optional< std::tuple< Utils::Vector3d, Utils::Vector3d, Utils::Vector3d > > IBMTriel::calc_forces | ( | Utils::Vector3d const & | vec1, |
Utils::Vector3d const & | vec2 | ||
) | const |
Calculate the forces.
The equations can be found in Appendix C of [26].
p1
, p2
, p3
Definition at line 75 of file ibm_triel.cpp.
References a1, a2, area0, b1, b2, cosPhi0, elasticLaw, k1, k2, l0, lp0, maxDist, NeoHookean, Utils::Vector< T, N >::norm(), sinPhi0, Utils::sqr(), and Utils::vector_product().
|
inline |
Definition at line 56 of file ibm_triel.hpp.
References maxDist.
double IBMTriel::a1 |
Definition at line 43 of file ibm_triel.hpp.
Referenced by calc_forces(), and IBMTriel().
double IBMTriel::a2 |
Definition at line 44 of file ibm_triel.hpp.
Referenced by calc_forces(), and IBMTriel().
double IBMTriel::area0 |
Definition at line 40 of file ibm_triel.hpp.
Referenced by calc_forces(), and IBMTriel().
double IBMTriel::b1 |
Definition at line 45 of file ibm_triel.hpp.
Referenced by calc_forces(), and IBMTriel().
double IBMTriel::b2 |
Definition at line 46 of file ibm_triel.hpp.
Referenced by calc_forces(), and IBMTriel().
double IBMTriel::cosPhi0 |
Definition at line 39 of file ibm_triel.hpp.
Referenced by calc_forces(), and IBMTriel().
tElasticLaw IBMTriel::elasticLaw |
Definition at line 52 of file ibm_triel.hpp.
Referenced by calc_forces(), and IBMTriel().
double IBMTriel::k1 |
Definition at line 53 of file ibm_triel.hpp.
Referenced by calc_forces(), and IBMTriel().
double IBMTriel::k2 |
Definition at line 54 of file ibm_triel.hpp.
Referenced by calc_forces(), and IBMTriel().
double IBMTriel::l0 |
Definition at line 36 of file ibm_triel.hpp.
Referenced by calc_forces(), and IBMTriel().
double IBMTriel::lp0 |
Definition at line 37 of file ibm_triel.hpp.
Referenced by calc_forces(), and IBMTriel().
double IBMTriel::maxDist |
Definition at line 51 of file ibm_triel.hpp.
Referenced by calc_forces(), cutoff(), and IBMTriel().
|
staticconstexpr |
Definition at line 58 of file ibm_triel.hpp.
double IBMTriel::sinPhi0 |
Definition at line 38 of file ibm_triel.hpp.
Referenced by calc_forces(), and IBMTriel().