OPAL (Object Oriented Parallel Accelerator Library)  2.2.0
OPAL
ConstEField.h
Go to the documentation of this file.
1 #ifndef CLASSIC_ConstEField_HH
2 #define CLASSIC_ConstEField_HH
3 
4 // ------------------------------------------------------------------------
5 // $RCSfile: ConstEField.h,v $
6 // ------------------------------------------------------------------------
7 // $Revision: 1.1.1.1 $
8 // ------------------------------------------------------------------------
9 // Copyright: see Copyright.readme
10 // ------------------------------------------------------------------------
11 //
12 // Class: ConstEField
13 //
14 // ------------------------------------------------------------------------
15 // Class category: Fields
16 // ------------------------------------------------------------------------
17 //
18 // $Date: 2000/03/27 09:32:35 $
19 // $Author: fci $
20 //
21 // ------------------------------------------------------------------------
22 
24 
25 
26 // Class ConstEField
27 // ------------------------------------------------------------------------
29 
31 
32 public:
33 
35  // Constructs null field.
36  ConstEField();
37 
38  virtual ~ConstEField();
39 
41  // Return the x-component of the electric field in A/m.
42  virtual double getEx() const;
43 
45  // Return the y-component of the electric field in A/m.
46  virtual double getEy() const;
47 
49  // Return the z-component of the electric field in A/m.
50  virtual double getEz() const;
51 
53  // Assign the x-component of the electric field in A/m.
54  virtual void setEx(double);
55 
57  // Assign the y-component of the electric field in A/m.
58  virtual void setEy(double);
59 
61  // Assign the z-component of the electric field in A/m.
62  virtual void setEz(double);
63 };
64 
65 #endif // CLASSIC_ConstEField_HH
A homogeneous electricstatic field.
Definition: ConstEField.h:30
ConstEField()
Default constructor.
Definition: ConstEField.cpp:27
virtual double getEz() const
Get component.
Definition: ConstEField.cpp:45
Abstract base class for static electric fields.
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