Scine::Swoose  2.1.0
This is the SCINE module Swoose.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Pages
ScaledInteractions.h
Go to the documentation of this file.
1 
8 #ifndef SWOOSE_SCALEDINTERACTIONS_H
9 #define SWOOSE_SCALEDINTERACTIONS_H
10 
11 #include <Eigen/Sparse>
12 
13 namespace Scine {
14 namespace MolecularMechanics {
15 class IndexedStructuralTopology;
16 
23  public:
28  ScaledInteractions(unsigned int nAtoms);
33  void setScaledInteractionPairs(const Eigen::SparseMatrix<bool>& pairs);
38  void addScaledInteractionPairs(const Eigen::SparseMatrix<bool>& pairs);
48  const Eigen::SparseMatrix<bool>& getScaledInteractionPairs();
53  void setInteractionScalingFactor(const double& factor);
63  void resetScaledInteractions(unsigned int nAtoms);
64 
65  private:
66  Eigen::SparseMatrix<bool> scaledAtomPairs_;
67  double scalingFactor_ = 0.5;
68 };
69 
70 } // namespace MolecularMechanics
71 } // namespace Scine
72 
73 #endif // SWOOSE_SCALEDINTERACTIONS_H
Class containing the structural information about the connectivity of a system.
Definition: IndexedStructuralTopology.h:25
This class keeps track which pair-wise interaction between atoms is scaled. The scaling information i...
Definition: ScaledInteractions.h:22
double getInteractionScalingFactor()
Getter for the interaction scaling factor.
Definition: ScaledInteractions.cpp:42
void setInteractionScalingFactor(const double &factor)
Setter for the interaction scaling factor.
Definition: ScaledInteractions.cpp:38
const Eigen::SparseMatrix< bool > & getScaledInteractionPairs()
Getter for scaling information.
Definition: ScaledInteractions.cpp:34
void setScaledInteractionPairs(const Eigen::SparseMatrix< bool > &pairs)
Setter for the scaling information.
Definition: ScaledInteractions.cpp:18
void addScaledInteractionPairs(const Eigen::SparseMatrix< bool > &pairs)
Add new scaled interactions.
Definition: ScaledInteractions.cpp:26
ScaledInteractions(unsigned int nAtoms)
Constructor.
Definition: ScaledInteractions.cpp:14
void resetScaledInteractions(unsigned int nAtoms)
Resize the scaling information matrix to the nem number of atoms.
Definition: ScaledInteractions.cpp:56