Scine::Swoose
2.1.0
This is the SCINE module Swoose.
Main Page
Related Pages
Classes
Files
File List
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Pages
HydrogenBondParameters.h
Go to the documentation of this file.
1
8
#ifndef MOLECULARMECHANICS_HYDROGENBONDPARAMETERS_H
9
#define MOLECULARMECHANICS_HYDROGENBONDPARAMETERS_H
10
11
#include "../MMExceptions.h"
12
#include <
Utils/Geometry/ElementTypes.h
>
13
14
namespace
Scine {
15
namespace
MolecularMechanics {
16
17
class
HydrogenBondParameters
{
18
public
:
19
static
double
getInteractionStrengthConstants(
const
Utils::ElementType& elementType);
20
};
21
22
// Fitted by manual inspection to several small hydrogen bonded dimer interaction energies
23
inline
double
HydrogenBondParameters::getInteractionStrengthConstants(
const
Utils::ElementType& elementType) {
24
double
constant;
25
switch
(elementType) {
26
case
Utils::ElementType::N:
27
constant = 0.6;
28
break
;
29
case
Utils::ElementType::O:
30
constant = 0.7;
31
break
;
32
case
Utils::ElementType::F:
33
constant = 3.2;
34
break
;
35
case
Utils::ElementType::Cl:
36
constant = 4.2;
37
break
;
38
default
:
39
throw
ElementTypeIsNotAllowedForHydrogenBondsException
(
40
"The given element type can not be used for hydrogen bonds."
);
41
}
42
return
constant;
43
}
44
45
}
// namespace MolecularMechanics
46
}
// namespace Scine
47
48
#endif // MOLECULARMECHANICS_HYDROGENBONDPARAMETERS_H
Scine::MolecularMechanics::HydrogenBondParameters
Definition:
HydrogenBondParameters.h:17
Scine::MolecularMechanics::ElementTypeIsNotAllowedForHydrogenBondsException
Definition:
MMExceptions.h:94
ElementTypes.h
src
Swoose
Swoose
MolecularMechanics
Interactions
HydrogenBondParameters.h
Generated by
1.8.5