Class Mesh

java.lang.Object
  extended byMesh

class Mesh
extends java.lang.Object

Mesh - Discretization in one dimension TAG_Mesh_TAG


Field Summary
(package private)  double[] dx
          Interval sizes
(package private)  double[] x
          Coordinates
 
Constructor Summary
Mesh(int numberOfMeshPoints, double meshLeft, double meshLength)
          Constructor
 
Method Summary
 double interval(int i)
          Space to next grid point
 double[] intervals()
          Spacing between mesh points
 double[] limits()
          Coordinate boundaries
 double point(int i)
          Coordinate value
 double[] points()
          Coordinate values
 int size()
          Grid Size
 java.lang.String toString()
          For debugging
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

x

double[] x
Coordinates


dx

double[] dx
Interval sizes

Constructor Detail

Mesh

public Mesh(int numberOfMeshPoints,
            double meshLeft,
            double meshLength)
Constructor

Parameters:
numberOfMeshPoints - The number of mesh points
meshLeft - The left coordinate of the mesh
meshLength - The width of the mesh
Method Detail

size

public int size()
Grid Size

Returns:
Number of mesh points

points

public double[] points()
Coordinate values

Returns:
An Array with coordinates

point

public double point(int i)
Coordinate value

Parameters:
i - The index of a coordinate
Returns:
The value of a coordinate

intervals

public double[] intervals()
Spacing between mesh points

Returns:
An Array with the interval sizes

interval

public double interval(int i)
Space to next grid point

Parameters:
i - The index of a coordinate
Returns:
The interval size

limits

public double[] limits()
Coordinate boundaries

Returns:
{min(x), max(x)

toString

public java.lang.String toString()
For debugging