Postprocess mesh format: ProjectName.post.msh

Note: This postprocess mesh format requires GiD version 6.0 or higher.

Comments are allowed and should begin with a '#'. Blank lines are also allowed.

To enter the mesh names and result names in another encoding, just write # encoding your_encoding

for example:

# encoding utf-8

Inside this file one or more MESHes can be defined, each of them should:

MESH "mesh_name" dimension my_dimension Elemtype my_type Nnode my_number

where

  • Point: 1 node,

Point connectivity:

  • Linear: 2 or 3 nodes,

Line connectivities:

  • Triangle: 3 or 6 nodes,

Triangle connectivities:

  • Quadrilateral: 4, 8 or 9 nodes,

Quadrilateral connectivities:

  • Tetrahedra, 4 or 10 nodes,

Tetrahedra, connectivities:

  • Hexahedra, 8, 20 or 27 nodes.

Hexahedra, connectivities:

  • Prism: 6 or 15 nodes,

Prism connectivities:

  • Pyramid: 5 or 13 nodes,

Pyramid connectivities:

  • Sphere: 1 node and a radius
  • Circle: 1 node, a radius and a normal (x, y, z)

Note: For elements of order greater than linear, the connectivities must written in hierarchical order, i.e. the vertex nodes first, then the middle ones.

# color 127 127 0

In this way different colours can be specified for several meshes, taking into account that the # color line must be between the MESH line and the Coordinates line.

coordinates

1 0.0 1.0

3.0 . . .1000

-2.5 9.3 21.8

end coordinates

where

Note: If each MESH specifies its own coordinates, the node number should be unique, for instance, if MESH "mesh one" uses nodes 1..100, and MESH "other mesh" uses 50 nodes, they should be numbered from 101 up.

elements

#el_num node_1 node_2 node_3 optional_material_number

1 1 2 3 215

. . .

1000 32 48 23 215

end elements

where

Note: On elements of order greater than linear, the connectivities must written in hierarchical order, i.e. the vertex nodes first, then the middle ones;

If the normal is not written for circles, normal ( 0.0, 0.0, 1.0) will be used.

Mesh example

This example clarifies the description:

#mesh of a table

MESH "board" dimension 3 ElemType Triangle Nnode 3

# color 127 127 0

Coordinates

# node number coordinate_x coordinate_y coordinate_z

1 -5 3 -3

2 -5 3 0

3 -5 0 0

4 -2 2 0

5 -1.66667 3 0

6 -5 -3 -3

7 -2 -2 0

8 0 0 0

9 -5 -3 0

10 1.66667 3 0

11 -1.66667 -3 0

12 2 2 0

13 2 -2 0

14 1.66667 -3 0

15 5 3 -3

16 5 3 0

17 5 0 0

18 5 -3 -3

19 5 -3 0

end coordinates

#we put both material in the same MESH,

#but they could be separated into two MESH

Elements

# element node_1 node_2 node_3 material_number

5 19 17 13 3

6 3 9 7 3

7 2 3 4 3

8 17 16 12 3

9 12 16 10 3

10 12 10 4 3

11 7 9 11 3

12 7 11 13 3

13 2 4 5 3

14 5 4 10 3

15 19 13 14 3

16 14 13 11 3

17 3 7 4 3

18 17 12 13 3

19 13 12 8 4

20 13 8 7 4

21 7 8 4 4

22 4 8 12 4

end elements

MESH dimension 3 ElemType Linear Nnode 2

Coordinates

#no coordinates then they are already in the first MESH

end coordinates

Elements

# element node_1 node_2 material_number

1 9 6 5

2 19 18 5

3 16 15 5

4 2 1 5

end elements

Group of meshes

If the same meshes are used for all the analyses, the following section can be skipped.

A new concept has been introduced in Postprocess: Group, which allows the postprocessing of problems which require re-meshing or adaptive meshes, where the mesh change depending on the time step.

Normal operations, such as animation, displaying results and cuts, can be done over these meshes, and they will be actualized when the selected analysis/step is changed, for example by means of View results -> Default analysis/step

There are two ways to enter in GiD the diferent meshes defined por diferent steps or analysis:

1. define separate files for each mesh, for instance:

- binary format: mesh+result_1.post.bin, mesh+result_2.post.bin, mesh+result_3.post.bin, ...

