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

Parameters for Coulomb bond Potential. More...

#include <bonded_coulomb.hpp>

Public Member Functions

double cutoff () const
 
 BondedCoulomb (double prefactor)
 
boost::optional< Utils::Vector3dforce (double q1q2, Utils::Vector3d const &dx) const
 Compute the bonded Coulomb pair force.
 
boost::optional< double > energy (double q1q2, Utils::Vector3d const &dx) const
 Compute the bonded Coulomb pair energy.
 

Public Attributes

double prefactor
 Coulomb prefactor.
 

Static Public Attributes

static constexpr int num = 1
 

Detailed Description

Parameters for Coulomb bond Potential.

Definition at line 38 of file bonded_coulomb.hpp.

Constructor & Destructor Documentation

◆ BondedCoulomb()

BondedCoulomb::BondedCoulomb ( double  prefactor)
inline

Definition at line 46 of file bonded_coulomb.hpp.

References prefactor.

Member Function Documentation

◆ cutoff()

double BondedCoulomb::cutoff ( ) const
inline

Definition at line 42 of file bonded_coulomb.hpp.

◆ energy()

boost::optional< double > BondedCoulomb::energy ( double  q1q2,
Utils::Vector3d const &  dx 
) const
inline

Compute the bonded Coulomb pair energy.

Parameters
[in]q1q2Product of the particle charges.
[in]dxDistance between the particles.

Definition at line 81 of file bonded_coulomb.hpp.

References Utils::Vector< T, N >::norm(), and prefactor.

◆ force()

boost::optional< Utils::Vector3d > BondedCoulomb::force ( double  q1q2,
Utils::Vector3d const &  dx 
) const
inline

Compute the bonded Coulomb pair force.

Parameters
[in]q1q2Product of the particle charges.
[in]dxDistance between the particles.

Definition at line 65 of file bonded_coulomb.hpp.

References Utils::Vector< T, N >::norm2(), and prefactor.

Member Data Documentation

◆ num

constexpr int BondedCoulomb::num = 1
staticconstexpr

Definition at line 44 of file bonded_coulomb.hpp.

◆ prefactor

double BondedCoulomb::prefactor

Coulomb prefactor.

Definition at line 40 of file bonded_coulomb.hpp.

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


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