ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/mdtools/headers/ForceFields.hpp
Revision: 176
Committed: Thu Nov 14 22:00:44 2002 UTC (21 years, 7 months ago) by mmeineke
File size: 1950 byte(s)
Log Message:
*** empty log message ***

File Contents

# Content
1 #ifndef __FORCEFIELDS_H__
2 #define __FORCEFIELDS_H__
3
4 #include <cstdio>
5 #include <cstdlib>
6
7 #include "Atom.hpp"
8 #include "SimInfo.hpp"
9
10 #ifdef IS_MPI
11 #include "mpiForceField.h"
12 #endif
13
14 class bond_pair{
15 public:
16 bond_pair(){}
17 ~bond_pair(){}
18
19 int a;
20 int b;
21 };
22
23 class bend_set{
24 public:
25 bend_set(){}
26 ~bend_set(){}
27
28 int a;
29 int b;
30 int c;
31 };
32
33 class torsion_set{
34 public:
35 torsion_set(){}
36 ~torsion_set(){}
37
38 int a;
39 int b;
40 int c;
41 int d;
42 };
43
44 // typedef struct{
45 // int a, b;
46 // } bond_pair;
47
48 // typedef struct{
49 // int a, b, c;
50 // } bend_set;
51
52 // typedef struct{
53 // int a, b, c, d;
54 // } torsion_set;
55
56
57 class ForceFields{
58
59 public:
60 ForceFields(){ frcFile = NULL; entry_plug = NULL; }
61 virtual ~ForceFields(){}
62
63 void setSimInfo( SimInfo* the_entry_plug ) { entry_plug = the_entry_plug; }
64 virtual void initializeAtoms( void ) = 0;
65 virtual void initializeBonds( bond_pair* the_bonds ) = 0;
66 virtual void initializeBends( bend_set* the_bends ) = 0;
67 virtual void initializeTorsions( torsion_set* the_torsions ) = 0;
68
69 protected:
70
71 FILE *frcFile;
72 SimInfo* entry_plug;
73
74 };
75
76 class TraPPEFF : public ForceFields{
77
78 public:
79 TraPPEFF();
80 virtual ~TraPPEFF();
81
82 void initializeAtoms( void );
83 void initializeBonds( bond_pair* the_bonds );
84 void initializeBends( bend_set* the_bends );
85 void initializeTorsions( torsion_set* the_torsions );
86 };
87
88
89 class DipoleTestFF : public ForceFields{
90
91 public:
92 DipoleTestFF();
93 virtual ~DipoleTestFF();
94
95 void initializeAtoms( void );
96 void initializeBonds( bond_pair* the_bonds );
97 void initializeBends( bend_set* the_bends );
98 void initializeTorsions( torsion_set* the_torsions );
99 };
100
101 class TraPPE_ExFF : public ForceFields{
102
103 public:
104 TraPPE_ExFF();
105 virtual ~TraPPE_ExFF();
106
107 void initializeAtoms( void );
108 void initializeBonds( bond_pair* the_bonds );
109 void initializeBends( bend_set* the_bends );
110 void initializeTorsions( torsion_set* the_torsions );
111 };
112
113 #endif