CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > ANSYS Meshing & Geometry

[GAMBIT] Exporting Mesh

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 2, 2013, 08:28
Default Exporting Mesh
  #1
Member
 
Join Date: Nov 2013
Posts: 43
Rep Power: 12
Persil is on a distinguished road
Hello everyone,

I generated 2 .dbs-files with 180.000 and 160.000 elements. I export them as .msh for later use with fluent. But first when importing both back into Gambit to rearange them a bit, they both increase in element numbers to 179.000 and 202.000

why does that happen? Is that just the difference between .dbs and .msh? My first guess was, that it should keep the number of elements it has as .dbs
Persil is offline   Reply With Quote

Old   December 3, 2013, 00:30
Default
  #2
Super Moderator
 
-mAx-'s Avatar
 
Maxime Perelli
Join Date: Mar 2009
Location: Switzerland
Posts: 3,297
Rep Power: 41
-mAx- will become famous soon enough
why don't you re-open the dbs file, and re-export another msh file.
I am also septic with msh import from Gambit
__________________
In memory of my friend Hervé: CFD engineer & freerider
-mAx- is offline   Reply With Quote

Old   December 3, 2013, 03:12
Default
  #3
Member
 
Join Date: Nov 2013
Posts: 43
Rep Power: 12
Persil is on a distinguished road
I don't see the difference between your mentioned re-opening and the things I did...

there are 2 dbs-files, I export a mesh each

then open a new file and import both meshes separetely, create groups, rearange them and then export 1 mesh-file... works fine, except the differences in the amount of elements, which I have no explanation for
Persil is offline   Reply With Quote

Old   December 3, 2013, 03:39
Default
  #4
Super Moderator
 
-mAx-'s Avatar
 
Maxime Perelli
Join Date: Mar 2009
Location: Switzerland
Posts: 3,297
Rep Power: 41
-mAx- will become famous soon enough
why are you using 2 dbs files?
At the end you get 2 msh files which won't be connected.
If you are working with sliding mesh, I can understand the use of both dbs file.
...
Are your both mesh files connected?
...
what kind of group operations are you using, and for what?
...
As I said mesh import in Gambit isn't comfortable, and I am not surprised of your issue. I had also some issues on surfaces which are merged, etc...
__________________
In memory of my friend Hervé: CFD engineer & freerider
-mAx- is offline   Reply With Quote

Old   December 3, 2013, 05:00
Default
  #5
Member
 
Join Date: Nov 2013
Posts: 43
Rep Power: 12
Persil is on a distinguished road
I use 2 dbs files because 1 is a blade and 1 a vane, which I will need later on... right now I want to combine them to 1 stage to get 1 mesh-file for the whole stage, do you see a better way to generate this mesh?

after importing the 2 mesh-files, each becomes a group and then I align them, via translating and rotating... no connected geometry enabled

later in fluent I will create mixing planes between the vane and blade...
Persil is offline   Reply With Quote

Old   December 3, 2013, 07:01
Default
  #6
Super Moderator
 
-mAx-'s Avatar
 
Maxime Perelli
Join Date: Mar 2009
Location: Switzerland
Posts: 3,297
Rep Power: 41
-mAx- will become famous soon enough
build all your geometry and mesh all within one dbs file
If you still have real geometries (no virtual entities), you may export the geometry with step file (the splits etc SHOULD remain).
Then you can use the .jou of the dbs to remesh the geometry (in the new dbs)
But if you have a nice hexa mesh with lots of splits, I am not sure you want to remesh all your stuff (if the journal file failed)

Else you can keep your method: just note the translations and rotations vector, then open one dbs and adjust the position of the mesh (with vectors you noticed). In that way you can import both mesh in fluent, and they shlould be aligned.
__________________
In memory of my friend Hervé: CFD engineer & freerider
-mAx- is offline   Reply With Quote

Old   December 3, 2013, 08:25
Default
  #7
Member
 
Join Date: Nov 2013
Posts: 43
Rep Power: 12
Persil is on a distinguished road
Using just 1 dbs-file does not seem possible for me in this case, because those 2 files are just the beginning... in the end it will be 10 dbs-files with a mesh each

I may try to align the meshes in fluent... although I don't know if I can apply the translation/rotation that easily, because in Gambit I did it from vertex to vertex

but back to my original question: is that increase in elements when importing mesh in gambit just an unexplainable error? or do you know what Gambit is doing at that point?
Persil is offline   Reply With Quote

Old   December 3, 2013, 08:38
Default
  #8
Super Moderator
 
-mAx-'s Avatar
 
Maxime Perelli
Join Date: Mar 2009
Location: Switzerland
Posts: 3,297
Rep Power: 41
-mAx- will become famous soon enough
Quote:
Originally Posted by Persil View Post
but back to my original question: is that increase in elements when importing mesh in gambit just an unexplainable error? or do you know what Gambit is doing at that point?
No I don't know what Gambit is doing really while importing mesh file.
Check if it doesn't create other kind of element (tetra-pyramid, etc...)
Check also number of surfaces
Don't you see any difference on your mesh?
Check also number of cells once imported in Fluent (check Mesh)
__________________
In memory of my friend Hervé: CFD engineer & freerider
-mAx- is offline   Reply With Quote

Old   December 3, 2013, 09:02
Default
  #9
Member
 
Join Date: Nov 2013
Posts: 43
Rep Power: 12
Persil is on a distinguished road
there are no changes concerning topology or even element type, all elements behave and stay hexahedral

the funny thing is, that even though when importing the mesh Gambit displays that there are 202.000 elements... but when checking the grid, the original element amount is shown (see attachment)... where do those non-existing 20.000 elements come from and are they even there?
Attached Images
File Type: jpg Elements_Count.JPG (94.9 KB, 6 views)
Persil is offline   Reply With Quote

Old   December 4, 2013, 00:49
Default
  #10
Super Moderator
 
-mAx-'s Avatar
 
Maxime Perelli
Join Date: Mar 2009
Location: Switzerland
Posts: 3,297
Rep Power: 41
-mAx- will become famous soon enough
Gambit reads 202.000 elements while importing, but it doesn't mean it writes those 202.000 elements. You can see also it creates some nodes, edges and faces, which mean it modifies the grid (the question is why)
Try to import this mesh in Fluent and run a check mesh (and compare the numbers you get)
__________________
In memory of my friend Hervé: CFD engineer & freerider
-mAx- is offline   Reply With Quote

Old   December 6, 2013, 03:51
Default
  #11
Senior Member
 
ghost82's Avatar
 
Rick
Join Date: Oct 2010
Posts: 1,016
Rep Power: 26
ghost82 will become famous soon enough
If you have 2 msh files you can use tgrid to open the first mesh and then add the second one, and finally export one total msh file.

Daniele
ghost82 is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[ICEM] Hexa mesh, curve mesh setup, bunching law Anorky ANSYS Meshing & Geometry 4 November 12, 2014 00:27
3D Hybrid Mesh Errors DarrenC ANSYS Meshing & Geometry 11 August 5, 2013 06:42
[ICEM] Generating Mesh for STL Car in Windtunnel Simulation tommymoose ANSYS Meshing & Geometry 48 April 15, 2013 04:24
[snappyHexMesh] external flow with snappyHexMesh chelvistero OpenFOAM Meshing & Mesh Conversion 11 January 15, 2010 19:43
Gambit error in exporting mesh in 3D modeling Mazyar FLUENT 5 March 31, 2004 10:50


All times are GMT -4. The time now is 13:03.