simulations.objects
Class ElectromagneticPlaneWave

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

public class ElectromagneticPlaneWave
extends BaseObject


Field Summary
 double E0
          The amplitude of the electric field
 Vec3 k
          The propagation vector k
 double omega
          the angular frequence omega
 double phase
          The phase
 Vec3 Pol
          the polarization vector of the electric field
 double t
          The time.
 
Constructor Summary
ElectromagneticPlaneWave(Vec3 k, double omega, double E0, Vec3 Pol, double phase)
          Create an electromagnetic plane wave
 
Method Summary
 Vec3 Bfield(Vec3 x, Vec3 B)
          Compute the magnetic field at position x and time t
 Vec3 Efield(Vec3 x, Vec3 E)
          Compute the electric field at position x and time t
 double getT()
          Get the time.
 
Methods inherited from class simulations.objects.BaseObject
Bfield, Efield, Evolve, Pfield, Pfield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

phase

public double phase
The phase


E0

public double E0
The amplitude of the electric field


k

public Vec3 k
The propagation vector k


omega

public double omega
the angular frequence omega


Pol

public Vec3 Pol
the polarization vector of the electric field


t

public double t
The time.

Constructor Detail

ElectromagneticPlaneWave

public ElectromagneticPlaneWave(Vec3 k,
                                double omega,
                                double E0,
                                Vec3 Pol,
                                double phase)
Create an electromagnetic plane wave

Method Detail

getT

public double getT()
Get the time. This allows us the find the current time for this plane wave.


Efield

public Vec3 Efield(Vec3 x,
                   Vec3 E)
Compute the electric field at position x and time t

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

Bfield

public Vec3 Bfield(Vec3 x,
                   Vec3 B)
Compute the magnetic field at position x and time t

Specified by:
Bfield in class BaseObject
Parameters:
B - the magnetic field at the observer's position
Returns:
B the magnetic field at the observer's position