ESPResSo
Extensible Simulation Package for Research on Soft Matter Systems
Loading...
Searching...
No Matches
gay_berne.hpp File Reference

Routines to calculate the Gay-Berne potential between particle pairs. More...

#include "config/config.hpp"
#include "Particle.hpp"
#include "nonbonded_interaction_data.hpp"
#include <utils/Vector.hpp>
#include <utils/math/int_pow.hpp>
#include <utils/math/sqr.hpp>
#include <utils/quaternion.hpp>
#include <cmath>
+ Include dependency graph for gay_berne.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

ParticleForce gb_pair_force (Utils::Quaternion< double > const &qi, Utils::Quaternion< double > const &qj, IA_parameters const &ia_params, Utils::Vector3d const &d, double dist)
 Calculate Gay-Berne force and torques.
 
double gb_pair_energy (Utils::Quaternion< double > const &qi, Utils::Quaternion< double > const &qj, IA_parameters const &ia_params, Utils::Vector3d const &d, double dist)
 Calculate Gay-Berne energy.
 

Detailed Description

Routines to calculate the Gay-Berne potential between particle pairs.

Please note that contrary to the original paper [20], here the GB prefactor \( \varepsilon_0 \) is not raised to the power of \( \nu \), in agreement with the convention used in the GB literature.

Implementation in gay_berne.cpp.

Definition in file gay_berne.hpp.

Function Documentation

◆ gb_pair_energy()

double gb_pair_energy ( Utils::Quaternion< double > const &  qi,
Utils::Quaternion< double > const &  qj,
IA_parameters const &  ia_params,
Utils::Vector3d const &  d,
double  dist 
)
inline

◆ gb_pair_force()