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

Parameters for FENE bond Potential. More...

#include <fene.hpp>

Public Member Functions

double cutoff () const
 
 FeneBond (double k, double drmax, double r0)
 
boost::optional< Utils::Vector3dforce (Utils::Vector3d const &dx) const
 Compute the FENE bond force.
 
boost::optional< double > energy (Utils::Vector3d const &dx) const
 Compute the FENE bond energy.
 

Public Attributes

double k
 spring constant
 
double drmax
 maximal bond stretching
 
double r0
 equilibrium bond length
 
double drmax2
 square of drmax (internal parameter)
 
double drmax2i
 inverse square of drmax (internal parameter)
 

Static Public Attributes

static constexpr int num = 1
 

Detailed Description

Parameters for FENE bond Potential.

Definition at line 39 of file fene.hpp.

Constructor & Destructor Documentation

◆ FeneBond()

FeneBond::FeneBond ( double  k,
double  drmax,
double  r0 
)
inline

Definition at line 55 of file fene.hpp.

References drmax, drmax2, k, r0, and Utils::sqr().

Member Function Documentation

◆ cutoff()

double FeneBond::cutoff ( ) const
inline

Definition at line 51 of file fene.hpp.

References drmax, and r0.

◆ energy()

boost::optional< double > FeneBond::energy ( Utils::Vector3d const &  dx) const
inline

Compute the FENE bond energy.

Parameters
[in]dxDistance between the particles.

Definition at line 108 of file fene.hpp.

References dr, drmax, drmax2, drmax2i, k, Utils::Vector< T, N >::norm(), and r0.

◆ force()

boost::optional< Utils::Vector3d > FeneBond::force ( Utils::Vector3d const &  dx) const
inline

Compute the FENE bond force.

Parameters
[in]dxDistance between the particles.

Definition at line 83 of file fene.hpp.

References dr, drmax, drmax2i, k, Utils::Vector< T, N >::norm(), r0, ROUND_ERROR_PREC, and runtimeErrorMsg.

Member Data Documentation

◆ drmax

double FeneBond::drmax

maximal bond stretching

Definition at line 43 of file fene.hpp.

Referenced by cutoff(), energy(), FeneBond(), and force().

◆ drmax2

double FeneBond::drmax2

square of drmax (internal parameter)

Definition at line 47 of file fene.hpp.

Referenced by energy(), and FeneBond().

◆ drmax2i

double FeneBond::drmax2i

inverse square of drmax (internal parameter)

Definition at line 49 of file fene.hpp.

Referenced by energy(), and force().

◆ k

double FeneBond::k

spring constant

Definition at line 41 of file fene.hpp.

Referenced by energy(), FeneBond(), and force().

◆ num

constexpr int FeneBond::num = 1
staticconstexpr

Definition at line 53 of file fene.hpp.

◆ r0

double FeneBond::r0

equilibrium bond length

Definition at line 45 of file fene.hpp.

Referenced by cutoff(), energy(), FeneBond(), and force().


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