CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   Open Source Meshers: Gmsh, Netgen, CGNS, ... (http://www.cfd-online.com/Forums/openfoam-meshing-open/)
-   -   3D Mesh conversion from gmsh-2.5.0 to OpenFOAM (http://www.cfd-online.com/Forums/openfoam-meshing-open/96593-3d-mesh-conversion-gmsh-2-5-0-openfoam.html)

Ancioi January 26, 2012 12:18

3D Mesh conversion from gmsh-2.5.0 to OpenFOAM
 
2 Attachment(s)
Dear all,

I'm trying to import on OpenFOAM a 3D Mesh I created using gmsh-2.5.0. I tried to figure out the right procedure reading several posts on this forum, and this is what I have done:

  1. Made *.geo file using gmsh.
  2. Define phyisical surfaces and volume.
  3. Made 3D mesh, obtaining *.msh file.
  4. Made new case folder in OpenFOAM copying an existing tutorials folder.
  5. Ran "gmshToFoam" command, obtaining in the folder constant/polyMesh the following files: sets (folder), boundary, cellZones, faces, faceZones, neighbour, owner, points, pointZones.
  6. Ran the "checkMesh" command, saving the result in a log file (I send you in attachment). I got the following error: "Failed 1 mesh checks", but reading the log file everything seems fine.
What could be the reason of the error?


When I try to run "paraFoam" it crashes!


Thanks in advance

zhernadi January 27, 2012 02:53

aspect ratio
 
Hello Francesco,

I think the problem comes from "Max aspect ratio: 3062.79", so in some regions the size of the cells is 3000 times bigger in one direction than in another. Try meshing a simpler geometry first and keep max. aspect ratio below 10-100.

Zoltan

Ancioi January 27, 2012 06:07

Mesh visualization on ParaVieW
 
Hi Zoltan,

thanks for your reply!

You were right.... I tried with a simpler geometry and it worked, I got checkMesh ok! But when I try to visualize the 3D mesh on paraView it still crashes.

I also tried increasing "cl" in my .geo file to have a small number of cells. I got a 3D mesh with only 48 cells, but parView it still unable to open it.

What could be the reason? Do you think could be related to my hardware? Maybe my pc has not enough memory for graphical applications...

Francesco

Ancioi January 29, 2012 08:35

Mesh visualization on ParaVieW
 
Hi Zoltan,

using the function "Optimize(3D Netgen)" in gmsh-2.5.0, I was able to get the mesh I wish avoiding "High ratio aspect" error in checkMesh.

But I'm not yet able to visualize it on paraView. When I ran paraView, on the left column where is "Mesh parts" I have the physical surfaces I defined in my mesh using gmsh, when I select them and click apply nothing happens...

Better, my screen become grey and my pc seems to work, but the 3D Mesh doesn't appear on the screen.

Someone experienced problem to visualize 3D mesh in paraView?
Do you think could be an hardware related problem?

Francesco

zhernadi January 30, 2012 06:17

memory
 
Dear Francesco,

Try a coarser mesh and check if you ran out of memory.

Zoltan

Abhinay Kulkarni April 3, 2012 04:58

Hi Francesco,

I know it is late and you may have already solved your problem. If you have not here could be the the solution

to view the mesh in paraview the patches which you selected in gmsh have to be defined first. You can still view the mesh by deselecting the volume fields in the properties pannel in paraview.

Hope this helps

Regards
Abhinay

smraniaki March 8, 2013 19:39

try with Coarser mesh, it happens to me sometimes.

djamel May 25, 2013 06:26

problem
 
hello everybody
I have a problem in my program , I can't convert 3D GMSH to matlab
thank you very much

DineshramBalaji June 6, 2013 17:09

gmsh problem
 
Hi everybody,

I am new to gmsh. When I tried to convert the mesh file to openfoam, am getting this error.


Skipping tag $ParametricNodes at line 93
Starting to read cells at line 835074
Cells to be read:793944



--> FOAM FATAL ERROR:
20 not found in table. Valid entries: 0()

From function HashTable<T, Key, Hash>::operator[](const Key&) const
in file /home/bluesim/OpenFOAM/OpenFOAM-1.6.x/src/OpenFOAM/lnInclude/HashTableI.H at line 128.

FOAM exiting



Can someone help on this?

mohammad81 July 12, 2013 22:14

Hi Dinesh Balaji!
I also have the same problem!
Have you or anybody else solved it?
Thanks.

Aditya2707 February 24, 2015 10:10

I have this same problem while converting a gmsh mesh file to foam
Unhandled element 1 at line 146876
Unhandled element 1 at line 146877
Unhandled element 1 at line 146878
Unhandled element 1 at line 146879
Unhandled element 1 at line 146880
Unhandled element 1 at line 146881
Unhandled element 1 at line 146882
Unhandled element 1 at line 146883
Unhandled element 1 at line 146884
Unhandled element 1 at line 146885
Unhandled element 1 at line 146886
Unhandled element 1 at line 146887
Unhandled element 1 at line 146888
Unhandled element 1 at line 146889
Unhandled element 1 at line 146890
Unhandled element 1 at line 146891
Unhandled element 1 at line 146892
Unhandled element 1 at line 146893
Unhandled element 1 at line 146894
Unhandled element 1 at line 146895
Unhandled element 1 at line 146896
Unhandled element 1 at line 146897
Unhandled element 1 at line 146898
Unhandled element 1 at line 146899
Unhandled element 1 at line 146900
Unhandled element 1 at line 146901
Unhandled element 1 at line 146902
Unhandled element 1 at line 146903
Unhandled element 1 at line 146904
Unhandled element 1 at line 146905
Unhandled element 1 at line 146906
Unhandled element 1 at line 146907
Unhandled element 1 at line 146908
Unhandled element 1 at line 146909
Unhandled element 1 at line 146910
Unhandled element 1 at line 146911
Unhandled element 1 at line 146912
Unhandled element 1 at line 146913
Unhandled element 1 at line 146914
Unhandled element 1 at line 146915
Unhandled element 1 at line 146916
Unhandled element 1 at line 146917
Unhandled element 1 at line 146918
Unhandled element 1 at line 146919
Unhandled element 1 at line 146920
Unhandled element 1 at line 146921
Unhandled element 1 at line 146922
Unhandled element 1 at line 146923
Unhandled element 1 at line 146924
Unhandled element 1 at line 146925
Unhandled element 1 at line 146926
Unhandled element 1 at line 146927
Unhandled element 1 at line 146928
Unhandled element 1 at line 146929
Unhandled element 1 at line 146930
Unhandled element 1 at line 146931
Unhandled element 1 at line 146932
Unhandled element 1 at line 146933
Unhandled element 1 at line 146934
Unhandled element 1 at line 146935
Unhandled element 1 at line 146936
Unhandled element 1 at line 146937
Unhandled element 1 at line 146938
Unhandled element 1 at line 146939
Unhandled element 1 at line 146940
Unhandled element 1 at line 146941
Unhandled element 1 at line 146942
Unhandled element 1 at line 146943
Unhandled element 1 at line 146944
Unhandled element 1 at line 146945
Unhandled element 1 at line 146946
Unhandled element 1 at line 146947
Unhandled element 1 at line 146948
Unhandled element 1 at line 146949
Unhandled element 1 at line 146950
Unhandled element 1 at line 146951
Unhandled element 1 at line 146952
Unhandled element 1 at line 146953
Unhandled element 1 at line 146954
Unhandled element 1 at line 146955
Unhandled element 1 at line 146956
Unhandled element 1 at line 146957
Unhandled element 1 at line 146958
Unhandled element 1 at line 146959
Unhandled element 1 at line 146960
Unhandled element 1 at line 146961
Unhandled element 1 at line 146962
Unhandled element 1 at line 146963
Unhandled element 1 at line 146964
Unhandled element 1 at line 146965
Unhandled element 1 at line 146966
Unhandled element 1 at line 146967
Unhandled element 1 at line 146968
Unhandled element 1 at line 146969
Unhandled element 1 at line 146970
Unhandled element 1 at line 146971
Unhandled element 1 at line 146972
Unhandled element 1 at line 146973
Unhandled element 1 at line 146974
Unhandled element 1 at line 146975
Unhandled element 1 at line 146976
Unhandled element 1 at line 146977
Unhandled element 1 at line 146978
Unhandled element 1 at line 146979
Unhandled element 1 at line 146980
Unhandled element 1 at line 146981
Unhandled element 1 at line 146982
Unhandled element 1 at line 146983
Unhandled element 1 at line 146984
Unhandled element 1 at line 146985
Unhandled element 1 at line 146986
Unhandled element 1 at line 146987
Unhandled element 1 at line 146988
Unhandled element 1 at line 146989
Unhandled element 1 at line 146990
Unhandled element 1 at line 146991
Unhandled element 1 at line 146992
Unhandled element 1 at line 146993
Unhandled element 1 at line 146994
Unhandled element 1 at line 146995
Unhandled element 1 at line 146996
Unhandled element 1 at line 146997
Unhandled element 1 at line 146998
Unhandled element 1 at line 146999
Unhandled element 1 at line 147000
Unhandled element 1 at line 147001
Unhandled element 1 at line 147002
Unhandled element 1 at line 147003
Unhandled element 1 at line 147004
Unhandled element 1 at line 147005
Unhandled element 1 at line 147006
Unhandled element 1 at line 147007
Unhandled element 1 at line 147008
Unhandled element 1 at line 147009
Unhandled element 1 at line 147010
Unhandled element 1 at line 147011
Unhandled element 1 at line 147012
Unhandled element 1 at line 147013
Unhandled element 1 at line 147014
Unhandled element 1 at line 147015
Unhandled element 1 at line 147016
Unhandled element 1 at line 147017
Unhandled element 1 at line 147018
Unhandled element 1 at line 147019
Unhandled element 1 at line 147020
Unhandled element 1 at line 147021
Unhandled element 1 at line 147022
Unhandled element 1 at line 147023
Unhandled element 1 at line 147024
Unhandled element 1 at line 147025
Unhandled element 1 at line 147026
Unhandled element 1 at line 147027
Unhandled element 1 at line 147028
Unhandled element 1 at line 147029
Unhandled element 1 at line 147030
Unhandled element 1 at line 147031
Unhandled element 1 at line 147032
Unhandled element 1 at line 147033
Unhandled element 1 at line 147034
Unhandled element 1 at line 147035
Unhandled element 1 at line 147036
Unhandled element 1 at line 147037
Unhandled element 1 at line 147038
Unhandled element 1 at line 147039
Unhandled element 1 at line 147040
Unhandled element 1 at line 147041
Unhandled element 1 at line 147042
Unhandled element 1 at line 147043
Unhandled element 1 at line 147044
Unhandled element 1 at line 147045
Unhandled element 1 at line 147046
Unhandled element 1 at line 147047
Unhandled element 1 at line 147048
Unhandled element 1 at line 147049
Unhandled element 1 at line 147050
Unhandled element 1 at line 147051
Unhandled element 1 at line 147052
Unhandled element 1 at line 147053
Unhandled element 1 at line 147054
Unhandled element 1 at line 147055
Unhandled element 1 at line 147056
Unhandled element 1 at line 147057
Unhandled element 1 at line 147058
Unhandled element 1 at line 147059
Unhandled element 1 at line 147060
Unhandled element 1 at line 147061
Unhandled element 1 at line 147062
Unhandled element 1 at line 147063
Unhandled element 1 at line 147064
Unhandled element 1 at line 147065
Unhandled element 1 at line 147066
Unhandled element 1 at line 147067
Unhandled element 1 at line 147068
Unhandled element 1 at line 147069
Unhandled element 1 at line 147070
Unhandled element 1 at line 147071
Unhandled element 1 at line 147072
Unhandled element 1 at line 147073
Unhandled element 1 at line 147074
Unhandled element 1 at line 147075
Unhandled element 1 at line 147076
Unhandled element 1 at line 147077
Unhandled element 1 at line 147078
Unhandled element 1 at line 147079
Unhandled element 1 at line 147080
Unhandled element 1 at line 147081
Unhandled element 1 at line 147082
Unhandled element 1 at line 147083
Unhandled element 1 at line 147084
Unhandled element 1 at line 147085
Unhandled element 1 at line 147086
Unhandled element 1 at line 147087
Unhandled element 1 at line 147088
Unhandled element 1 at line 147089
Unhandled element 1 at line 147090
Unhandled element 1 at line 147091
Unhandled element 1 at line 147092
Unhandled element 1 at line 147093
Unhandled element 1 at line 147094
Unhandled element 1 at line 147095
Unhandled element 1 at line 147096
Unhandled element 1 at line 147097
Unhandled element 1 at line 147098
Unhandled element 1 at line 147099
Unhandled element 1 at line 147100
Unhandled element 1 at line 147101
Unhandled element 1 at line 147102
Unhandled element 1 at line 147103
Unhandled element 1 at line 147104
Unhandled element 1 at line 147105
Unhandled element 1 at line 147106
Unhandled element 1 at line 147107
Unhandled element 1 at line 147108
Unhandled element 1 at line 147109
Unhandled element 1 at line 147110
Unhandled element 1 at line 147111
Unhandled element 1 at line 147112
Unhandled element 1 at line 147113
Unhandled element 1 at line 147114
Unhandled element 1 at line 147115
Unhandled element 1 at line 147116
Unhandled element 1 at line 147117
Unhandled element 1 at line 147118
Unhandled element 1 at line 147119
Unhandled element 1 at line 147120
Unhandled element 1 at line 147121
Unhandled element 1 at line 147122
Unhandled element 1 at line 147123
Unhandled element 1 at line 147124
Unhandled element 1 at line 147125
Unhandled element 1 at line 147126
Unhandled element 1 at line 147127
Unhandled element 1 at line 147128
Unhandled element 1 at line 147129
Unhandled element 1 at line 147130
Unhandled element 1 at line 147131
Unhandled element 1 at line 147132
Unhandled element 1 at line 147133
Unhandled element 1 at line 147134
Unhandled element 1 at line 147135
Unhandled element 1 at line 147136
Unhandled element 1 at line 147137
Unhandled element 1 at line 147138
Unhandled element 1 at line 147139
Unhandled element 1 at line 147140
Unhandled element 1 at line 147141
Unhandled element 1 at line 147142
Unhandled element 1 at line 147143
Unhandled element 1 at line 147144
Unhandled element 1 at line 147145
Unhandled element 1 at line 147146
Unhandled element 1 at line 147147
Unhandled element 1 at line 147148
Unhandled element 1 at line 147149
Unhandled element 1 at line 147150
Unhandled element 1 at line 147151
Unhandled element 1 at line 147152
Unhandled element 1 at line 147153
Unhandled element 1 at line 147154
Unhandled element 1 at line 147155
Unhandled element 1 at line 147156
Unhandled element 1 at line 147157
Unhandled element 1 at line 147158
Unhandled element 1 at line 147159
Unhandled element 1 at line 147160
Unhandled element 1 at line 147161
Unhandled element 1 at line 147162
Unhandled element 1 at line 147163
Unhandled element 1 at line 147164
Unhandled element 1 at line 147165
Unhandled element 1 at line 147166
Unhandled element 1 at line 147167
Unhandled element 1 at line 147168
Unhandled element 1 at line 147169
Unhandled element 1 at line 147170
Unhandled element 1 at line 147171
Unhandled element 1 at line 147172
Unhandled element 1 at line 147173
Unhandled element 1 at line 147174
Unhandled element 1 at line 147175
Unhandled element 1 at line 147176
Unhandled element 1 at line 147177
Unhandled element 1 at line 147178
Unhandled element 1 at line 147179
Unhandled element 1 at line 147180
Unhandled element 1 at line 147181
Unhandled element 1 at line 147182
Unhandled element 1 at line 147183
Unhandled element 1 at line 147184
Unhandled element 1 at line 147185
Unhandled element 1 at line 147186
Unhandled element 1 at line 147187
Unhandled element 1 at line 147188
Unhandled element 1 at line 147189
Unhandled element 1 at line 147190
Unhandled element 1 at line 147191
Unhandled element 1 at line 147192
Unhandled element 1 at line 147193
Unhandled element 1 at line 147194
Unhandled element 1 at line 147195
Unhandled element 1 at line 147196
Unhandled element 1 at line 147197
Unhandled element 1 at line 147198
Unhandled element 1 at line 147199
Unhandled element 1 at line 147200
Unhandled element 1 at line 147201
Unhandled element 1 at line 147202
Unhandled element 1 at line 147203
Unhandled element 1 at line 147204
Unhandled element 1 at line 147205
Unhandled element 1 at line 147206
Unhandled element 1 at line 147207
Unhandled element 1 at line 147208
Unhandled element 1 at line 147209
Unhandled element 1 at line 147210
Unhandled element 1 at line 147211
Unhandled element 1 at line 147212
Unhandled element 1 at line 147213
Unhandled element 1 at line 147214
Unhandled element 1 at line 147215
Unhandled element 1 at line 147216
Unhandled element 1 at line 147217
Unhandled element 1 at line 147218
Unhandled element 1 at line 147219
Unhandled element 1 at line 147220
Unhandled element 1 at line 147221
Unhandled element 1 at line 147222
Unhandled element 1 at line 147223
Unhandled element 1 at line 147224
Unhandled element 1 at line 147225
Unhandled element 1 at line 147226
Unhandled element 1 at line 147227
Unhandled element 1 at line 147228
Unhandled element 1 at line 147229
Unhandled element 1 at line 147230
Unhandled element 1 at line 147231
Unhandled element 1 at line 147232
Unhandled element 1 at line 147233
Unhandled element 1 at line 147234
Unhandled element 1 at line 147235
Unhandled element 1 at line 147236
Unhandled element 1 at line 147237
Unhandled element 1 at line 147238
Unhandled element 1 at line 147239
Unhandled element 1 at line 147240
Unhandled element 1 at line 147241
Unhandled element 1 at line 147242
Unhandled element 1 at line 147243
Unhandled element 1 at line 147244
Unhandled element 1 at line 147245
Unhandled element 1 at line 147246
Unhandled element 1 at line 147247
Unhandled element 1 at line 147248
Unhandled element 1 at line 147249
Unhandled element 1 at line 147250
Unhandled element 1 at line 147251
Unhandled element 1 at line 147252
Unhandled element 1 at line 147253
Unhandled element 1 at line 147254
Unhandled element 1 at line 147255
Unhandled element 1 at line 147256
Unhandled element 1 at line 147257
Unhandled element 1 at line 147258
Unhandled element 1 at line 147259
Unhandled element 1 at line 147260
Unhandled element 1 at line 147261
Unhandled element 1 at line 147262
Unhandled element 1 at line 147263
Unhandled element 1 at line 147264
Unhandled element 1 at line 147265
Unhandled element 1 at line 147266
Unhandled element 1 at line 147267
Unhandled element 1 at line 147268
Unhandled element 1 at line 147269
Unhandled element 1 at line 147270
Unhandled element 1 at line 147271
Unhandled element 1 at line 147272
Unhandled element 1 at line 147273
Unhandled element 1 at line 147274
Unhandled element 1 at line 147275
Unhandled element 1 at line 147276
Unhandled element 1 at line 147277
Unhandled element 1 at line 147278
Unhandled element 1 at line 147279
Unhandled element 1 at line 147280
Unhandled element 1 at line 147281
Unhandled element 1 at line 147282
Unhandled element 1 at line 147283
Unhandled element 1 at line 147284
Unhandled element 1 at line 147285
Unhandled element 1 at line 147286
Unhandled element 1 at line 147287
Unhandled element 1 at line 147288
Unhandled element 1 at line 147289
Unhandled element 1 at line 147290
Unhandled element 1 at line 147291
Unhandled element 1 at line 147292
Unhandled element 1 at line 147293
Unhandled element 1 at line 147294
Unhandled element 1 at line 147295
Unhandled element 1 at line 147296
Unhandled element 1 at line 147297
Unhandled element 1 at line 147298
Unhandled element 1 at line 147299
Unhandled element 1 at line 147300
Unhandled element 1 at line 147301
Unhandled element 1 at line 147302
Unhandled element 1 at line 147303
Unhandled element 1 at line 147304
Unhandled element 1 at line 147305
Unhandled element 1 at line 147306
Unhandled element 1 at line 147307
Unhandled element 1 at line 147308
Unhandled element 1 at line 147309
Unhandled element 1 at line 147310
Unhandled element 1 at line 147311
Unhandled element 1 at line 147312
Unhandled element 1 at line 147313
Unhandled element 1 at line 147314
Unhandled element 1 at line 147315
Unhandled element 1 at line 147316
Unhandled element 1 at line 147317
Unhandled element 1 at line 147318
Unhandled element 1 at line 147319
Unhandled element 1 at line 147320
Unhandled element 1 at line 147321
Unhandled element 1 at line 147322
Unhandled element 1 at line 147323
Unhandled element 1 at line 147324
Unhandled element 1 at line 147325
Unhandled element 1 at line 147326
Unhandled element 1 at line 147327
Unhandled element 1 at line 147328
Unhandled element 1 at line 147329
Unhandled element 1 at line 147330
Unhandled element 1 at line 147331
Unhandled element 1 at line 147332
Unhandled element 1 at line 147333
Unhandled element 1 at line 147334
Unhandled element 1 at line 147335
Unhandled element 1 at line 147336
Unhandled element 1 at line 147337
Unhandled element 1 at line 147338
Unhandled element 1 at line 147339
Unhandled element 1 at line 147340
Unhandled element 1 at line 147341
Unhandled element 1 at line 147342
Unhandled element 1 at line 147343
Unhandled element 1 at line 147344
Unhandled element 1 at line 147345
Unhandled element 1 at line 147346
Unhandled element 1 at line 147347
Unhandled element 1 at line 147348
Unhandled element 1 at line 147349
Unhandled element 1 at line 147350
Unhandled element 1 at line 147351
Unhandled element 1 at line 147352
Unhandled element 1 at line 147353
Unhandled element 1 at line 147354
Unhandled element 1 at line 147355
Unhandled element 1 at line 147356
Unhandled element 1 at line 147357
Unhandled element 1 at line 147358
Unhandled element 1 at line 147359
Unhandled element 1 at line 147360
Unhandled element 1 at line 147361
Unhandled element 1 at line 147362
Unhandled element 1 at line 147363
Unhandled element 1 at line 147364
Mapping region 0 to Foam patch 0
Cells:
total:0
hex :0
prism:0
pyr :0
tet :0



--> FOAM FATAL IO ERROR:
No cells read from file "cylinderc.msh"
Does your file specify any 3D elements (hex=5, prism=6, pyramid=7, tet=4)?
Perhaps you have not exported the 3D elements?

file: cylinderc.msh at line 151770.

From function readCells(..)
in file gmshToFoam.C at line 726.

FOAM exiting
Can someone please help me out

alexeym February 24, 2015 10:18

Hi,

According to Gmsh documentation, element ID 1 has 2-node line elements (http://www.geuz.org/gmsh/doc/texinfo...II-file-format). Are you sure your mesh is 3D?

Aditya2707 February 24, 2015 13:40

Yes.....at least it seems 3d in the gmesh


All times are GMT -4. The time now is 00:01.