Old postprocess mesh format |
The old postprocess mesh format is still compatible with this version of GiD. The files containing the postprocess mesh (in the old file format) can be separated into two categories:
Postprocessing data files are ASCII files and must be in a specific format, which is explained below. Each mesh information file can only handle one type of element.
![]() |
|
Old file format: ProjectName.flavia.msh |
Set 1: Header
This set contains six lines which are included so that information about the project can be included. They can be left blank, but it is suggested to use them for the project name and current version, as well as any extra comments, e.g. the type of project, the kinds of equations used, the conditions and materials involved, etc.
Note: As the seventh line of the file (i.e. Set 2) contains a series of numbers, it is advisable to use the sixth line to explain what these figures represent.
Set 2: General mesh data
The total number of lines in this set is 1, composed of 3 integers and an optional 4th integer:
n_3D_mesh_elements n_3D_mesh_points n_element_type [ last_node]
where:
The third parameter is used by the program to recognize what kind of finite element is being used. To do this GiD considers the following finite element types:
Set 3: Free line for any use
This is a free line, which can be used to write anything, though most modules inside GiD write the word 'Coordinates' here to indicate the meaning of the following lines.
Set 4: Coordinates
The total number of lines in this set is n_3D_mesh_points, one for each nodal point, composed of 1 integer plus 3 real numbers:
i x_coord[i] y_coord[i] z_coord[i]
where:
All the points of the meshes in the domain have to appear in this file.
Set 5: Free line for any use
This is a free line, which can be used to write anything, though most modules inside GiD write the word 'Connectives' here to indicate the meaning of the following lines.
Set 6: Connectivities
The total number of lines in this set is n_3D_mesh_elements, composed of 1 integer plus n_nodes/element integers and 1 further optional integer:
j node[j][1] node[j][2] ... node[j][n_nodes/element] mat[j]
where:
The nodal connections must follow some specifications, so, for each tetrahedral element with four nodes, the rule is that the first three nodes that form a triangular face must be sorted so as to to define a normal which points towards the semi space containing the fourth node.
The vector mat[j] holds the material index of the element number j.
Old file format: ProjectName.flavia.bon |
Set 1: Header
This set contains six lines which are included so that information about the project can be included. They can be left blank, but it is suggested to use them for the project name and current version, as well as any extra comments, e.g. the type of project, the kinds of equations used, the conditions and materials involved, etc.
Note: As the seventh line of the file (i.e. Set 2) contains a series of numbers, it is advisable to use the sixth line to explain what these figures represent.
Set 2: General boundary data
The total number of lines in this set is 1, composed of 3 integers and an optional 4th integer:
n_bound_elements n_bound_points n_element_type [ last_node]
where:
For the third parameter, GiD considers the following finite element types:
Set 3: Free line for any use
This is a free line, which can be used to write anything, though most modules inside GiD write the word 'Coordinates' here to indicate the meaning of the following lines.
Set 4: Coordinates
The total number of lines in this set is n_bound_points, one for each nodal point, composed of 1 integer plus 3 real numbers:
i x_coord[i] y_coord[i] z_coord[i]
where:
All the points of the domain have to appear in this file, which includes all the mesh points introduced in ProjectName.flavia.msh at the beginning. Once all the volumetric mesh has been entered, it is possible to add surfaces that belong to a boundary of the domain but which do not belong to a volumetric mesh and for this reason only appear in ProjectName.flavia.bon, and not in ProjectName.flavia.msh.
Set 5: Free line for any use
This is a free line, which can be used to write anything, though most modules inside GiD write the word 'Connectivities' here to indicate the meaning of the following lines.
Set 6: Connectivities
The total number of lines in this set is n_bound_elements, composed of 1 integer plus n_nodes/element integers and 2 optional integers more:
j node[j][1] node[j][2] ... node[j][n_nodes/element] set[j]
where:
The vector set[j] lets you distinguish between groups of elements in different sets. It applies, for instance, in the case of defining the different conditions that the element fulfills.
Old file format: ProjectName.flavia.dat |
Set 1: Header
This set contains six lines which are included so that information about the project can be included. They can be left blank, but it is suggested to use them for the project name and current version, as well as any extra comments, e.g. the type of project, the kinds of equations used, the conditions and materials involved, etc.
Note: As the seventh line of the file (i.e. Set 2) contains a series of numbers, it is advisable to use the sixth line to explain what these figures represent.
Set 2: General mesh data
The total number of lines in this set is 1, composed of 3 integers and an optional 4th integer:
n_2D_mesh_elements n_2D_mesh_points n_element_type [ last_node]
where:
The third parameter is used by the program to recognize what kind of finite element is being used. To do this GiD considers the number of nodes that the finite element type uses. So,
Set 3: Free line for any use
This is a free line, which can be used to write anything, though most modules inside GiD write the word 'Coordinates' here to indicate the meaning of the following lines.
Set 4: Coordinates
The total number of lines in this set is n_2D_mesh_points, one for each nodal point, composed of 1 integer plus 3 real numbers:
i x_coord[i] y_coord[i]
where:
Set 5: Free line for any use
This is a free line, which can be used to write anything, though most modules inside GiD write the word 'Connectivities' here to indicate the meaning of the following lines.
Set 6: Connectivities
The total number of lines in this set is n_2D_mesh_elements, composed of 1 integer plus n_nodes/element integers and a further 2 optional integers:
j node[j][1] node[j][2] ... node[j][n_nodes/element] set[j]
where:
The vector set[j] lets you distinguish between groups of elements in different sets. It applies, for instance, in the case of defining the different conditions that the element fulfills.
Note: The numeration of quadratic elements is linear and not hierarchical, i.e. nodes should be specified counterclockwise, without skipping internal nodes.