### ElmerGrid conversion from Gmsh msh format version

Posted:

**01 Jul 2019, 11:13**Hello all,

Using ElmerGrid to convert the mesh created in Gmsh to Elmer doesn't work for me.

I first import the geometry, mesh it in Gmsh and save it with the first command line, then convert to ElmerGrid with the second one.
I get the following error:
I found two formats supported if it can help someone:

A previous format of Gmsh (2.2):
The .unv format:
Those 2 formats work perfectly and the mesh can be opened in Elmer correctly.

I am using Elmer 8.2 and Gmsh 4.3.

Does someone know why the new version of Gmsh isn't supported in ElmerGrid?

You will find attached:

-the geometry in .iges format

-the gmsh script in .geo format, that need to be in the same directory as the .iges format.

Using ElmerGrid to convert the mesh created in Gmsh to Elmer doesn't work for me.

I first import the geometry, mesh it in Gmsh and save it with the first command line, then convert to ElmerGrid with the second one.

Code: Select all

```
"<path_to_gmsh>\gmsh.exe" Mesh_script.geo -save -o for_elmer.msh
"<path_to_elmergrid>\ElmerGrid.exe" 14 2 for_elmer.msh -autoclean
```

Code: Select all

```
Untreated command: 165301 71025 145635 70749 2544 145633 145637 140593 2543
Untreated command: 165302 2542 61819 131962 70485 2543 140593 145637 145633
Untreated command: 165303 35151 71019 145638 70825 39442 145575 145639 141518
Untreated command: 165304 71019 12407 13939 145638 145575 61087 87320 145639
Untreated command: 165305 70825 145638 13939 12301 141518 145639 87320 61088
Untreated command: 165306 34595 61087 145575 39442 61088 87320 145639 141518
Untreated command: 165307 35151 70825 145638 71019 51336 141516 145640 145580
Untreated command: 165308 70825 12301 13939 145638 141516 12761 14941 145640
Untreated command: 165309 71019 145638 13939 12407 145580 145640 14941 13077
Untreated command: 165310 12170 12761 141516 51336 13077 14941 145640 145580
Untreated command: 165311 24278 26732 145641 70370 65505 98886 145643 129277
Untreated command: 165312 26732 25240 71026 145641 98886 54565 145642 145643
Untreated command: 165313 70370 145641 71026 7787 129277 145643 145642 9466
Untreated command: 165314 8065 54565 98886 65505 9466 145642 145643 129277
Untreated command: 165315 24278 70370 145641 26732 26731 133590 145645 30439
Untreated command: 165316 70370 7787 71026 145641 133590 70371 145644 145645
Untreated command: 165317 26732 145641 71026 25240 30439 145645 145644 26397
Untreated command: 165318 24695 70371 133590 26731 26397 145644 145645 30439
Untreated command: 165319 7995 9465 145646 71020 9467 10500 145647 145582
Untreated command: 165320 9465 7787 71026 145646 10500 9466 145642 145647
Untreated command: 165321 71020 145646 71026 25240 145582 145647 145642 54565
Untreated command: 165322 8065 9466 10500 9467 54565 145642 145647 145582
Untreated command: 165323 7995 71020 145646 9465 57127 145586 145648 129285
Untreated command: 165324 71020 25240 71026 145646 145586 26397 145644 145648
Untreated command: 165325 9465 145646 71026 7787 129285 145648 145644 70371
Untreated command: 165326 24695 26397 145586 57127 70371 145644 145648 129285
Allocating for 255 knots and 255 elements.
Version number is not compatible with the parser: 4
$Nodes section should end to string $EndNodes:
87
Gmsh element 23 does not have an Elmer counterpart!
Gmsh element 23 does not have an Elmer counterpart!
Gmsh element 30 does not have an Elmer counterpart!
Gmsh element 30 does not have an Elmer counterpart!
Gmsh element 31 does not have an Elmer counterpart!
Gmsh element 31 does not have an Elmer counterpart!
Gmsh element 32 does not have an Elmer counterpart!
Gmsh element 32 does not have an Elmer counterpart!
Gmsh element 33 does not have an Elmer counterpart!
Gmsh element 33 does not have an Elmer counterpart!
Gmsh element 34 does not have an Elmer counterpart!
Gmsh element 34 does not have an Elmer counterpart!
Gmsh element 35 does not have an Elmer counterpart!
Gmsh element 35 does not have an Elmer counterpart!
Gmsh element 36 does not have an Elmer counterpart!
Gmsh element 36 does not have an Elmer counterpart!
Gmsh element 37 does not have an Elmer counterpart!
Gmsh element 37 does not have an Elmer counterpart!
Gmsh element 38 does not have an Elmer counterpart!
Gmsh element 38 does not have an Elmer counterpart!
Gmsh element 39 does not have an Elmer counterpart!
Gmsh element 39 does not have an Elmer counterpart!
Gmsh element 40 does not have an Elmer counterpart!
Gmsh element 40 does not have an Elmer counterpart!
Gmsh element 41 does not have an Elmer counterpart!
Gmsh element 41 does not have an Elmer counterpart!
Gmsh element 42 does not have an Elmer counterpart!
Gmsh element 42 does not have an Elmer counterpart!
Gmsh element 43 does not have an Elmer counterpart!
Gmsh element 43 does not have an Elmer counterpart!
Gmsh element 44 does not have an Elmer counterpart!
Gmsh element 44 does not have an Elmer counterpart!
Gmsh element 45 does not have an Elmer counterpart!
Gmsh element 45 does not have an Elmer counterpart!
Gmsh element 46 does not have an Elmer counterpart!
Gmsh element 46 does not have an Elmer counterpart!
Gmsh element 47 does not have an Elmer counterpart!
Gmsh element 47 does not have an Elmer counterpart!
Gmsh element 48 does not have an Elmer counterpart!
Gmsh element 48 does not have an Elmer counterpart!
Gmsh element 49 does not have an Elmer counterpart!
Gmsh element 49 does not have an Elmer counterpart!
Gmsh element 50 does not have an Elmer counterpart!
Gmsh element 50 does not have an Elmer counterpart!
Gmsh element 51 does not have an Elmer counterpart!
Gmsh element 51 does not have an Elmer counterpart!
Gmsh element 52 does not have an Elmer counterpart!
Gmsh element 52 does not have an Elmer counterpart!
Gmsh element 53 does not have an Elmer counterpart!
Gmsh element 53 does not have an Elmer counterpart!
Gmsh element 54 does not have an Elmer counterpart!
Gmsh element 54 does not have an Elmer counterpart!
Gmsh element 55 does not have an Elmer counterpart!
Gmsh element 55 does not have an Elmer counterpart!
Gmsh element 56 does not have an Elmer counterpart!
Gmsh element 56 does not have an Elmer counterpart!
Gmsh element 57 does not have an Elmer counterpart!
Gmsh element 57 does not have an Elmer counterpart!
Gmsh element 58 does not have an Elmer counterpart!
Gmsh element 58 does not have an Elmer counterpart!
Gmsh element 59 does not have an Elmer counterpart!
Gmsh element 59 does not have an Elmer counterpart!
Gmsh element 60 does not have an Elmer counterpart!
Gmsh element 60 does not have an Elmer counterpart!
Gmsh element 61 does not have an Elmer counterpart!
Gmsh element 61 does not have an Elmer counterpart!
Gmsh element 62 does not have an Elmer counterpart!
Gmsh element 62 does not have an Elmer counterpart!
Gmsh element 63 does not have an Elmer counterpart!
Gmsh element 63 does not have an Elmer counterpart!
Gmsh element 64 does not have an Elmer counterpart!
Gmsh element 64 does not have an Elmer counterpart!
Gmsh element 65 does not have an Elmer counterpart!
Gmsh element 65 does not have an Elmer counterpart!
Gmsh element 66 does not have an Elmer counterpart!
Gmsh element 66 does not have an Elmer counterpart!
Gmsh element 67 does not have an Elmer counterpart!
Gmsh element 67 does not have an Elmer counterpart!
Gmsh element 68 does not have an Elmer counterpart!
Gmsh element 68 does not have an Elmer counterpart!
Gmsh element 69 does not have an Elmer counterpart!
Gmsh element 69 does not have an Elmer counterpart!
Gmsh element 70 does not have an Elmer counterpart!
Gmsh element 70 does not have an Elmer counterpart!
Gmsh element 71 does not have an Elmer counterpart!
Gmsh element 71 does not have an Elmer counterpart!
Gmsh element 72 does not have an Elmer counterpart!
Gmsh element 72 does not have an Elmer counterpart!
Gmsh element 73 does not have an Elmer counterpart!
Gmsh element 73 does not have an Elmer counterpart!
Gmsh element 74 does not have an Elmer counterpart!
Gmsh element 74 does not have an Elmer counterpart!
Gmsh element 75 does not have an Elmer counterpart!
Gmsh element 75 does not have an Elmer counterpart!
Gmsh element 76 does not have an Elmer counterpart!
Gmsh element 76 does not have an Elmer counterpart!
Gmsh element 77 does not have an Elmer counterpart!
Gmsh element 77 does not have an Elmer counterpart!
Gmsh element 78 does not have an Elmer counterpart!
Gmsh element 78 does not have an Elmer counterpart!
Gmsh element 79 does not have an Elmer counterpart!
Gmsh element 79 does not have an Elmer counterpart!
Gmsh element 80 does not have an Elmer counterpart!
Gmsh element 80 does not have an Elmer counterpart!
Gmsh element 81 does not have an Elmer counterpart!
Gmsh element 81 does not have an Elmer counterpart!
Gmsh element 82 does not have an Elmer counterpart!
Gmsh element 82 does not have an Elmer counterpart!
Gmsh element 83 does not have an Elmer counterpart!
Gmsh element 83 does not have an Elmer counterpart!
Gmsh element 84 does not have an Elmer counterpart!
Gmsh element 84 does not have an Elmer counterpart!
Gmsh element 85 does not have an Elmer counterpart!
Gmsh element 86 does not have an Elmer counterpart!
Gmsh element 87 does not have an Elmer counterpart!
Gmsh element 88 does not have an Elmer counterpart!
Gmsh element 89 does not have an Elmer counterpart!
Gmsh element 90 does not have an Elmer counterpart!
Gmsh element 91 does not have an Elmer counterpart!
Gmsh element 92 does not have an Elmer counterpart!
Gmsh element 93 does not have an Elmer counterpart!
Gmsh element 94 does not have an Elmer counterpart!
Gmsh element 95 does not have an Elmer counterpart!
Gmsh element 96 does not have an Elmer counterpart!
Gmsh element 97 does not have an Elmer counterpart!
Gmsh element 98 does not have an Elmer counterpart!
Gmsh element 99 does not have an Elmer counterpart!
Gmsh element 100 does not have an Elmer counterpart!
Gmsh element 101 does not have an Elmer counterpart!
Gmsh element 102 does not have an Elmer counterpart!
Gmsh element 103 does not have an Elmer counterpart!
Gmsh element 104 does not have an Elmer counterpart!
Gmsh element 105 does not have an Elmer counterpart!
Gmsh element 106 does not have an Elmer counterpart!
Gmsh element 107 does not have an Elmer counterpart!
Gmsh element 108 does not have an Elmer counterpart!
Gmsh element 109 does not have an Elmer counterpart!
Gmsh element 110 does not have an Elmer counterpart!
Gmsh element 111 does not have an Elmer counterpart!
Gmsh element 112 does not have an Elmer counterpart!
Gmsh element 113 does not have an Elmer counterpart!
Gmsh element 114 does not have an Elmer counterpart!
Gmsh element 115 does not have an Elmer counterpart!
Gmsh element 116 does not have an Elmer counterpart!
Gmsh element 117 does not have an Elmer counterpart!
Gmsh element 118 does not have an Elmer counterpart!
Gmsh element 119 does not have an Elmer counterpart!
Gmsh element 120 does not have an Elmer counterpart!
Gmsh element 121 does not have an Elmer counterpart!
Gmsh element 122 does not have an Elmer counterpart!
Gmsh element 123 does not have an Elmer counterpart!
Gmsh element 124 does not have an Elmer counterpart!
Gmsh element 125 does not have an Elmer counterpart!
Gmsh element 126 does not have an Elmer counterpart!
Gmsh element 127 does not have an Elmer counterpart!
Gmsh element 128 does not have an Elmer counterpart!
Gmsh element 129 does not have an Elmer counterpart!
Gmsh element 130 does not have an Elmer counterpart!
Gmsh element 131 does not have an Elmer counterpart!
Gmsh element 132 does not have an Elmer counterpart!
Gmsh element 133 does not have an Elmer counterpart!
Gmsh element 134 does not have an Elmer counterpart!
Gmsh element 135 does not have an Elmer counterpart!
Gmsh element 136 does not have an Elmer counterpart!
Gmsh element 137 does not have an Elmer counterpart!
Gmsh element 138 does not have an Elmer counterpart!
Gmsh element 139 does not have an Elmer counterpart!
Gmsh element 140 does not have an Elmer counterpart!
Gmsh element 141 does not have an Elmer counterpart!
Gmsh element 142 does not have an Elmer counterpart!
Gmsh element 143 does not have an Elmer counterpart!
Gmsh element 144 does not have an Elmer counterpart!
Gmsh element 145 does not have an Elmer counterpart!
Gmsh element 146 does not have an Elmer counterpart!
Gmsh element 147 does not have an Elmer counterpart!
Gmsh element 148 does not have an Elmer counterpart!
Gmsh element 149 does not have an Elmer counterpart!
Gmsh element 150 does not have an Elmer counterpart!
Gmsh element 151 does not have an Elmer counterpart!
Gmsh element 152 does not have an Elmer counterpart!
Gmsh element 153 does not have an Elmer counterpart!
Gmsh element 154 does not have an Elmer counterpart!
Gmsh element 155 does not have an Elmer counterpart!
Gmsh element 156 does not have an Elmer counterpart!
Gmsh element 157 does not have an Elmer counterpart!
Gmsh element 158 does not have an Elmer counterpart!
Gmsh element 159 does not have an Elmer counterpart!
Gmsh element 160 does not have an Elmer counterpart!
Gmsh element 161 does not have an Elmer counterpart!
Gmsh element 162 does not have an Elmer counterpart!
Gmsh element 163 does not have an Elmer counterpart!
Gmsh element 164 does not have an Elmer counterpart!
Gmsh element 165 does not have an Elmer counterpart!
Gmsh element 166 does not have an Elmer counterpart!
Gmsh element 167 does not have an Elmer counterpart!
Gmsh element 168 does not have an Elmer counterpart!
Gmsh element 169 does not have an Elmer counterpart!
$Elements section should end to string $EndElements:
171 170 171
Moving bulk elements to boundary elements
Leading bulk elementtype is 827
Trailing bulk elementtype is 0
GetElementDimension: unknown elementtype 0
There are 121 (out of 255) lower dimensional elements.
Node 1 belongs to maximum of 0 elements
Allocation impossible in dmatrix: 1 255 1 0
```

A previous format of Gmsh (2.2):

Code: Select all

```
"<path_to_gmsh>\gmsh.exe" Mesh_script.geo -save -o for_elmer_v2.msh -format msh22
"<path_to_elmergrid>\ElmerGrid.exe" 14 2 for_elmer_v2.msh -autoclean
```

Code: Select all

```
"<path_to_gmsh>\gmsh.exe" Mesh_script.geo -save -o for_elmer.unv -format unv
"<path_to_elmergrid>\ElmerGrid.exe" 8 2 for_elmer.unv -autoclean
```

I am using Elmer 8.2 and Gmsh 4.3.

Does someone know why the new version of Gmsh isn't supported in ElmerGrid?

You will find attached:

-the geometry in .iges format

-the gmsh script in .geo format, that need to be in the same directory as the .iges format.