|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsimulations.experiments.BaseExperiment
simulations.experiments.fluidFlow.FlowTestExperiment
Flow Test exeriment with a simple field
Nested Class Summary | |
private class |
FlowTestExperiment.Motion
The equation of motion governing the evolution of the system |
Field Summary | |
private EMCollection |
collection
|
private FlowTestExperiment.Motion |
equations
The equation of motion for the system (just Coulomb repulsion) |
private FlowTestField |
ftf
The first charge, which moves |
private RungeKuttaIntegration |
integrator
The integrator used to evolve the system |
private double |
t
The time t |
Fields inherited from class simulations.experiments.BaseExperiment |
eps, FieldMotionType, FieldType, FluidFlowSpeed, Fnorm, Fpower, numberSmallSteps |
Constructor Summary | |
FlowTestExperiment()
Constructs the color test field |
Method Summary | |
void |
ConstructEMSource()
Construct the EMColletion object |
void |
Evolve(double dt)
Evolves the experiment by a time step "dt" using an RK4 integrator by taking numberSmallSteps between t and t + dt, for accuracy. |
void |
Evolve(double dt,
double maxStep)
Evolves the experiment a time step dt |
BaseObject |
getEMSource()
Returns the BaseObject that is colortest field alone |
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 |
getFlowSpeed(Vec3 r,
Vec RegionFlow,
Vec RegionParameter)
|
double |
getHue(double TargetHue,
Vec2 xpos,
Vec RegionColor,
Vec RegionParameter)
|
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 t
private FlowTestField ftf
private EMCollection collection
private FlowTestExperiment.Motion equations
private RungeKuttaIntegration integrator
Constructor Detail |
public FlowTestExperiment()
Method Detail |
public void ConstructEMSource()
ConstructEMSource
in class BaseExperiment
public BaseObject getEMSource()
getEMSource
in class BaseExperiment
public void Evolve(double dt, double maxStep)
public double getFlowSpeed(Vec3 r, Vec RegionFlow, Vec RegionParameter)
public double getHue(double TargetHue, Vec2 xpos, Vec RegionColor, Vec RegionParameter)
public void Evolve(double dt)
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 |