BALL
1.4.79
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
include
BALL
MOLMEC
PARAMETER
lennardJones.h
Go to the documentation of this file.
1
// -*- Mode: C++; tab-width: 2; -*-
2
// vi: set ts=2:
3
//
4
5
// Molecular Mechanics Parameter: class describing the atom type section of a parameter file
6
7
#ifndef BALL_MOLMEC_PARAMETER_LENNARDJONES_H
8
#define BALL_MOLMEC_PARAMETER_LENNARDJONES_H
9
10
#ifndef BALL_FORMAT_PARAMETERSECTION_H
11
# include <
BALL/FORMAT/parameterSection.h
>
12
#endif
13
14
#ifndef BALL_MOLMEC_PARAMETER_ATOMTYPES_H
15
# include <
BALL/MOLMEC/PARAMETER/atomTypes.h
>
16
#endif
17
18
namespace
BALL
19
{
42
class
BALL_EXPORT
LennardJones
43
:
public
ParameterSection
44
{
45
public
:
46
50
51
enum
FormatType
52
{
53
A_B_FORMAT
,
54
EPSILON_R_FORMAT
,
55
SLATER_KIRKWOOD_FORMAT
56
};
57
59
62
65
struct
BALL_EXPORT
Values
66
{
67
float
A
;
68
float
B
;
69
};
70
71
struct
BALL_EXPORT
Data
72
{
73
Atom
*
atom1
;
74
Atom
*
atom2
;
75
Values
values
;
76
};
77
79
80
84
87
LennardJones
() ;
88
91
LennardJones
(
const
LennardJones
& lj) ;
92
95
virtual
~
LennardJones
() ;
96
99
virtual
void
clear() ;
100
102
109
virtual
bool
extractSection(
ForceFieldParameters
& parameters,
110
const
String
& section_name) ;
111
113
virtual
bool
extractSection(
Parameters
& parameters,
114
const
String
& section_name) ;
115
118
bool
hasParameters(
Atom::Type
I,
Atom::Type
J)
const
;
119
122
Values
getParameters(
Atom::Type
I,
Atom::Type
J)
const
;
123
128
bool
assignParameters(
Values
& parameters,
Atom::Type
I,
Atom::Type
J)
129
const
;
130
134
137
const
LennardJones
& operator = (
const
LennardJones
& lj) ;
138
140
143
146
bool
operator ==
(
const
LennardJones
& lj)
const
;
147
149
150
protected
:
151
152
Size
number_of_atom_types_
;
153
154
std::vector<float>
A_
;
155
156
std::vector<float>
B_
;
157
158
std::vector<float>
N_
;
159
160
std::vector<float>
Aij_
;
161
162
std::vector<float>
Bij_
;
163
164
std::vector<bool>
is_defined_
;
165
166
FormatType
format_
;
167
168
std::vector<String>
names_
;
169
};
170
}
// namespace BALL
171
172
#endif // BALL_MOLMEC_PARAMETER_LENNARDJONES_H
BALL::LennardJones::EPSILON_R_FORMAT
Definition:
lennardJones.h:54
BALL::LennardJones::Data::values
Values values
Definition:
lennardJones.h:75
BALL::LennardJones::Data
Definition:
lennardJones.h:71
BALL::LennardJones::Data::atom2
Atom * atom2
Definition:
lennardJones.h:74
BALL::ParameterSection
Definition:
parameterSection.h:39
BALL::LennardJones::number_of_atom_types_
Size number_of_atom_types_
Definition:
lennardJones.h:152
BALL::LennardJones::Aij_
std::vector< float > Aij_
Definition:
lennardJones.h:160
BALL::String
Definition:
string.h:61
BALL::Atom::Type
short Type
Definition:
atom.h:103
BALL::LennardJones::Bij_
std::vector< float > Bij_
Definition:
lennardJones.h:162
BALL::LennardJones::N_
std::vector< float > N_
Definition:
lennardJones.h:158
BALL::LennardJones::format_
FormatType format_
Definition:
lennardJones.h:166
BALL::LennardJones::B_
std::vector< float > B_
Definition:
lennardJones.h:156
BALL::LennardJones::names_
std::vector< String > names_
Definition:
lennardJones.h:168
BALL::LennardJones::A_
std::vector< float > A_
Definition:
lennardJones.h:154
parameterSection.h
BALL::LennardJones::Data::atom1
Atom * atom1
Definition:
lennardJones.h:73
BALL::LennardJones::Values::A
float A
Definition:
lennardJones.h:67
BALL::ForceFieldParameters
Definition:
forceFieldParameters.h:29
BALL::LennardJones
Definition:
lennardJones.h:42
BALL::LennardJones::Values::B
float B
Definition:
lennardJones.h:68
BALL::LennardJones::is_defined_
std::vector< bool > is_defined_
Definition:
lennardJones.h:164
BALL::operator==
BALL_EXPORT bool operator==(const String &s1, const String &s2)
BALL::Parameters
Definition:
parameters.h:24
BALL::LennardJones::FormatType
FormatType
Definition:
lennardJones.h:51
BALL_SIZE_TYPE
BALL::Atom
Definition:
atom.h:87
BALL::LennardJones::A_B_FORMAT
Definition:
lennardJones.h:53
BALL::LennardJones::Values
Definition:
lennardJones.h:65
BALL_EXPORT
#define BALL_EXPORT
Definition:
COMMON/global.h:50
atomTypes.h
Generated by
1.8.7