faunus
Public Member Functions | Public Attributes | List of all members
Faunus::pairpotential::FENEBond Struct Reference

FENE bond. More...

#include <bonds.h>

Inheritance diagram for Faunus::pairpotential::FENEBond:
Inheritance graph
[legend]
Collaboration diagram for Faunus::pairpotential::FENEBond:
Collaboration graph
[legend]

Public Member Functions

Variant type () const override
 
std::shared_ptr< BondDataclone () const override
 
void from_json (const json &j) override
 
void to_json (json &j) const override
 
void setEnergyFunction (const ParticleVector &particles) override
 
 FENEBond (double k, double rmax, const std::vector< int > &indices)
 

Public Attributes

double half_force_constant = 0.0
 
double max_squared_distance = 0.0
 

Detailed Description

FENE bond.

U(r) = -k/2 * r_max^2 * ln(1 - r^2 / r_max^2) if r < r_max, ∞ otherwise


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