- ascii format: mesh_1.post.msh + mesh_1.post.res, mesh_2.post.msh + mesh_2.post.res, ...

Note: the steps values ( or analysis) should be diferent for each pair mesh+result.

To read them you can use File-->Open Multiple (see POSTPROCESS > Files menu from Reference Manual)

2. define on binary file or two ascii files (msh+res):

Meshes that belong to a group should be defined between the following highlighted commands

Group "group name"

MESH "mesh_name" dimension ...

...

end elements

MESH "another_mesh" ...

...

end elements

end group

Results which refer to one of the groups should be written between these highlighted commands

OnGroup "group name"

Result "result name"

...

end values

...

end ongroup

Note: GiD versions 7.7.3b and later only allow one group at a time, i.e. only one group can be defined across several steps of the analysis. Care should be taken so that groups do not overlap inside the same step/analysis.

For instance, an analysis which is 10 steps long:

  • For steps 1, 2, 3 and 4: an 'environment' mesh of 10000 elements and a 'body' mesh of 10000 elements are used

MESH "environment"

... Coordinates

...

10000 ...

end elements

MESH "body" ...

...

20000 ...

end elements

and its results

GiD Post Results File 1.0

...

Results "result 1" "time" 1.0 ...

...

Results "result 1" "time" 2.0 ...

...

Results "result 1" "time" 3.0 ...

...

Results "result 1" "time" 4.0 ...

...

end values

  • For steps 5, 6, 7 and 8: with some refinement, the 'environment' mesh now being used has 15000 elements and the 'body' mesh needs 20000 elements

MESH "environment"

...

Coordinates

...

15000 ...

end elements

MESH "body" ...

...

35000 ...

end elements

and its results are

GiD Post Results File 1.0

...

Results "result 1" "time" 5.0 ...

...

Results "result 1" "time" 6.0 ...

...

Results "result 1" "time" 7.0 ...

...

Results "result 1" "time" 8.0 ...

...

end values

  • For steps 9 and 10: the last meshes to be used are of 20000 and 40000 elements, respectively

MESH "environment" ...

Coordinates

...

20000 ...

end elements

MESH "body" ...

...

60000 ...

end elements

and its results are

GiD Post Results File 1.0

...

Results "result 1" "time" 9.0 ...

...

Results "result 1" "time" 10.0 ...

...

end values

There are two ways to postprocess this:

  • store the information in three pairs (or three binary files), thus:
  • steps_1_2_3_4.post.msh and steps_1_2_3_4.post.msh (or steps_1_2_3_4.post.bin)
  • steps_5_6_7_8.post.msh and steps_5_6_7_8.post.msh (or steps_5_6_7_8.post.bin)
  • steps_9_10.post.msh and steps_9_10.post.msh (or steps_9_10.post.bin)

and use the 'Open multiple' option (see POSTPROCESS > Files menu from Reference Manual) to selected the six (or three) files; or

  • write them in only two files (one in binary) by using the Group concept:
  • all_analysis.post.msh (note the group - end group pairs)

Group "steps 1, 2, 3 and 4"

MESH "environment" ...

...

MESH "body" ...

...

end group

Group "steps 5, 6, 7 and 8"

MESH "environment" ...

...

MESH "body" ...

...

end group

Group "steps 9 and 10"

MESH "environment" ...

...

MESH "body" ...

...

end group

and

  • all_analysis.post.res (note the ongroup - end ongroup pairs)

GiD Post Results File 1.0

OnGroup "steps 1, 2, 3 and 4"

...

Results "result 1" "time" 1.0 ...

...

Results "result 1" "time" 2.0 ...

...

Results "result 1" "time" 3.0 ...

...

Results "result 1" "time" 4.0 ...

...

end ongroup

OnGroup "steps 5, 6, 7 and 8"

...

Results "result 1" "time" 5.0 ...

...

Results "result 1" "time" 6.0 ...

...

Results "result 1" "time" 7.0 ...

...

Results "result 1" "time" 8.0 ...

...

end ongroup

OnGroup "steps 9 and 10"

...

Results "result 1" "time" 9.0 ...

...

Results "result 1" "time" 10.0 ...

...

end ongroup

and use the normal Open option.