#include <TwelveSixLjPotential.h>

Public Member Functions | |
| TwelveSixLjPotential () | |
| TwelveSixLjPotential (glotz_flt) | |
| TwelveSixLjPotential (const TwelveSixLjPotential &) | |
| virtual TwelveSixLjPotential * | Clone () |
| Clone constructor. | |
| virtual | ~TwelveSixLjPotential () |
| _DeclareSerializable (TwelveSixLjPotential) | |
| void | Serialize (glotzutil::Archive &) |
| void | Initialize () |
| void | ComputeForce (InteractingObject *const, InteractingObject *const, const glotz_vec &, const glotz_flt) |
| Compute the force between two interacting objects. | |
| void | ComputeShiftedForce (InteractingObject *const, InteractingObject *const, const glotz_vec &, const glotz_flt, const glotz_flt) |
| Compute the force between two interacting objects where the interaction is shifted from the object surface. | |
| void | SetEpsilon (const glotz_flt) |
| void | SetSigma (const glotz_flt) |
| void | SetCutoff (const glotz_flt) |
| glotz_flt | GetEpsilon () const |
| glotz_flt | GetSigma () const |
| glotz_flt | GetCutoff () const |
| Gets the interaction cutoff. | |
| glotz_flt | GetOverlapCutoff () const |
| Gets the overlap cutoff. | |
| glotz_flt | GetForceShift () const |
| glotz_flt | GetPotentialShift () const |
Protected Attributes | |
| glotz_flt | mEpsilon |
| glotz_flt | mSigma |
| glotz_flt | mCutoff |
| glotz_flt | mFshift |
| glotz_flt | mPshift |
| glotz_flt | mSigma6f |
| glotz_flt | mSigma12f |
| glotz_flt | mSigma6 |
| glotz_flt | mSigma12 |
| glotz_flt | mCutoffSq |
The Lennard-Jones potential (LJ) is used to model the excluded volume interactions and van der Waals interaction attraction of neutral atoms. For computational efficiency, the potential is truncated and shifted to zero using the following formula:
For more information, see http://matdl.org/matdlwiki/index.php/softmatter:Lennard-Jones_Potential
| glotzmd::TwelveSixLjPotential::TwelveSixLjPotential | ( | ) |
| glotzmd::TwelveSixLjPotential::TwelveSixLjPotential | ( | glotz_flt | epsilon | ) |
| glotzmd::TwelveSixLjPotential::TwelveSixLjPotential | ( | const TwelveSixLjPotential & | rhs | ) |
| virtual glotzmd::TwelveSixLjPotential::~TwelveSixLjPotential | ( | ) | [inline, virtual] |
| TwelveSixLjPotential * glotzmd::TwelveSixLjPotential::Clone | ( | ) | [virtual] |
| glotzmd::TwelveSixLjPotential::_DeclareSerializable | ( | TwelveSixLjPotential | ) |
| void glotzmd::TwelveSixLjPotential::Serialize | ( | glotzutil::Archive & | ar | ) | [virtual] |
Reimplemented from glotzmd::Potential.
| void glotzmd::TwelveSixLjPotential::Initialize | ( | ) |
| void glotzmd::TwelveSixLjPotential::ComputeForce | ( | InteractingObject * const | obj1, | |
| InteractingObject * const | obj2, | |||
| const glotz_vec & | rij, | |||
| const | glotz_flt | |||
| ) | [inline, virtual] |
Compute the force between two interacting objects.
| obj1 | is a pointer to one object | |
| obj2 | is a pointer to another object | |
| rij | is the vector connecting the two objects | |
| r2 | is the squared distance between the two objects |
Implements glotzmd::Potential.
| void glotzmd::TwelveSixLjPotential::ComputeShiftedForce | ( | InteractingObject * const | obj1, | |
| InteractingObject * const | obj2, | |||
| const glotz_vec & | rij, | |||
| const | glotz_flt, | |||
| const | glotz_flt | |||
| ) | [inline, virtual] |
Compute the force between two interacting objects where the interaction is shifted from the object surface.
| obj1 | is a pointer to one object | |
| obj2 | is a pointer to another object | |
| rij | is the vector connecting the two objects | |
| r2 | is the squared distance between the two objects | |
| shift | is the contribution of the shift to the distance between objects |
Implements glotzmd::Potential.
| void glotzmd::TwelveSixLjPotential::SetEpsilon | ( | const | glotz_flt | ) |
| void glotzmd::TwelveSixLjPotential::SetSigma | ( | const | glotz_flt | ) |
Reimplemented in glotzmd::WcaPotential.
| void glotzmd::TwelveSixLjPotential::SetCutoff | ( | const | glotz_flt | ) |
Reimplemented in glotzmd::WcaPotential.
| glotz_flt glotzmd::TwelveSixLjPotential::GetEpsilon | ( | ) | const |
| glotz_flt glotzmd::TwelveSixLjPotential::GetSigma | ( | ) | const |
| glotz_flt glotzmd::TwelveSixLjPotential::GetCutoff | ( | ) | const [virtual] |
Gets the interaction cutoff.
Reimplemented from glotzmd::Potential.
| glotz_flt glotzmd::TwelveSixLjPotential::GetOverlapCutoff | ( | ) | const [virtual] |
Gets the overlap cutoff.
This function is used in interpolation
Reimplemented from glotzmd::Potential.
| glotz_flt glotzmd::TwelveSixLjPotential::GetForceShift | ( | ) | const |
| glotz_flt glotzmd::TwelveSixLjPotential::GetPotentialShift | ( | ) | const |
glotz_flt glotzmd::TwelveSixLjPotential::mEpsilon [protected] |
glotz_flt glotzmd::TwelveSixLjPotential::mSigma [protected] |
glotz_flt glotzmd::TwelveSixLjPotential::mCutoff [protected] |
glotz_flt glotzmd::TwelveSixLjPotential::mFshift [protected] |
glotz_flt glotzmd::TwelveSixLjPotential::mPshift [protected] |
glotz_flt glotzmd::TwelveSixLjPotential::mSigma6f [protected] |
glotz_flt glotzmd::TwelveSixLjPotential::mSigma12f [protected] |
glotz_flt glotzmd::TwelveSixLjPotential::mSigma6 [protected] |
glotz_flt glotzmd::TwelveSixLjPotential::mSigma12 [protected] |
glotz_flt glotzmd::TwelveSixLjPotential::mCutoffSq [protected] |
1.5.3