|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsimulations.experiments.BaseExperiment
simulations.experiments.radiation.ElectricAntennaExperiment
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 |
private double ak
private double k
private double w
public double t
private ElectricAntenna quarterWaveAntenna
Constructor Detail |
public ElectricAntennaExperiment(double k, double ak, double w)
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 |
public void ConstructEMSource()
BaseExperiment
ConstructEMSource
in class BaseExperiment
public BaseObject getEMSource()
BaseExperiment
getEMSource
in class BaseExperiment
public void Evolve(double dt)
BaseExperiment
Evolve
in class BaseExperiment
public double getHue(double TargetHue, Vec3 r, Vec RegionColor)
getHue
in class BaseExperiment
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.
public double getFlowSpeed(Vec3 r, Vec RegionFlow)
getFlowSpeed
in class BaseExperiment
r
- This is the vector postion of the point in the image.RegionFlow
- This is the flow speeds for the regions.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |