|
[Sponsors] |
[Gmsh] 3D Mesh conversion from gmsh-2.5.0 to OpenFOAM |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
January 26, 2012, 12:18 |
3D Mesh conversion from gmsh-2.5.0 to OpenFOAM
|
#1 |
New Member
Francesco Borgosano
Join Date: Dec 2011
Location: Heidelberg
Posts: 17
Rep Power: 15 |
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:
When I try to run "paraFoam" it crashes! Thanks in advance |
|
January 27, 2012, 02:53 |
aspect ratio
|
#2 |
New Member
Zoltan Hernadi
Join Date: Jul 2010
Posts: 12
Rep Power: 16 |
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 |
|
January 27, 2012, 06:07 |
Mesh visualization on ParaVieW
|
#3 |
New Member
Francesco Borgosano
Join Date: Dec 2011
Location: Heidelberg
Posts: 17
Rep Power: 15 |
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 |
|
January 29, 2012, 08:35 |
Mesh visualization on ParaVieW
|
#4 |
New Member
Francesco Borgosano
Join Date: Dec 2011
Location: Heidelberg
Posts: 17
Rep Power: 15 |
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 |
|
January 30, 2012, 06:17 |
memory
|
#5 |
New Member
Zoltan Hernadi
Join Date: Jul 2010
Posts: 12
Rep Power: 16 |
Dear Francesco,
Try a coarser mesh and check if you ran out of memory. Zoltan |
|
April 3, 2012, 05:58 |
|
#6 |
New Member
Join Date: Jan 2012
Posts: 23
Rep Power: 14 |
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 |
|
March 8, 2013, 19:39 |
|
#7 |
New Member
Join Date: Dec 2012
Posts: 19
Rep Power: 14 |
try with Coarser mesh, it happens to me sometimes.
|
|
May 25, 2013, 07:26 |
problem
|
#8 |
New Member
Goth ydamil
Join Date: Mar 2013
Posts: 13
Rep Power: 13 |
hello everybody
I have a problem in my program , I can't convert 3D GMSH to matlab thank you very much |
|
June 6, 2013, 18:09 |
gmsh problem
|
#9 |
Member
Dinesh Balaji
Join Date: Oct 2012
Posts: 43
Rep Power: 14 |
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>:perator[](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? |
|
July 12, 2013, 23:14 |
|
#10 |
New Member
Mohammad
Join Date: Jul 2013
Posts: 10
Rep Power: 13 |
Hi Dinesh Balaji!
I also have the same problem! Have you or anybody else solved it? Thanks. |
|
February 24, 2015, 10:10 |
|
#11 |
New Member
aditya
Join Date: Feb 2015
Posts: 2
Rep Power: 0 |
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 |
|
February 24, 2015, 10:18 |
|
#12 |
Senior Member
|
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? |
|
February 24, 2015, 13:40 |
|
#13 |
New Member
aditya
Join Date: Feb 2015
Posts: 2
Rep Power: 0 |
Yes.....at least it seems 3d in the gmesh
|
|
March 29, 2017, 10:53 |
unable to convert 3D mesh from gmsh to openfoam
|
#14 |
New Member
Bharadwaj Bhushan
Join Date: Mar 2017
Posts: 19
Rep Power: 9 |
hello guys,
I am not able to convert 3D mesh file from gmsh to openfoam. If I do that, it says may be your mesh has 3D elements and may be you have not exported the 3D elements. please I need help Cheers |
|
March 29, 2017, 11:51 |
|
#15 |
Senior Member
CFD
Join Date: Nov 2010
Location: United States
Posts: 243
Rep Power: 17 |
Can you put a picture on what are you trying to mesh in 3D gmsh?
Best, |
|
March 29, 2017, 12:02 |
|
#16 | |
New Member
Bharadwaj Bhushan
Join Date: Mar 2017
Posts: 19
Rep Power: 9 |
Quote:
its just a pipe flow simple one Point(1) = {0, 0, 0, 1.0}; //+ Point(2) = {0.1, 0, 0, 1.0}; //+ Point(3) = {-0.1, 0, 0, 1.0}; //+ Point(4) = {0, 0.1, 0, 1.0}; //+ Point(5) = {0, -0.1, 0, 1.0}; //+ Circle(1) = {3, 1, 5}; //+ Circle(2) = {5, 1, 2}; //+ Circle(3) = {2, 1, 4}; //+ Circle(4) = {4, 1, 3}; //+ Line Loop(5) = {4, 1, 2, 3}; //+ Plane Surface(6) = {5}; //+ Transfinite Line {4, 1, 2, 3} = 30 Using Progression 1; //+ Transfinite Surface {6}; //+ Recombine Surface {6}; //+ //+ Extrude {0, 0, 1} { Surface{6}; Layers{40}; Recombine; } //+ Physical Surface("inlet") = {28}; //+ Physical Surface("wall") = {27, 15, 19, 23}; //+ Physical Surface("outlet") = {28}; //+ Surface Loop(29) = {28, 15, 6, 19, 23, 27}; when I save it as save mesh in .msh file, later when I use gmshToFoam it says probably you haven't save 3D mesh |
||
March 29, 2017, 12:33 |
|
#17 |
Member
OpenFoam
Join Date: Jun 2016
Posts: 82
Rep Power: 10 |
Try this;
Code:
l = 6; r = 2; Point(1) = {0, 0, 0, 0.0}; Point(2) = {l, 0.0, 0, 0.0}; Point(3) = {0, r, 0, 0.0}; Point(4) = {l, r, 0, 0.0}; Line(1) = {3, 1}; Line(2) = {1, 2}; Line(3) = {2, 4}; Line(4) = {4, 3}; Line Loop(5) = {4, 1, 2, 3}; Plane Surface(6) = {5}; Extrude {{1, 0, 0}, {0, 0, 0}, Pi/2} { Surface{6}; } Extrude {{1, 0, 0}, {0, 0, 0}, Pi/2} { Surface{23}; } Extrude {{1, 0, 0}, {0, 0, 0}, Pi/2} { Surface{40}; } Extrude {{1, 0, 0}, {0, 0, 0}, Pi/2} { Surface{57}; } Surface Loop(74) = {6, 23, 15, 18, 22}; Volume(75) = {74}; Surface Loop(76) = {23, 40, 32, 35, 39}; Volume(77) = {76}; Surface Loop(78) = {6, 66, 69, 73, 57}; Volume(79) = {78}; Surface Loop(80) = {40, 57, 49, 52, 56}; Volume(81) = {80}; d1 = 1; d2 = 1; d3 = 1; N1 = 30; N2 = 30; N3 = 18; Transfinite Line {2, 4, 42, 25, 8} = N1 Using Progression d1; Transfinite Line {1, 43, 26, 9, 3, 45, 28, 11} = N2 Using Progression d2; Transfinite Line {65, 14, 31, 48, 13, 64, 47, 30} = N3 Using Progression d3; Transfinite Surface "*"; Transfinite Volume "*"; Recombine Surface "*"; |
|
January 9, 2019, 00:50 |
|
#18 |
New Member
|
i have same problem. my gmsh script.
//+ Point(1) = {-0, -0, 0, 1.0}; //+ Point(2) = {0.2, -0, 0, 1.0}; //+ Point(3) = {0.2, -0.4, 0, 1.0}; //+ Point(4) = {0, -0.4, 0, 1.0}; //+ //+ Line(1) = {1, 2}; //+ Line(2) = {2, 3}; //+ Line(3) = {3, 4}; //+ Line(4) = {4, 1}; //+ Line Loop(1) = {4, 1, 2, 3}; //+ //+ Plane Surface(1) = {1}; //+ Physical Line("inlet") = {1}; //+ Physical Line("outlet") = {3}; //+ Physical Line("chill boundary") = {2}; //+ Physical Line("symmetryPlane") = {4}; //+ Extrude {0, 0, -0.02} { Surface{1}; Layers{1}; Recombine; } //+ Transfinite Surface {1}; //+ Transfinite Surface {26}; //+ Transfinite Surface {21}; //+ Transfinite Surface {25}; //+ Transfinite Surface {13}; //+ Transfinite Surface {26}; //+ Transfinite Surface {17}; //+ Transfinite Line {4, 2, 6} = 136 Using Progression 1; //+ Transfinite Line {6, 8} = 136 Using Progression 1; //+ Transfinite Line {1, 3} = 252 Using Progression 1; //+ Transfinite Line {7, 9} = 252 Using Progression 1; //+ Recombine Surface {1, 13, 26, 17, 21, 25}; please anybody tell me..what we do for this |
|
Tags |
3d mesh, gmshtofoam, mesh conversion |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Gmsh] Converting gmsh to OpenFoam | Friendly | OpenFOAM Meshing & Mesh Conversion | 3 | June 26, 2018 06:46 |
OpenFOAM v3.0+ ?? | SBusch | OpenFOAM | 22 | December 26, 2016 15:24 |
[mesh manipulation] Importing Multiple Meshes | thomasnwalshiii | OpenFOAM Meshing & Mesh Conversion | 18 | December 19, 2015 19:57 |
[Other] Mesh Conversion: OpenFoam (polyMesh format) to Calculix | gillers18 | OpenFOAM Meshing & Mesh Conversion | 2 | April 24, 2015 04:37 |
fluent add additional zones for the mesh file | SSL | FLUENT | 2 | January 26, 2008 12:55 |