Scine::Swoose  2.1.0
This is the SCINE module Swoose.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Pages
Electrostatic.h
Go to the documentation of this file.
1 
8 #ifndef MOLECULARMECHANICS_ELECTROSTATIC_H
9 #define MOLECULARMECHANICS_ELECTROSTATIC_H
10 
12 #include <Utils/Typenames.h>
13 
14 namespace Scine {
15 namespace MolecularMechanics {
21  public:
26  explicit Electrostatic(double scalingFactor);
27 
32  Utils::AutomaticDifferentiation::Second1D getInteraction(double distance, double charge1, double charge2) const;
33 
34  private:
35  double scalingFactor_;
36 };
37 
38 } // namespace MolecularMechanics
39 } // namespace Scine
40 
41 #endif // MOLECULARMECHANICS_ELECTROSTATIC_H
double distance(const PositionCollection &p1, const PositionCollection &p2)
Utils::AutomaticDifferentiation::Second1D getInteraction(double distance, double charge1, double charge2) const
This function calculates the electrostatic energy and its derivatives for two point charges at a cert...
Definition: Electrostatic.cpp:17
Electrostatic(double scalingFactor)
Constructor.
Definition: Electrostatic.cpp:14
Class treating non-bonded electrostatic interaction, based solely on the bond length. (i.e. in 1 dimension)
Definition: Electrostatic.h:20