Class PbQuadrangleMesh2D

  • All Implemented Interfaces:
    java.lang.Cloneable

    public class PbQuadrangleMesh2D
    extends PbIndexedMesh2D
    implements java.lang.Cloneable
    Defines a surface mesh of quadrangles. Class to define an indexed 2D mesh made up of quadrangles cells. This mesh is defined by a list of quadrangles. Each quadrangles is defined by 4 indices of nodes.

    The nodes coordinates are defined by 2 (or 3) arrays x_nod, y_nod, (and z_nod) of num_nodes floats. The quadrangles are defined by the array quadrangle_index of num_quadrangles*4 integers. quadrangle_index[(n*4)+p] is the p-th node index of the n-th quadrangle of the mesh (0 <= p <= 4). Each quadrangle must be numbered by repecting the following rule : the edge linking the first and the second index must not be a diagonal of the quadrangle.

    Each edge of a quadrangle may have 2 references in the mesh, that is, one edge is common to 2 quadrangles. The edges which are referred to once in the mesh define the limits of the mesh.

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

    • Constructor Detail

      • PbQuadrangleMesh2D

        public PbQuadrangleMesh2D()
        Calls PbQuadrangleMesh2D(true).
      • PbQuadrangleMesh2D

        public PbQuadrangleMesh2D​(int num_nodes,
                                  float[] x_nod,
                                  float[] y_nod,
                                  int num_quadrangles,
                                  int[] quadrangle_index)
        Calls PbQuadrangleMesh2D(num_nodes, x_nod, y_nod, num_quadrangles, quadrangle_index, true).
      • PbQuadrangleMesh2D

        public PbQuadrangleMesh2D​(int num_nodes,
                                  float[] x_nod,
                                  float[] y_nod,
                                  float[] z_nod,
                                  int num_quadrangles,
                                  int[] quadrangle_index)
        Calls PbQuadrangleMesh2D(num_nodes, x_nod, y_nod, z_nod, num_quadrangles, quadrangle_index, true).
      • PbQuadrangleMesh2D

        public PbQuadrangleMesh2D​(int num_nodes,
                                  float[] x_nod,
                                  float[] y_nod,
                                  int num_quadrangles,
                                  int[] quadrangle_index,
                                  boolean isDataDuplicate)
        Constructor of a 2D surface mesh. See also PbMesh for more explanations about data duplication.
      • PbQuadrangleMesh2D

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

        public PbQuadrangleMesh2D​(PbQuadrangleMesh2D mesh)
        Copy constructor.
      • PbQuadrangleMesh2D

        public PbQuadrangleMesh2D​(int num_nodes,
                                  float[] x_nod,
                                  float[] y_nod,
                                  float[] z_nod,
                                  int num_quadrangles,
                                  int[] quadrangle_index,
                                  boolean isDataDuplicate)
        Constructor of a 3D surface mesh. See also PbMesh for more explanations about data duplication.
    • Method Detail

      • setGeometry

        public void setGeometry​(int num_nodes,
                                float[] x_nod,
                                float[] y_nod,
                                float[] z_nod,
                                int num_quadrangles,
                                int[] quadrangle_index)
        Sets a new 3D geometry.
      • setGeometry

        public void setGeometry​(int num_nodes,
                                float[] x_nod,
                                float[] y_nod,
                                int num_quadrangles,
                                int[] quadrangle_index)
        Sets a new 2D geometry.