simulations.objects
Class ElectricAntenna

java.lang.Object
  extended bysimulations.objects.BaseObject
      extended bysimulations.objects.ElectricAntenna

public class ElectricAntenna
extends BaseObject

This BaseObject calculates the electric and magnetic fields of a linear antenna with the properties specified.

Version:
1.0
Author:
Norman Deby

Field Summary
 double ak
          The product of the length of the antenna and the wavenumber divided by 2.
 double k
          The wavenumber of the radiation produced.
 double ta
          The time.
 double w
          The angular frequency of the radiation produced.
 Vec3 x
          The position of the antenna.
 
Constructor Summary
ElectricAntenna(Vec3 x, double k, double ak, double w, double ta)
          constructor for the linear antenna
 
Method Summary
 Vec3 Bfield(Vec3 x, Vec3 B)
          The magnetic field of the linear antenna.
 Vec3 Efield(Vec3 x, Vec3 E)
          The electric field of the linear antenna.
 void Evolve(double dt)
          Evolves the object by the amount of time 'dt'.
 
Methods inherited from class simulations.objects.BaseObject
Bfield, Efield, Pfield, Pfield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

x

public Vec3 x
The position of the antenna.


k

public double k
The wavenumber of the radiation produced.


ak

public double ak
The product of the length of the antenna and the wavenumber divided by 2.


w

public double w
The angular frequency of the radiation produced.


ta

public double ta
The time.

Constructor Detail

ElectricAntenna

public ElectricAntenna(Vec3 x,
                       double k,
                       double ak,
                       double w,
                       double ta)
constructor for the linear antenna

Parameters:
x - The position of the antenna.
k - The wavenumber of the radiation.
ak - The product of the length of the antenna and the wavenumber divided by 2.
w - The angular frequency of the radiation.
ta - The time.
Method Detail

Evolve

public void Evolve(double dt)
Description copied from class: BaseObject
Evolves the object by the amount of time 'dt'.

Overrides:
Evolve in class BaseObject
Parameters:
dt - the time step

Efield

public Vec3 Efield(Vec3 x,
                   Vec3 E)
The electric field of the linear antenna.

Specified by:
Efield in class BaseObject
Parameters:
x - The position of the observer.
E - The electric field at the position of the observer.
Returns:
E The electric field at the position of the observer.

Bfield

public Vec3 Bfield(Vec3 x,
                   Vec3 B)
The magnetic field of the linear antenna.

Specified by:
Bfield in class BaseObject
Parameters:
x - The position of the observer.
B - The magnetic field at the position of the observer.
Returns:
B The magnetic field at the position of the observer.