Bridge++
Ver. 1.1.x
Main Page
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
action_F_Rational_Frame.h
Go to the documentation of this file.
1
14
#ifndef ACTION_F_RATIONAL_FRAME_INCLUDED
15
#define ACTION_F_RATIONAL_FRAME_INCLUDED
16
17
#include "
action.h
"
18
#include "
fopr_Rational.h
"
19
#include "
force_F_Rational.h
"
20
21
#include "
bridgeIO.h
"
22
using
Bridge::vout
;
23
25
34
//- parameters class
35
class
Parameters_Action_F_Rational_frame
:
virtual
public
Parameters
36
{
37
public
:
38
Parameters_Action_F_Rational_frame
();
39
};
40
//- end
41
42
class
Action_F_Rational_frame
:
public
Action
43
{
44
private
:
45
std::string
m_label
;
// label of action
46
47
Fopr
*
m_fopr_langev
;
48
Fopr
*
m_fopr_H
;
49
Force
*
m_fopr_force_MD
;
50
51
Field
*
m_U
;
52
int
m_status_linkv
;
53
54
Field
m_psf
;
55
Field
m_force
;
56
57
58
public
:
60
Action_F_Rational_frame
(
61
Fopr
*fopr_langev,
Fopr
*fopr_H,
Force
*fopr_force_MD)
62
:
Action
(),
63
m_fopr_langev
(fopr_langev),
m_fopr_H
(fopr_H),
m_fopr_force_MD
(fopr_force_MD)
64
{
65
setup
();
66
}
67
69
~Action_F_Rational_frame
() {}
70
71
void
set_parameters
(
const
Parameters
& params);
72
74
void
set_label
(std::string label)
75
{
76
m_label
= label;
77
vout
.
detailed
(
m_vl
,
" label: %s\n"
,
m_label
.c_str());
78
}
79
81
std::string
get_label
()
82
{
83
return
m_label
;
84
}
85
87
void
set_config
(
Field
*U)
88
{
89
m_U
= U;
90
m_fopr_langev
->
set_config
(U);
91
m_fopr_H
->
set_config
(U);
92
m_fopr_force_MD
->
set_config
(U);
93
}
94
96
void
notify_linkv
()
97
{
98
m_status_linkv
= 0;
99
}
100
102
double
langevin
(
RandomNumbers
*);
103
105
double
calcH
();
106
108
const
Field
force
();
109
110
private
:
111
113
void
setup
();
114
116
void
tidyup
();
117
};
118
#endif
src
Action
action_F_Rational_Frame.h
Generated on Tue Jul 23 2013 10:48:47 for Bridge++ by
1.8.3.1