Mesh Export File Format

Mesh export file consists of the following parts:

Header Line

    2976    6394      -1       5    1840       2      -1      -1           1.0

Node List

             0             0
           -10             0
            10             0
   4.0192e-007            15
  -4.0192e-007           -15
       -3.5355        7.0711
       -7.0711        3.5355
        3.5355       -7.0711
        7.0711       -3.5355
       .       .        .

Element List

    1295    1298    1296       2
    1296    1298      16       2
    1297    1298    1295       2
       0    1298    1297       2
       0    1299    1298       2
    1299      15    1298       2
       0    1300       8       1
     282    1303       0       1
     283    1307     282       1
     284    1302     283       1
       0    1175     284       1
    1176    1302    1175       1
       0    1301    1176       1
       .       .        .

Label List

Outer
Bar
Air
LeftTop
RigthBottom

List of Boundary Edges

       7       8       0       2      -1
       8       9       0       2      -1
       4       5       0       2      -1
       5       6       0       2      -1
       6       7       0       2      -1
       7       8       0       2      -1
       5       6      -1       1       2
       6       7      -1       1       2
       7       8      -1       1       2
       6       7      -1       1       2
       7       8      -1       1       2
       .       .        .

List of Labelled Vertices

       6       3
       8       4
       .       .

The file consists of a series of text lines readable by human eye. Each line contains several numerical fields of fixed length. Integer data fields are 8 characters long. Floating-point data fields are 14 characters long. Text fields containing the names of the labels are 16 characters long.

The Header Line

The first line of the file contains 8 integers and one floating-point value:

  1. nNodes – the count of finite element mesh nodes;

  2. nElements – the count of finite elements (triangles);

  3. nValues – equals to -1 (integer);

  4. nLabels – the count of labels in the whole model;

  5. nEdges – the count of external and internal boundary edges of the triangles.

  6. nLabelledVertices - the count of labelled vertices in the whole model;

  7. analysis – equals to -1 (integer);

  8. plane – equals to -1 (integer);

  9. scale – the length scale factor (double) equal to the number of meters in 1 currently selected length unit.

The Node List

The node list consists of nNodes (see The Header Line above) lines. Each line corresponds to the particular node of the finite element mesh and contains the following two fields:

  1. Floating-point value – node abscissa (X-coordinate in a plane-parallel or Z-coordinate in an axisymmetric problem).

  2. Floating-point value – node ordinate (Y-coordinate in a plane-parallel or R-coordinate in an axisymmetric problem).

The Element List

The element list consists of nElements (see The Header Line above) lines. Each line defines one triangular finite element and contains the following fields:

  1. Three integer values, defining the Node List (see above) indexes of the triangle nodes in CCLW order.

  2. The integer defining the Label List (see below) index of the label defining media properties of this triangle. This value equals to -1 for unlabelled elements.

All indexes are 0-based.

The Label List

The label list consists of nLabels (see The Header Line above) lines, one line per label. Each line contains the name of the label as 16-character text string.

Each label can be associated with blocks, edges, and vertices at the same time.

The List of Boundary Edges

Boundary edges are the edges of triangular finite elements separating regions with different media properties. Such edges always run along the original model edges (i.e. edges of unmeshed model). For example, the list contains all external edges, since they separate regions with defined media properties from the external region.

The list of boundary edges consists of nEdges (see The Header Line above) lines, one line per each boundary edge. The order of the edges is not specified.

Each line contains the following fields:

  1. The integer defining the Node List (see above) index of the starting node

  2. The integer defining the Node List index of the ending node

  3. The integer defining the Label List (see above) index of the edge label. Equals to -1 for nonlabelled edges.

  4. The integer defining the Label List index of the left block (as seen in the direction of the edge). The edge is supposed to go from the starting node to the ending node. Equals to -1 when there is no mesh in the left block or the left block is unlabelled.

  5. Similarly defined value related to the right block.

All indexes are 0-based.

The List of Labelled Vertices

The list of labelled vertices consists of nLabelledVertices (see The Header Line above) lines, one line per each labelled vertex.

Each line contains the following fields:

  1. The integer defining the Node List (see above) index of vertex;

  2. The integer defining the Label List (see above) index of the vertex label.

All indexes are 0-based.

Related Topics
Field Solution Export