OPAL (Object Oriented Parallel Accelerator Library)  2.2.0
OPAL
ConstEField.cpp
Go to the documentation of this file.
1 // ------------------------------------------------------------------------
2 // $RCSfile: ConstEField.cpp,v $
3 // ------------------------------------------------------------------------
4 // $Revision: 1.1.1.1 $
5 // ------------------------------------------------------------------------
6 // Copyright: see Copyright.readme
7 // ------------------------------------------------------------------------
8 //
9 // Class: ConstEField
10 // A static electric field independent of (x,y,z).
11 //
12 // ------------------------------------------------------------------------
13 // Class category: Fields
14 // ------------------------------------------------------------------------
15 //
16 // $Date: 2000/03/27 09:32:35 $
17 // $Author: fci $
18 //
19 // ------------------------------------------------------------------------
20 
21 #include "Fields/ConstEField.h"
22 
23 
24 // Class ConstEField
25 // ------------------------------------------------------------------------
26 
28 {}
29 
30 
32 {}
33 
34 
35 double ConstEField::getEx() const {
36  return 0.0;
37 }
38 
39 
40 double ConstEField::getEy() const {
41  return 0.0;
42 }
43 
44 
45 double ConstEField::getEz() const {
46  return 0.0;
47 }
48 
49 
50 void ConstEField::setEx(double E)
51 {}
52 
53 
54 void ConstEField::setEy(double E)
55 {}
56 
57 
58 void ConstEField::setEz(double E)
59 {}
ConstEField()
Default constructor.
Definition: ConstEField.cpp:27
virtual double getEz() const
Get component.
Definition: ConstEField.cpp:45
virtual void setEy(double)
Set component.
Definition: ConstEField.cpp:54
virtual ~ConstEField()
Definition: ConstEField.cpp:31
virtual void setEx(double)
Set component.
Definition: ConstEField.cpp:50
virtual double getEx() const
Get component.
Definition: ConstEField.cpp:35
virtual void setEz(double)
Set component.
Definition: ConstEField.cpp:58
virtual double getEy() const
Get component.
Definition: ConstEField.cpp:40