Class PbCartesianGrid2D

  • All Implemented Interfaces:
    java.lang.Cloneable
    Direct Known Subclasses:
    PbParalCartesianGrid2D

    public class PbCartesianGrid2D
    extends PbGrid2D
    implements java.lang.Cloneable
    Defines a cartesian grid surface mesh. Class to define a mesh represented by a grid with cartesian coordinates. This mesh is defined by a matrix num_x * num_y points forming (num_x - 1) * (num_y - 1) quadrangles. Each point with index (i, j) in the mesh (except for points along the mesh border) is connected to four points with indices (i+1,j), (i,j+1), (i-1,j), (i,j-1). x, y and z are array of num_x * num_y floats.

    The values on the mesh nodes are defined by the PbMesh.addValuesSet() method, where val argument is an array of num_x * num_y floats.

    • Constructor Detail

      • PbCartesianGrid2D

        public PbCartesianGrid2D()
        Calls PbCartesianGrid2D(true).
      • PbCartesianGrid2D

        public PbCartesianGrid2D​(int num_x,
                                 int num_y,
                                 float[] x,
                                 float[] y,
                                 float[] z)
        Calls PbCartesianGrid2D(num_x, num_y, x, y, z, true).
      • PbCartesianGrid2D

        public PbCartesianGrid2D​(int num_x,
                                 int num_y,
                                 float[] x,
                                 float[] y)
        Calls PbCartesianGrid2D(num_x, num_y, x, y, true).
      • PbCartesianGrid2D

        public PbCartesianGrid2D​(boolean is_data_duplicated)
        Constructor of a default simple mesh. See also PbMesh for more explanations about data duplication.
      • PbCartesianGrid2D

        public PbCartesianGrid2D​(int num_x,
                                 int num_y,
                                 float[] x,
                                 float[] y,
                                 float[] z,
                                 boolean is_data_duplicated)
        Constructor of a 3D surface mesh. See also PbMesh for more explanations about data duplication.
      • PbCartesianGrid2D

        public PbCartesianGrid2D​(PbCartesianGrid2D name_65)
        Copy constructor.
      • PbCartesianGrid2D

        public PbCartesianGrid2D​(int num_x,
                                 int num_y,
                                 float[] x,
                                 float[] y,
                                 boolean is_data_duplicated)
        Constructor of a 2D surface mesh. See also PbMesh for more explanations about data duplication.
    • Method Detail

      • clone

        public java.lang.Object clone()