simulations.experiments.radiation
Class ElectricAntennaExperiment

java.lang.Object
  extended bysimulations.experiments.BaseExperiment
      extended bysimulations.experiments.radiation.ElectricAntennaExperiment

public class ElectricAntennaExperiment
extends BaseExperiment


Field Summary
private  double ak
          The product of the length of the antenna and the wavenumber divided by 2.
private  double k
          The wavenumber of the radiation (the wavelength is 2 pi/k).
private  ElectricAntenna quarterWaveAntenna
           
 double t
          The time.
private  double w
          The angular frequency of the radiation (the period is 2 pi/w).
 
Fields inherited from class simulations.experiments.BaseExperiment
eps, FieldMotionType, FieldType, FluidFlowSpeed, Fnorm, Fpower, numberSmallSteps
 
Constructor Summary
ElectricAntennaExperiment(double k, double ak, double w)
          constructor for linear antenna experiment
 
Method Summary
 void ConstructEMSource()
          constructs the EM source consisting of a number of BaseObjects and adds them to the EMCollection for this experiment
 void Evolve(double dt)
          Evolves the properties of the collection of BaseObjects in the experiment with time
 BaseObject getEMSource()
          returns the collecton of BaseObjects constructed in ConstructEMSource()
 double getFlowSpeed(Vec3 r, Vec RegionFlow)
          Method to find the flow speed in a given region when we are determining that speed according to region.
 double getHue(double TargetHue, Vec3 r, Vec RegionColor)
          Method to find the hue in a given region when we are coloring according to region (Color Mode 4).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ak

private double ak
The product of the length of the antenna and the wavenumber divided by 2. This is also the product of pi times the length of the antenna divided by the wavelength. For a "resonant antenna" the wavelength is twice the length of the antenna and ak is pi/2.


k

private double k
The wavenumber of the radiation (the wavelength is 2 pi/k).


w

private double w
The angular frequency of the radiation (the period is 2 pi/w).


t

public double t
The time.


quarterWaveAntenna

private ElectricAntenna quarterWaveAntenna
Constructor Detail

ElectricAntennaExperiment

public ElectricAntennaExperiment(double k,
                                 double ak,
                                 double w)
constructor for linear antenna experiment

Parameters:
k - The wavenumber of the radiation, that is, 2 pi / wavelength.
ak - The product of pi times the length of the antenna divided by the wavelength of the readiation.
w - The angular frequencey of the radiation.
Method Detail

ConstructEMSource

public void ConstructEMSource()
Description copied from class: BaseExperiment
constructs the EM source consisting of a number of BaseObjects and adds them to the EMCollection for this experiment

Specified by:
ConstructEMSource in class BaseExperiment

getEMSource

public BaseObject getEMSource()
Description copied from class: BaseExperiment
returns the collecton of BaseObjects constructed in ConstructEMSource()

Specified by:
getEMSource in class BaseExperiment

Evolve

public void Evolve(double dt)
Description copied from class: BaseExperiment
Evolves the properties of the collection of BaseObjects in the experiment with time

Specified by:
Evolve in class BaseExperiment

getHue

public double getHue(double TargetHue,
                     Vec3 r,
                     Vec RegionColor)
Method to find the hue in a given region when we are coloring according to region (Color Mode 4).

Specified by:
getHue in class BaseExperiment
Parameters:
TargetHue - This is the target hue from the renderer.
r - This is the vector postion of the point in the image.
RegionColor - This is the varous hues for the regions.
Returns:
The hue for the part of the image map at r.

getFlowSpeed

public double getFlowSpeed(Vec3 r,
                           Vec RegionFlow)
Method to find the flow speed in a given region when we are determining that speed according to region. This method is used when we have set experiment.FieldMotionType to one of either Constants.FIELD_MOTION_VREFIELD or Constants.FIELD_MOTION_VRBFIELD.

Specified by:
getFlowSpeed in class BaseExperiment
Parameters:
r - This is the vector postion of the point in the image.
RegionFlow - This is the flow speeds for the regions.
Returns:
The flow speed for the part of the image map at r.