ESPResSo
Extensible Simulation Package for Research on Soft Matter Systems
Loading...
Searching...
No Matches
IBMTribend Struct Reference

Parameters for IBM tribend. More...

#include <ibm_tribend.hpp>

Public Member Functions

double cutoff () const
 
 IBMTribend (int ind1, int ind2, int ind3, int ind4, double kb, bool flat)
 Set the IBM Tribend parameters.
 
std::tuple< Utils::Vector3d, Utils::Vector3d, Utils::Vector3d, Utils::Vector3dcalc_forces (BoxGeometry const &box_geo, Particle const &p1, Particle const &p2, Particle const &p3, Particle const &p4) const
 Calculate the forces The equations can be found in Appendix C of [26].
 

Public Attributes

double kb
 Interaction data.
 
double theta0
 Reference angle.
 

Static Public Attributes

static constexpr int num = 3
 

Detailed Description

Parameters for IBM tribend.

Definition at line 33 of file ibm_tribend.hpp.

Constructor & Destructor Documentation

◆ IBMTribend()

IBMTribend::IBMTribend ( int  ind1,
int  ind2,
int  ind3,
int  ind4,
double  kb,
bool  flat 
)

Set the IBM Tribend parameters.

Also calculate and store the reference state. See details in [22] and [26].

Definition at line 95 of file ibm_tribend.cpp.

References System::System::box_geo, get_ibm_particle_position(), System::get_system(), kb, Utils::pi(), theta0, and vector_product().

Member Function Documentation

◆ calc_forces()

std::tuple< Utils::Vector3d, Utils::Vector3d, Utils::Vector3d, Utils::Vector3d > IBMTribend::calc_forces ( BoxGeometry const &  box_geo,
Particle const &  p1,
Particle const &  p2,
Particle const &  p3,
Particle const &  p4 
) const

Calculate the forces The equations can be found in Appendix C of [26].

Returns
forces on p1, p2, p3, p4

Definition at line 33 of file ibm_tribend.cpp.

References BoxGeometry::get_mi_vector(), kb, Particle::pos(), theta0, and vector_product().

◆ cutoff()

double IBMTribend::cutoff ( ) const
inline

Definition at line 40 of file ibm_tribend.hpp.

Member Data Documentation

◆ kb

double IBMTribend::kb

Interaction data.

Definition at line 35 of file ibm_tribend.hpp.

Referenced by calc_forces(), and IBMTribend().

◆ num

constexpr int IBMTribend::num = 3
staticconstexpr

Definition at line 43 of file ibm_tribend.hpp.

◆ theta0

double IBMTribend::theta0

Reference angle.

Definition at line 38 of file ibm_tribend.hpp.

Referenced by calc_forces(), and IBMTribend().


The documentation for this struct was generated from the following files: