Emdee
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Public Member Functions | List of all members
FannTwoParticleForce Class Reference

The FannTwoParticleForce class loads a pre-trained FANN network and uses this to calculate two-particle forces between a given set of atoms. More...

#include <fanntwoparticleforce.h>

Inheritance diagram for FannTwoParticleForce:
Inheritance graph
[legend]
Collaboration diagram for FannTwoParticleForce:
Collaboration graph
[legend]

Public Member Functions

 FannTwoParticleForce ()
 
void addNetwork (const AtomType &atomType1, const AtomType &atomType2, const std::string &fileName, const std::string &boundsFilename)
 
virtual void calculateAndApplyForce (Atom *atom1, Atom *atom2)
 
virtual void calculateAndApplyForce (Atom *atom1, Atom *atom2, const Vector3 &atom2Offset)
 
- Public Member Functions inherited from TwoParticleForce
 TwoParticleForce ()
 
void setNewtonsThirdLawEnabled (bool enable)
 
bool isNewtonsThirdLawEnabled ()
 
void setCalculatePressureEnabled (bool enable)
 
bool isCalculatePressureEnabled ()
 
void setCalculatePotentialEnabled (bool enable)
 
bool isCalculatePotentialEnabled ()
 
double cutoffRadius () const
 
void setCutoffRadius (double cutoffRadius)
 

Detailed Description

The FannTwoParticleForce class loads a pre-trained FANN network and uses this to calculate two-particle forces between a given set of atoms.

Constructor & Destructor Documentation

FannTwoParticleForce::FannTwoParticleForce ( )

Member Function Documentation

void FannTwoParticleForce::addNetwork ( const AtomType atomType1,
const AtomType atomType2,
const std::string &  fileName,
const std::string &  boundsFilename 
)
void FannTwoParticleForce::calculateAndApplyForce ( Atom atom1,
Atom atom2 
)
virtual

Reimplemented from TwoParticleForce.

void FannTwoParticleForce::calculateAndApplyForce ( Atom atom1,
Atom atom2,
const Vector3 atom2Offset 
)
virtual

Implements TwoParticleForce.


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