OPALX (Object Oriented Parallel Accelerator Library for Exascal) master (dc2a29eed580)
OPALX
Loading...
Searching...
No Matches
ConstBField.cpp
Go to the documentation of this file.
1// ------------------------------------------------------------------------
2// $RCSfile: ConstBField.cpp,v $
3// ------------------------------------------------------------------------
4// $Revision: 1.1.1.1 $
5// ------------------------------------------------------------------------
6// Copyright: see Copyright.readme
7// ------------------------------------------------------------------------
8//
9// Class: ConstBField
10// A static magnetic 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/ConstBField.h"
22
23// Class ConstBField
24// ------------------------------------------------------------------------
25
27
29
30double ConstBField::getBx() const { return 0.0; }
31
32double ConstBField::getBy() const { return 0.0; }
33
34double ConstBField::getBz() const { return 0.0; }
35
36void ConstBField::setBx(double /*B*/) {}
37
38void ConstBField::setBy(double /*B*/) {}
39
40void ConstBField::setBz(double /*B*/) {}
virtual void setBz(double)
Set component.
virtual void setBx(double)
Set component.
virtual double getBx() const
Get component.
virtual ~ConstBField()
virtual void setBy(double)
Set component.
virtual double getBy() const
Get component.
virtual double getBz() const
Get component.
ConstBField()
Default constructor.