OPALX (Object Oriented Parallel Accelerator Library for Exascal) master (dc2a29eed580)
OPALX
Loading...
Searching...
No Matches
ConstBzField.h
Go to the documentation of this file.
1#ifndef OPALX_ConstBzField_HH
2#define OPALX_ConstBzField_HH
3
4// ------------------------------------------------------------------------
5// $RCSfile: ConstBzField.h,v $
6// ------------------------------------------------------------------------
7// $Revision: 1.1.1.1 $
8// ------------------------------------------------------------------------
9// Copyright: see Copyright.readme
10// ------------------------------------------------------------------------
11//
12// Class: ConstBzField
13//
14// ------------------------------------------------------------------------
15// Class category: Fields
16// ------------------------------------------------------------------------
17//
18// $Date: 2000/03/27 09:32:35 $
19// $Author: fci $
20//
21// ------------------------------------------------------------------------
22
23#include "Fields/ConstBField.h"
24
25// Class ConstBzField
26// ------------------------------------------------------------------------
28
29class ConstBzField : public ConstBField {
30public:
32 // Constructs a null field.
34
35 virtual ~ConstBzField();
36
38 // Return the time-independent part of the magnetic field in point [b]P[/b].
39 // This override forces implementation in derived classes.
40 virtual BVector Bfield(const Point3D& P) const;
41
43 // Return the magnetic field at time [b]t[/b] in point [b]P[/b].
44 // This override forces implementation in derived classes.
45 virtual BVector Bfield(const Point3D& P, double t) const;
46
48 // Return the z-component of the magnetic field in T.
49 virtual double getBz() const;
50
52 // Assign the z-component of the magnetic field in T.
53 virtual void setBz(double Bz);
54
56 // Multiply the field by [b]scalar[/b].
57 virtual void scale(double scalar);
58
59private:
60 // The field component.
61 double Bz;
62};
63
64#endif // OPALX_ConstBzField_HH
A magnetic field vector.
Definition EMField.h:88
A homogenous magnetostatic field.
Definition ConstBField.h:30
A homogeneous magnetostatic field in z-direction.
virtual void scale(double scalar)
Scale the field.
ConstBzField()
Default constructor.
virtual ~ConstBzField()
virtual double getBz() const
Get component.
virtual void setBz(double Bz)
Set component.
virtual BVector Bfield(const Point3D &P) const
Get field.
A point in 3 dimensions.
Definition EMField.h:32