OPAL (Object Oriented Parallel Accelerator Library)  2.2.0
OPAL
Public Member Functions | Private Attributes | List of all members
ConstEzField Class Reference

A homogeneous electrostatic field in z-direction. More...

#include <ConstEzField.h>

Inheritance diagram for ConstEzField:
Inheritance graph
[legend]
Collaboration diagram for ConstEzField:
Collaboration graph
[legend]

Public Member Functions

 ConstEzField ()
 Default constructor. More...
 
virtual ~ConstEzField ()
 
virtual EVector Efield (const Point3D &P) const
 Get field. More...
 
virtual EVector Efield (const Point3D &P, double t) const
 Get field. More...
 
virtual double getEz () const
 Get component. More...
 
virtual void setEz (double)
 Set component. More...
 
virtual void scale (double scalar)
 Scale the field. More...
 
- Public Member Functions inherited from StaticElectricField
 StaticElectricField ()
 
virtual ~StaticElectricField ()
 
- Public Member Functions inherited from EMField
 EMField ()
 Default constructor. More...
 
 EMField (const EMField &right)
 
virtual ~EMField ()
 
const EMFieldoperator= (const EMField &right)
 
virtual BVector Bfield (const Point3D &P) const
 Get field. More...
 
virtual BVector Bfield (const Point3D &P, double t) const
 Get field. More...
 
virtual EBVectors EBfield (const Point3D &P) const
 Get field. More...
 
virtual EBVectors EBfield (const Point3D &P, double t) const
 Get field. More...
 

Private Attributes

double Ez
 

Additional Inherited Members

- Static Public Attributes inherited from EMField
static const EVector ZeroEfield
 The constant representing a zero electric field. More...
 
static const BVector ZeroBfield
 The constant representing a zero magnetic field. More...
 
static const EBVectors ZeroEBfield
 The constant representing a zero electromagnetic field. More...
 

Detailed Description

A homogeneous electrostatic field in z-direction.

Definition at line 30 of file ConstEzField.h.

Constructor & Destructor Documentation

ConstEzField::ConstEzField ( )

Default constructor.

Definition at line 27 of file ConstEzField.cpp.

ConstEzField::~ConstEzField ( )
virtual

Definition at line 31 of file ConstEzField.cpp.

Member Function Documentation

EVector ConstEzField::Efield ( const Point3D P) const
virtual

Get field.

Reimplemented from EMField.

Reimplemented in OscillatingField< ConstEzField >.

Definition at line 35 of file ConstEzField.cpp.

References Ez.

EVector ConstEzField::Efield ( const Point3D P,
double  t 
) const
virtual

Get field.

Reimplemented from EMField.

Reimplemented in OscillatingField< ConstEzField >.

Definition at line 40 of file ConstEzField.cpp.

References Ez.

double ConstEzField::getEz ( ) const
virtual

Get component.

Definition at line 45 of file ConstEzField.cpp.

References Ez.

Referenced by RFCavityRep::getAmplitude(), and TravelingWaveRep::getAmplitude().

void ConstEzField::scale ( double  scalar)
virtual

Scale the field.

Implements EMField.

Definition at line 55 of file ConstEzField.cpp.

References Ez.

void ConstEzField::setEz ( double  value)
virtual

Set component.

Definition at line 50 of file ConstEzField.cpp.

References Ez.

Referenced by RFCavityRep::setAmplitude(), and TravelingWaveRep::setAmplitude().

Member Data Documentation

double ConstEzField::Ez
private

Definition at line 63 of file ConstEzField.h.

Referenced by Efield(), getEz(), scale(), and setEz().


The documentation for this class was generated from the following files: