Scine::Swoose  2.1.0
This is the SCINE module Swoose.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Pages
SfamPotentialTermsGenerator.h
Go to the documentation of this file.
1 
8 #ifndef MOLECULARMECHANICS_SFAMPOTENTIALTERMSGENERATOR_H
9 #define MOLECULARMECHANICS_SFAMPOTENTIALTERMSGENERATOR_H
10 
11 #include "../Interactions/AngleTerm.h"
12 #include "../Interactions/BondedTerm.h"
13 #include "../Interactions/DihedralTerm.h"
14 #include "../Interactions/DispersionTerm.h"
15 #include "../Interactions/HydrogenBondTerm.h"
16 #include "../Interactions/ImproperDihedralTerm.h"
17 #include "../Interactions/RepulsionTerm.h"
18 #include <vector>
19 
20 namespace Scine {
21 
22 namespace Core {
23 struct Log;
24 } // namespace Core
25 
26 namespace MolecularMechanics {
27 class IndexedStructuralTopology;
28 class AtomTypesHolder;
29 class SfamParameters;
30 
39  public:
49  SfamPotentialTermsGenerator(int nAtoms, const AtomTypesHolder& atomTypes, const IndexedStructuralTopology& topology,
50  const SfamParameters& parameters, const Utils::PositionCollection& positions,
51  const double& nonCovalentCutoffRadius, Core::Log& log);
52 
54  std::vector<BondedTerm> getBondedTerms();
56  std::vector<AngleTerm> getAngleTerms();
58  std::vector<DihedralTerm> getDihedralTerms();
60  std::vector<ImproperDihedralTerm> getImproperDihedralTerms();
62  std::vector<DispersionTerm> getDispersionTerms(bool applyCutoff);
64  std::vector<RepulsionTerm> getRepulsionTerms(bool applyCutoff);
66  std::vector<HydrogenBondTerm> getHydrogenBondTerms();
67 
68  private:
69  int nAtoms_;
70  const AtomTypesHolder& atomTypesHolder_;
71  const IndexedStructuralTopology& topology_;
72  const SfamParameters& parameters_;
73  const Utils::PositionCollection& positions_;
74  /*
75  * @brief The cutoff radius for the non-covalent interactions.
76  *
77  * It is a pointer so that it is updated with the settings.
78  * This is important since it is passed on from here to the actual DispersionTerms, etc.
79  * A reference does not work because then the assignment operator of DispersionTerms, etc. vanishes.
80  */
81  std::shared_ptr<double> cutoff_;
82  // The logger
83  Core::Log& log_;
84 
85  static constexpr double scalingFactorForElectrostaticOneFourTerms_ = 1.0;
86  static constexpr double scalingFactorForDispersionOneFourTerms_ = 1.0;
87  static constexpr double scalingFactorForRepulsionOneFourTerms_ = 1.0;
88 };
89 
90 } // namespace MolecularMechanics
91 } // namespace Scine
92 
93 #endif // MOLECULARMECHANICS_SFAMPOTENTIALTERMSGENERATOR_H
Class containing the structural information about the connectivity of a system.
Definition: IndexedStructuralTopology.h:25
std::vector< HydrogenBondTerm > getHydrogenBondTerms()
Getter for hydrogen bond terms.
Definition: SfamPotentialTermsGenerator.cpp:167
This class creates the actual potential terms that are employed during an SFAM molecular mechanics ca...
Definition: SfamPotentialTermsGenerator.h:38
std::vector< RepulsionTerm > getRepulsionTerms(bool applyCutoff)
Getter for Pauli repulsion terms with decision whether to use a cutoff radius.
Definition: SfamPotentialTermsGenerator.cpp:137
Class containing the MM atom types of the atoms in a molecular system.
Definition: AtomTypesHolder.h:21
std::vector< BondedTerm > getBondedTerms()
Getter for bonded terms.
Definition: SfamPotentialTermsGenerator.cpp:33
std::vector< DispersionTerm > getDispersionTerms(bool applyCutoff)
Getter for dispersion terms with decision whether to use a cutoff radius.
Definition: SfamPotentialTermsGenerator.cpp:100
std::vector< ImproperDihedralTerm > getImproperDihedralTerms()
Getter for improper dihedral terms.
Definition: SfamPotentialTermsGenerator.cpp:73
std::vector< DihedralTerm > getDihedralTerms()
Getter for dihedral terms.
Definition: SfamPotentialTermsGenerator.cpp:41
SfamPotentialTermsGenerator(int nAtoms, const AtomTypesHolder &atomTypes, const IndexedStructuralTopology &topology, const SfamParameters &parameters, const Utils::PositionCollection &positions, const double &nonCovalentCutoffRadius, Core::Log &log)
Constructor.
Definition: SfamPotentialTermsGenerator.cpp:19
Class containing the parameters for SFAM&#39;s MM model obtained after parsing a SFAM parameter file...
Definition: SfamParameters.h:37
std::vector< AngleTerm > getAngleTerms()
Getter for angle terms.
Definition: SfamPotentialTermsGenerator.cpp:37