|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcore.dflic.Streamline
Computes sample points along streamlines. This class is used by FLIC in order to trace streamlines and compute equispaced sample points along them. Though it is publicly declared, it probably isn't very useful for anything else.
Field Summary | |
private Vec2 |
A
|
private Vec2 |
B
|
private Vec2 |
C
|
private Vec2 |
cdx
|
private Vec2 |
cx
|
private Vec2 |
cx2
|
private Vec2 |
cx3
|
private Vec2 |
D
|
private double |
ds
|
private Vec2 |
dx
|
private Vec2Field |
field
|
private double |
l
|
private double |
l1
|
private double |
l2
|
private double |
length
|
private double |
lengthstep
|
private double |
maxstep
|
private double |
minstep
|
private int |
num
|
private Vec2 |
nx
|
private Vec2 |
odx
|
private boolean |
reverse
|
private double |
safety
|
private java.util.Vector |
singularities
|
private double |
singularitylimit
|
private double |
step
|
private double |
stepsize
|
private double |
tolerance
|
private Vec2 |
tx
|
private Vec2 |
v
|
private Vec2 |
x
|
Constructor Summary | |
Streamline(Vec2Field field)
Constructs a new Streamline object that stores the parameters for successive streamline computations. |
|
Streamline(Vec2Field field,
double stepsize)
Constructs a new Streamline object that stores the parameters for successive streamline computations. |
|
Streamline(Vec2Field field,
double stepsize,
double minstep,
double maxstep,
double tolerance)
Constructs a new Streamline object that stores the parameters for successive streamline computations. |
Method Summary | |
private double |
abs(double x)
|
void |
AddSingularity(Vec2 v)
Adds a singularity where streamlines are terminated when they come within the singularity limit. |
private boolean |
ComputeNext()
|
private void |
ComputeStart(Vec2 x0)
|
Vec2 |
Next()
Returns the next point along the streamline. |
void |
SetDefaultMaxStep()
Sets the default maximum RK4 step size, which is 10 |
void |
SetDefaultMinStep()
Sets the default minimum RK4 step size, which is 10^-1 |
void |
SetDefaultSingularityLimit()
Sets the default singularity limit to the step size. |
void |
SetDefaultStepSize()
Sets the default sample spacing, which is 0.5 |
void |
SetDefaultTolerance()
Sets the default error tolerance, which is 5*10^-2 |
void |
SetField(Vec2Field field)
Sets the vector field that is traced to "field" |
void |
SetLength(double length)
Sets the distance that the streamline traced to "length". |
void |
SetMaxStep(double maxstep)
Sets the maximum RK4 step size to "maxstep" |
void |
SetMinStep(double minstep)
Sets the minimum RK4 step size before terminating to "minstep" |
void |
SetSingularityLimit(double limit)
Sets the radius around a singularity at which a streamline will be terminated to "limit". |
void |
SetStepSize(double stepsize)
Sets the spacing between sample points on the streamline to "stepsize" |
void |
SetTolerance(double tolerance)
Sets the RK4 integrator error tolerance to "tolerance". |
void |
Start(Vec2 p)
Begins the streamline computation at point "p" with the default length. |
void |
Start(Vec2 p,
double length)
Begins the streamline computation at point "p" with a length "length". |
void |
Stop()
Terminates the streamline immediately. |
boolean |
stopped()
Returns whether or not the streamline has reached its end. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private Vec2Field field
private double length
private double stepsize
private boolean reverse
private double minstep
private double maxstep
private double tolerance
private double lengthstep
private double safety
private java.util.Vector singularities
private double singularitylimit
private Vec2 x
private Vec2 v
private Vec2 dx
private Vec2 odx
private Vec2 nx
private Vec2 tx
private Vec2 A
private Vec2 B
private Vec2 C
private Vec2 D
private Vec2 cx
private Vec2 cx2
private Vec2 cx3
private Vec2 cdx
private double ds
private double step
private double l
private double l1
private double l2
private int num
Constructor Detail |
public Streamline(Vec2Field field)
public Streamline(Vec2Field field, double stepsize)
public Streamline(Vec2Field field, double stepsize, double minstep, double maxstep, double tolerance)
Method Detail |
public void SetField(Vec2Field field)
public void SetLength(double length)
public void SetStepSize(double stepsize)
public void SetDefaultStepSize()
public void SetMinStep(double minstep)
public void SetDefaultMinStep()
public void SetMaxStep(double maxstep)
public void SetDefaultMaxStep()
public void SetTolerance(double tolerance)
public void SetDefaultTolerance()
public void SetSingularityLimit(double limit)
public void SetDefaultSingularityLimit()
public void AddSingularity(Vec2 v)
private double abs(double x)
public void Start(Vec2 p)
public void Start(Vec2 p, double length)
public Vec2 Next()
public void Stop()
public boolean stopped()
private void ComputeStart(Vec2 x0)
private boolean ComputeNext()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |