|
[Sponsors] |
Exporting mesh for an OpenFOAM chtMultiRegion case |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
January 25, 2014, 16:46 |
Exporting mesh for an OpenFOAM chtMultiRegion case
|
#1 |
New Member
akrasemann
Join Date: Dec 2013
Posts: 17
Rep Power: 13 |
Hi,
I'm in the process of setting up a simple -but working- case for the OpenFoam chtMultiRegionFoam solver. The basic scenario I'm modelling is a solid that separates two fluid regions in motion, i.e. a simple version of a heat exchanger. As the geometry I want to assess in the end is a rather complex one, I started of using enGrid for mesh generation, due to the very useful boundary layer creation utility. The 'Simple heat exchanger' tutorial provided at https://github.com/enGits/engrid/wik...heat-exchanger was very useful to get to know the process of mesh creation as well as exporting mesh data to OpenFOAM. So I ended up with a tetrahedral and prismatic mesh in enGrid, which is depicted in the attachments. In the tutorial it is mentioned, that the enGrid export function OpenFOAM (polyhedral) should be used. This works fine and setting up the case in OpenFOAM is straightforward afterwards. The issue I'm facing is that due to the OpenFOAM (polyhedral) export function the grid is obviously converted to a prismatic and polyhedral grid, which doesn't look that good (see attachment). My question to the community is: How do you handle the process of mesh generation for multi region cases? Any way to get the region information processed with the OpenFOAM (grid only) export function, as this function does keep the original grid? I would appreciate all your comments on that topic. Andreas |
|
January 26, 2014, 10:26 |
|
#2 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Greetings Andreas and welcome to the forum!
What you're seeing is the decomposed mesh. Use the "polyhedron" option in the reader for ".OpenFOAM" file extension... it's the check box "Use VTKPolyhedron". Then use filter the "Extract cells by region", in order to get an accurate display of the mesh. In addition, which exact enGrid version are you using and which installation steps did you follow? Best regards, Bruno
__________________
|
|
January 26, 2014, 12:41 |
|
#3 |
New Member
akrasemann
Join Date: Dec 2013
Posts: 17
Rep Power: 13 |
Hi Bruno,
thank you very much for the quick and helpful answer. In the attachment one can see the mesh how it looks in paraview 3.12.0, if I tick the "Use VTKPolyhedron" option. The "Extract cells by region" I couldn't find, but the "Include Zones" option doesn't change the output. I use the enGrid 1.4.0 version on an ubuntu 13.10 system. The installation procedure I followed was the one recommended for ubuntu on https://github.com/enGits/engrid/wik...D-Installation The reason I had a closer look at the mesh was that I obtain a divergent solution in the temperature field. Seeing the mesh without the "Use VTKPolyhedron" option, I thought the mesh might be the reason. But obviously the grid is not that bad, although it is no longer based on tetrahedra. The basic shape of a single cell shouldn't affect the solver that way. Greetings and thanks again, Andreas |
|
January 27, 2014, 04:34 |
|
#5 |
New Member
akrasemann
Join Date: Dec 2013
Posts: 17
Rep Power: 13 |
Thanks again. Everything is fine!
So I need to re-access my set up in order to see where the trouble comes from. But this is then an OpenFOAM issue rather then an enGrid one. |
|
December 3, 2014, 05:56 |
|
#6 | |
Senior Member
Dongyue Li
Join Date: Jun 2012
Location: Beijing, China
Posts: 849
Rep Power: 18 |
Quote:
Long time no see, how r u. Now Im using this polyDualMesh to convert my tet mesh. Im using OpenFOAM 2.3.x. tet mesh generated by ICEM. there are also some extra lines on it. see the pictures: the reason why im sure this is not induced by paraview is that I compare the cells on this two: in tet there is about 5000 cells. in the poly mesh, there are about 20000 cells. Do u know what should I do? Update: I ask my friend to use gmsh to generate a tet mesh, it works perfect. But why it does not work on ICEM? Last edited by sharonyue; December 3, 2014 at 07:15. |
||
December 8, 2014, 14:36 |
|
#7 | ||
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Hi sharonyue,
Currently still trying to discover how to distort space and time, in order to be able to answer everyone on the forum, as well as do my own work. The answers I found so far all indicate it's not possible, at least not in this universe alone . Other than that... I'm fine, or at least I think so I hope you are also as well. Quote:
Quote:
In addition, can you provide these test cases, so that I or anyone else can look at this with more detail? Because ICEM is very expensive Best regards, Bruno
__________________
|
|||
December 8, 2014, 15:58 |
|
#8 | |
Senior Member
Dongyue Li
Join Date: Jun 2012
Location: Beijing, China
Posts: 849
Rep Power: 18 |
Quote:
Kool, busy is good thing! wish there r more ppl like u who is like to help the others on CFD field. lol unlucky, I just deleted the mesh(tet from gmsh) file made by my friend. But I can upload my own case, this case's mesh is generated by ICEM. u can see how it works wrong. after running polyDualMesh, cell numbers is 4 times bigger. So I think it does not do anything but cut the cells...at least on this ICEM tet mesh. Actually I have no idea about the polyDualMesh, I just found this mesh is cheap compared with tet mesh. u can see this thread: http://www.symscape.com/polyhedral-t...esh-comparison It arouses my interest, so I just play around with this utility, lol. Anyway, if you have interest into my case, download this one. I will upload the other case(made by gmsh) tmr. https://www.dropbox.com/s/cp7z9ue6tw...ly.tar.gz?dl=0 u can check it out by the cell numbers, and the internal cells. I upload a pic of internal cells. Thank u bro, btw, I just have this only one pic. I sent this pic to my friend to tell him that his mesh is compatible with polyDualMesh perfectly. |
||
December 9, 2014, 12:38 |
|
#9 |
Senior Member
Dongyue Li
Join Date: Jun 2012
Location: Beijing, China
Posts: 849
Rep Power: 18 |
My friend gave me the mesh, see it here:
ICEM: https://www.dropbox.com/s/abdfz55f1n...em.tar.gz?dl=0 Gmsh: https://www.dropbox.com/s/vvg8fq7ygm...sh.tar.gz?dl=0 |
|
December 13, 2014, 21:16 |
|
#10 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Hi sharonyue,
I was really curious about this and here's what I found:
Bruno |
|
December 14, 2014, 11:01 |
|
#11 | |
Senior Member
Dongyue Li
Join Date: Jun 2012
Location: Beijing, China
Posts: 849
Rep Power: 18 |
Quote:
Thank u!! |
||
December 22, 2014, 11:27 |
|
#12 |
Senior Member
Dongyue Li
Join Date: Jun 2012
Location: Beijing, China
Posts: 849
Rep Power: 18 |
Um. I check the mesh carefully, and try some cases. At the boundaries, there are many small faces there. see:
But this one I think its neat!!: http://www.cfd-online.com/Forums/ope...ce-object.html I tried with some cases but I can not remove those fine mesh. but if I make the angle to be 180. its very smooth but looks there is no feature edge. But I think this is not a big problem. however, if there is a way I can remove the small faces at the boundaries, I will be very happy lol. |
|
January 11, 2015, 18:39 |
|
#13 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Hi sharonyue,
Quote:
As far as I can see, there is no way to remove those faces at the boundaries, since those are keeping the final mesh true to the original mesh topology. One possible solution is to do what enGrid allows us to do, which is to add prismatic boundary layers to the surfaces, before converting to polyhedral cells. That way you will get the final mesh as you want, because those prismatic cells should already have the final desired shape. Best regards, Bruno |
||
October 1, 2015, 16:32 |
|
#14 | |
Senior Member
Join Date: Jan 2013
Posts: 372
Rep Power: 14 |
Dear Bruno,
For polydualMesh, is it possible to visualize the polyhedral cells with different numbers of faces? In my cases, I have a mesh with polyhedral cells, which are reconstructed from a finer mesh. Now I am trying to plot it out but had some problem with it. For paraview, if we would like to visualize the polyhedral cells, is there any particularl data format? Thank you. best regards, OFFO Quote:
|
||
October 4, 2015, 17:26 |
|
#15 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Quick answer @OFFO: Not enough information. The best I can do is point you to this FAQ: http://openfoamwiki.net/index.php/FA...is_in_ParaView
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Other] vtk mesh or Abaqus mesh to OpenFOAM | bigphil | OpenFOAM Meshing & Mesh Conversion | 27 | November 23, 2015 18:31 |
[Salome] OpenFoam case and salome mesh | marialiste | OpenFOAM Meshing & Mesh Conversion | 1 | December 4, 2013 15:56 |
OpenFOAM Foundation releases OpenFOAM 2.2.2 | opencfd | OpenFOAM Announcements from ESI-OpenCFD | 0 | October 14, 2013 08:18 |
Can't run a case in HelyxOS with an imported mesh from Fluent | HHOS | OpenFOAM Running, Solving & CFD | 0 | July 2, 2013 07:25 |
OpenFOAM Training and Workshop Zagreb 2628Jan2006 | hjasak | OpenFOAM | 1 | February 2, 2006 22:07 |