NAMD
Main Page
Namespaces
Classes
Files
File List
File Members
GlobalMasterSMD.h
Go to the documentation of this file.
1
7
#ifndef GLOBALMASTERSMD_H
8
#define GLOBALMASTERSMD_H
9
10
class
GlobalMasterSMD
:
public
GlobalMaster
{
11
public
:
12
/* initializes this to be a SMD master maintaing the group specified
13
in <filename> bound by a spring with k=<spring_constant> to a
14
point moving from its initial CM in the direction <direction>
15
with speed <velocity>. Must also be passed the desired rate of
16
output <output_frequency> and the inital timestep # of the
17
simulation <first_timestep> */
18
GlobalMasterSMD
(
BigReal
spring_constant,
19
BigReal
transverse_spring_constant,
20
BigReal
velocity,
21
const
Vector
direction,
int
output_frequency,
22
int
first_timestep,
const
char
*filename,
int
);
23
~GlobalMasterSMD
();
24
25
private
:
26
virtual
void
calculate();
27
28
/* prints out a message for timestep <t> reporting that the forced
29
atoms are at CM position <p> and are feeling force <f> */
30
void
output(
int
t,
Position
p,
Force
f);
31
32
/* read the atoms from the file into group 0 (only call this once!) */
33
void
parseAtoms(
const
char
*file,
int
);
34
35
BigReal
k;
36
BigReal
k2;
37
BigReal
moveVel;
// A/timestep
38
Vector
moveDir;
39
int
outputFreq;
40
Position
cm;
// Initial center of mass
41
int
currentTime;
// Keep track of elapsed time steps for yourself!
42
};
43
#endif
44
GlobalMaster
Definition:
GlobalMaster.h:30
Vector
Definition:
Vector.h:64
GlobalMasterSMD::~GlobalMasterSMD
~GlobalMasterSMD()
Definition:
GlobalMasterSMD.C:94
GlobalMasterSMD::GlobalMasterSMD
GlobalMasterSMD(BigReal spring_constant, BigReal transverse_spring_constant, BigReal velocity, const Vector direction, int output_frequency, int first_timestep, const char *filename, int)
Definition:
GlobalMasterSMD.C:31
GlobalMasterSMD
Definition:
GlobalMasterSMD.h:10
BigReal
double BigReal
Definition:
common.h:114
Generated by
1.8.5