GiD - The personal pre and post processor

Formatted nodes and coordinates listing

As with the previous section, this block of code begins with a title for the subsection:

 
$ NODAL COORDINATES


followed by the header of the output list:

 
$ NODE COORD.-X COORD.-Y COORD.-Z


Now GiD will trace all the nodes of the model:

 
*loop nodes


For each node in the model, GiD will generate and output its number, using *NodesNum, and its coordinates, using *NodesCoord.


The command executed before the output *format will force the resulting output to follow the guidelines of the specified formatting.


In this example below, the *format command gets a string parameter with a set of codes: %6i specifies that the first word in the list is coded as an integer and is printed six points from the left; the other three codes, all %15.5f, order the printing of a real number, represented in a floating point format, with a distance of 15 spaces between columns (the number will be shifted to have the last digit in the 15th position of the column) and the fractional part of the number will be represented with five digits.


Note that this is a C language format command.

 
*format "%6i%15.5f%15.5f%15.5f"
*NodesNum *NodesCoord
*end nodes


At the end of the section the end marker is added, which in this solver example is as follows:

 
END_GEOMETRY


The full set of commands to make this part of the output is shown in the following lines.


GEOMETRY
$ ELEMENT CONNECTIVITIES
$ ELEM. MATER.    CONNECTIVITIES
*loop elems
  *elemsnum *elemsmat *elemsConec
*end elems
$ NODAL COORDINATES
$  NODE  COORD.-X   COORD.-Y   COORD.-Z
*loop nodes
*format "%6i%15.5f%15.5f%15.5f"
  *NodesNum *NodesCoord
*end
END_GEOMETRY


The result of the evaluation is output to a file (project_name.dat) to be processed by the solver program.


The first part of the section:

$-----------------------------------------------------
GEOMETRY
$ ELEMENT CONNECTIVITIES
$ ELEM. MATER.    CONNECTIVITIES
     1      1     73    89    83
     2      1     39    57    52
     3      1     17    27    26
     4      5      1     3     5
     5      5      3    10     8
     6      2     57    73    67
     .      .      .     .     .
     .      .      .     .     .
     .      .      .     .     .
   176      5     41    38    24



And the second part of the section:

$ NODAL COORDINATES
$  NODE  COORD.-X   COORD.-Y   COORD.-Z
       1         5.55102        5.51020
       2         5.55102        5.51020
       3         4.60204        5.82993
       4         4.60204        5.82993
       5         4.88435        4.73016
       6         4.88435        4.73016
       .         .              .
       .         .              .
       .         .              .
     116        -5.11565        3.79592
END_GEOMETRY


If the solver module you are using needs a list of the nodes that have been assigned a condition, for example, a neighborhood condition, you have to provide it as is explained in the next example.

COPYRIGHT © 2022 · GID · CIMNE