simulations.experiments.fluidFlow
Class DataInputExperiment
java.lang.Object
simulations.experiments.BaseExperiment
simulations.experiments.fluidFlow.DataInputExperiment
- public class DataInputExperiment
- extends BaseExperiment
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 |
t
public double t
width
public int width
height
public int height
dataInput
private DataInputObject dataInput
collection
public EMCollection collection
DataInputExperiment
public DataInputExperiment(int width,
int height)
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.