simulations.experiments.fluidFlow
Class CirculatingFlowExperiment
java.lang.Object
simulations.experiments.BaseExperiment
simulations.experiments.fluidFlow.CirculatingFlowExperiment
- public class CirculatingFlowExperiment
- extends BaseExperiment
Constructor Summary |
CirculatingFlowExperiment(double x1,
double z1,
double i1,
double x2,
double z2,
double i2,
double x3,
double z3,
double i3,
double x4,
double z4,
double i4,
double xm,
double zm,
double lambda,
double Bx,
double Bz)
|
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: an EMSource that represents the current experimental state. |
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 |
z1
private double z1
x1
private double x1
vz1
private double vz1
vx1
private double vx1
z2
private double z2
x2
private double x2
vz2
private double vz2
vx2
private double vx2
z3
private double z3
x3
private double x3
vz3
private double vz3
vx3
private double vx3
z4
private double z4
x4
private double x4
vz4
private double vz4
vx4
private double vx4
i1
private double i1
i2
private double i2
i3
private double i3
i4
private double i4
Bx
private double Bx
Bz
private double Bz
xm
private double xm
zm
private double zm
lambda
private double lambda
t
public double t
line1
private LineCurrent line1
line2
private LineCurrent line2
line3
private LineCurrent line3
line4
private LineCurrent line4
BConst
private ConstantFields BConst
Bmonopole
private LineMagneticMonopoles Bmonopole
collection
public EMCollection collection
CirculatingFlowExperiment
public CirculatingFlowExperiment(double x1,
double z1,
double i1,
double x2,
double z2,
double i2,
double x3,
double z3,
double i3,
double x4,
double z4,
double i4,
double xm,
double zm,
double lambda,
double Bx,
double Bz)
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()
- Returns: an EMSource that represents the current experimental state.
- 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.