Class JxnUVGrid
- java.lang.Object
-
- JxnUVGrid
-
public class JxnUVGrid extends Object
Defines methods to visualize functionsx(u,v)
andy(u,v)
by mapping a grid in the u/v-plain into the x/y-plain.Usage:
uv = @JxnUVGrid( uStart, uStep, nuStep, vStart, vStep, nvStep, ni ) u = uv.u() v = uv.v() x = fx( u, v ) ! replace this line with expression calculating x from u and v y = fy( u, v ) ! replace this line with expression calculating y from u and v plot( x, y )
with
-uStep
: mesh width in u-direction,nuSteps
: number of meshes
-vStep
: mesh width in v-direction,nvSteps
: number of meshes
-ni
: number of data points per mesh:
ni=1 data point only in the mesh nodes
for ni < 0 the starting point (uStart, vStart) and the u-direction is marked by additional lines
Example:nuSteps = 3, nvSteps = 2, ni = -2
( + : data point )+---+---+---+---+---+---+ | | | | + + + + | | | | vStart+vStep -> +---+---+---+---+---+---+ | > | | | + > + + + | > | | | vStart +---+---+---+---+---+---+ uStart | u -> uStart+uStep
-
-
Constructor Summary
Constructors Constructor Description JxnUVGrid(double uStart, double uEnd, double uStep, double vStart, double vEnd, double vStep)
Creates a grid defined by starting point, end point and mesh width.JxnUVGrid(double uStart, double uEnd, double uStep, double vStart, double vEnd, double vStep, int ni)
SeeJxnUVGrid
.JxnUVGrid(double uStart, double uStep, int nuStep, double vStart, double vStep, int nvStep)
Creates a grid defined by starting point, mesh width and number of meshes.JxnUVGrid(double uStart, double uStep, int nuStep, double vStart, double vStep, int nvStep, int ni)
SeeJxnUVGrid
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JxnRealArrayAlgebra
u()
Returns the u-values of the grid.JxnRealArrayAlgebra
v()
Returns the v-values of the grid.
-
-
-
Constructor Detail
-
JxnUVGrid
public JxnUVGrid(double uStart, double uStep, int nuStep, double vStart, double vStep, int nvStep)
Creates a grid defined by starting point, mesh width and number of meshes.
-
JxnUVGrid
public JxnUVGrid(double uStart, double uStep, int nuStep, double vStart, double vStep, int nvStep, int ni)
SeeJxnUVGrid
.- Parameters:
ni
- number of data points per mesh
-
JxnUVGrid
public JxnUVGrid(double uStart, double uEnd, double uStep, double vStart, double vEnd, double vStep)
Creates a grid defined by starting point, end point and mesh width.
-
JxnUVGrid
public JxnUVGrid(double uStart, double uEnd, double uStep, double vStart, double vEnd, double vStep, int ni)
SeeJxnUVGrid
.- Parameters:
ni
- number of data points per mesh
-
-
Method Detail
-
u
public JxnRealArrayAlgebra u()
Returns the u-values of the grid.
-
v
public JxnRealArrayAlgebra v()
Returns the v-values of the grid.
-
-