Class JxnUVGrid


  • public class JxnUVGrid
    extends Object
    Defines methods to visualize functions x(u,v) and y(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
     
    • Field Summary

      Fields 
      Modifier and Type Field Description
      double[] uValue
      Internal storage.
      double[] vValue
      Internal storage.
    • 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)
      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)
    • Field Detail

      • uValue

        public double[] uValue
        Internal storage.
      • vValue

        public double[] vValue
        Internal storage.
    • 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)
        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)
        Parameters:
        ni - number of data points per mesh