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

[snappyHexMesh] multiple regions

Register Blogs Community New Posts Updated Threads Search

Like Tree13Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 4, 2013, 08:29
Default
  #41
New Member
 
David Haces
Join Date: Mar 2013
Posts: 28
Rep Power: 13
Haces is on a distinguished road
O really?? Thanks!!

I will work with it!!
Haces is offline   Reply With Quote

Old   April 23, 2013, 07:40
Default
  #42
Member
 
Daniel Pielmeier
Join Date: Apr 2012
Posts: 99
Rep Power: 14
billie is on a distinguished road
Quote:
Originally Posted by Tobi View Post
Okay now it's gonna be a monolog
1. Download Link activated above.
http://www.holzmann-cfd.de/index.php...waermetauscher
Tobi
The link on the page mentioned above currently does not work. Is it possible to make the file "abgaswaermetauscher.tar.gz" available for download again.

Thanks in advance.
billie is offline   Reply With Quote

Old   April 23, 2013, 13:14
Default
  #43
Super Moderator
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Bad Wörishofen
Posts: 2,711
Blog Entries: 6
Rep Power: 52
Tobi has a spectacular aura aboutTobi has a spectacular aura aboutTobi has a spectacular aura about
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
Quote:
Originally Posted by billie View Post
The link on the page mentioned above currently does not work. Is it possible to make the file "abgaswaermetauscher.tar.gz" available for download again.

Thanks in advance.
Thanks for reporting the wrong link
Working again!
Tobi is offline   Reply With Quote

Old   April 23, 2013, 14:32
Default
  #44
Member
 
Daniel Pielmeier
Join Date: Apr 2012
Posts: 99
Rep Power: 14
billie is on a distinguished road
Quote:
Originally Posted by Tobi View Post
Thanks for reporting the wrong link
Working again!
Thanks a lot. I am especially interested in the case because I want to see you handle the boundary creation for the multi-region case.

I tried to mesh a multi-region case but the boundaries/solids from the stl files are not preserved for multi-region cases by sHM.
billie is offline   Reply With Quote

Old   August 8, 2013, 20:54
Default
  #45
New Member
 
woodwick's Avatar
 
Alessandro
Join Date: Feb 2013
Location: Italia
Posts: 15
Rep Power: 13
woodwick is on a distinguished road
Tobi,

I would like to download abgaswaermetauscher.tar.gz but the link you gave before doesn't work. Can you share it again?

Thanks
woodwick is offline   Reply With Quote

Old   August 16, 2013, 20:08
Default
  #46
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Greetings to all!

@Alessandro: Tobi once in a while renovates his website
Check his current tutorials for snappyHexMesh: http://www.holzmann-cfd.de/index.php/tutorials - with any luck, he made a variant of the tutorial that is missing...

Best regards,
Bruno
romant likes this.
__________________
wyldckat is offline   Reply With Quote

Old   May 4, 2014, 01:37
Default
  #47
Member
 
Lucas Mutti
Join Date: Aug 2013
Posts: 47
Rep Power: 14
lramutti is on a distinguished road
Hey Tobi,

I am going through a similar problem at the moment and I tried to access your website but it seems that the case is no longer available. Would it be possible for you to uploaded it again?

Cheers

Lucas
lramutti is offline   Reply With Quote

Old   September 9, 2014, 10:36
Default
  #48
Super Moderator
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Bad Wörishofen
Posts: 2,711
Blog Entries: 6
Rep Power: 52
Tobi has a spectacular aura aboutTobi has a spectacular aura aboutTobi has a spectacular aura about
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
Hi all,

I did not regenerate the old case but created one new.
Its cheaper (computational time) and I think its easy to get the point.

You can check it out here:
http://www.holzmann-cfd.de/index.php...ppymultiregion

A better choice is to get to that page (maybe some link will changed in future )
http://www.holzmann-cfd.de/index.php/en/tutorials-en
romant likes this.
__________________
Keep foaming,
Tobias Holzmann
Tobi is offline   Reply With Quote

Old   July 27, 2017, 12:49
Default
  #49
Member
 
Join Date: May 2017
Posts: 44
Rep Power: 9
bbita is on a distinguished road
Hi Tobi,

I am not sure if this thread is still active. I am trying to model a porous media with several disconnected grains. I used snappyHexMesh and splitMeshRegions. I am not sure, if I can define all those grains as one region.

Thanks,
bbita is offline   Reply With Quote

Old   July 27, 2017, 13:06
Default
  #50
Super Moderator
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Bad Wörishofen
Posts: 2,711
Blog Entries: 6
Rep Power: 52
Tobi has a spectacular aura aboutTobi has a spectacular aura aboutTobi has a spectacular aura about
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
Hi,

active or not active I will get an notification

- You want to make a cht case? Yes you can specify each of the grains as region but I think there are better ways.
- Giving more information about what you are trying to do would be much better and we could give more tips
__________________
Keep foaming,
Tobias Holzmann
Tobi is offline   Reply With Quote

Old   July 27, 2017, 13:14
Default
  #51
Member
 
Join Date: May 2017
Posts: 44
Rep Power: 9
bbita is on a distinguished road
Hi Tobi,

At this stage, I want to use cht, but later I want to combine cht with interfoam (I hope I can do that ). If I can have only two regions (grain and fluid), it makes my model easier for the next steps.

Thanks
bbita is offline   Reply With Quote

Old   February 16, 2018, 17:23
Exclamation
  #52
New Member
 
Join Date: Oct 2016
Posts: 20
Rep Power: 10
JoeFriend is on a distinguished road
Hello Tobi,

I'm having a similar problem you had once: when using splitMeshRegions after SHM, I get multiple extra domains with one or two cells between my regions. Some of the things I've done to try to solve this:
- verifying my STL files are closed (I used SALOME to create them and then surfaceCheck in OF)
- use different parameters in SHM dictionary (the more I refine the mesh and the edges, the more cells I get between my regions)
- I followed your suggestions (posts #28-31) of having separated STL files for each region, with a different name for each patch.
- I've checked the setup of other SHM cases with multiple regions (tutorials in your web site, OF tutorials, etc)

but the problem is still there...I have run out of ideas by now
Considering I've tested similar configurations than other cases, I think the problem could be related to my STL files, but I don't see where. I would really appreciate any suggestion

A simplified version of my case can be found here
https://drive.google.com/open?id=1Fs...uus3SSEuR4nCm4

Best regards,

Jose Amigo
JoeFriend is offline   Reply With Quote

Old   March 17, 2019, 14:05
Default
  #53
Member
 
Join Date: May 2017
Posts: 44
Rep Power: 9
bbita is on a distinguished road
Hello All,

I have a similar problem. The stl files are attached. I would like to have two regions; one fluid which is the cube itself and one solid which consists of two unconnected spheres. However what I am getting from snappyHexMesh is Flow, domain1, and domain2. I appreciate your help. Thanks
Attached Files
File Type: zip Stls.zip (33.1 KB, 9 views)
bbita is offline   Reply With Quote

Old   March 23, 2019, 13:34
Default
  #54
Member
 
Join Date: May 2017
Posts: 44
Rep Power: 9
bbita is on a distinguished road
Dear Foamers,

I found the solution (might not be the best but works ).
I used two different stls for each spheres. So in total I have flow, sphere1, and sphere2. after I SHM the stls, I changed cellZones and faceZones manually by moving the points of sphere1 and sphere2 to one region.

I hope it can help someone.

Thanks
Tobi likes this.
bbita is offline   Reply With Quote

Old   June 12, 2019, 12:41
Default
  #55
New Member
 
SC
Join Date: Dec 2018
Posts: 3
Rep Power: 7
leogermer is on a distinguished road
I have a case which is a heat exchanger with a fluid phase and a solid phase (consist of plate and all the fins disposed along the plate)

One STL for the fluid phase containing inlet,outlet and the patches through the plate and the channels

And another STL for the solid phase containing the fins, both ends of the fins (which i want to add some extra refinement), and the plate itself.

Now i tried:

1. Generate the STL's using Freecad (see attachment)
2. Merging the regions with command cat main.stl inlet.stl ... > fluid.stl
3. Generate background mesh with blockMesh
4. Meshing with sHM, creating a cellZone for the fluid and solid
5. Split the mesh creating only one extra domain which would be what is left from the background.
6. Set up the boundaries and solve with chtMultiRegionSimpleFoam


What i'm getting:

1. Sometimes it cuts one of the fins on the castellated step of sHM;

2. 99 more domains when execute splitMeshRegions -cellZones. i investigated where those domains were and it was near the interfaces of the fins and the fluid phase.

I tried to follow what Tobi got and downloaded his tutorial case 'snappyHexMeshcellZoneMeshing', but i don't know how i can manage to put boundaries at the fluid region, since in this tutorial you don't actually have a cellZone for the fluid phase.
Attached Images
File Type: png plate.png (9.6 KB, 29 views)
File Type: png fluid.png (10.5 KB, 26 views)
leogermer is offline   Reply With Quote

Old   October 7, 2019, 14:05
Default
  #56
New Member
 
Fabian Preiss
Join Date: Feb 2019
Posts: 1
Rep Power: 0
fpreiss is on a distinguished road
Hello, I stumbled into the same issue as the others in this thread and think I found a more practical solution than what was shown before. As the link to abgaswaermetauscher.tar.gz did not work for me, I attached a similar and simple testcase based on the multiRegionHeater tutorial with the meshing unrelated files removed. The case files should work on both OpenFoam6 and OpenFoam7 (OpenFoam4 would require adjustments).
I found that of the two disconnected regions in inner_boxes.stl only one would show up in paraview when looking at the reconstructed case - however in the decomposed view it was displaying both albeit as two separated regions (inner_boxes & region1).


Changing the line

Code:
runParallel splitMeshRegions -cellZones -overwrite
to
Code:
runParallel splitMeshRegions -cellZonesOnly -overwrite
in Allrun did the trick for me.
Attached Images
File Type: jpg splitMeshRegions_cellZones_decomposed.jpg (73.9 KB, 30 views)
File Type: jpg splitMeshRegions_cellZones_reconstructed.jpg (71.4 KB, 24 views)
File Type: jpg splitMeshRegions_cellZonesOnly.jpg (72.8 KB, 25 views)
Attached Files
File Type: zip disconnectedMultiregion.zip (9.6 KB, 15 views)
fpreiss is offline   Reply With Quote

Old   March 29, 2020, 05:53
Unhappy Too many regions with splitMeshRegions
  #57
New Member
 
Francesca Mangani
Join Date: Oct 2019
Posts: 7
Rep Power: 7
FrancescaMangani is on a distinguished road
Quote:
Originally Posted by Tobi View Post
Hi Bruno,

I have an idea and I think its working but now I have a strange problem. With checkMesh I get 4 regions but if I split my mesh into my regions I get over 70 regions - most of them just contain 1 - 3 cells.

How can I provide that problem?

Code:
Region    Cells
------    -----
0    57621
1    12473
2    59994
3    201142
4    2
5    3
6    1
7    1
8    1
9    1
10    2
11    2
12    3
13    1
14    2
15    4
16    1
17    2
18    3
19    1
20    3
21    2
22    1
23    1
24    2
25    1
26    1
27    19
28    2
29    15
30    2
31    2
32    2
33    1
34    1
35    2
36    1
37    2
38    1
39    1
40    1
41    2
42    4
43    2
44    2
45    3
46    1
47    2
48    3
49    1
50    3
51    1
52    1
53    1
54    2
55    1
56    1
57    2
58    1
59    1
60    2
61    1
62    1
63    1
64    1
65    2
66    2
67    1
68    1
69    1
70    1
71    1
72    2
73    1
74    2
75    1
76    1
77    1
78    1
79    1



Hi Tobi,


did you manage to solve the problem eventually??


I have to use splitMeshRegions with a very complex geometry and I find many regions with splitMeshRegions... I solved the problem in some zones, where I found defects in the stl file, but I still have too many regions, and I don't understand what is the main reason for this behaviour of splitMeshRegions.


I really hope you can help me because I have no more ideas...
FrancescaMangani 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
[snappyHexMesh] Unkown multiple regions in checkMesh hokhay OpenFOAM Meshing & Mesh Conversion 4 December 30, 2021 08:40
how to set periodic boundary conditions Ganesh FLUENT 15 November 18, 2020 07:09
[CAD formats] Clean / Repair STL file with multiple regions on command line matthiasd OpenFOAM Meshing & Mesh Conversion 6 May 24, 2016 07:51
[snappyHexMesh] Using snappyHexMesh for multiple enclosed regions richard_vega OpenFOAM Meshing & Mesh Conversion 0 November 13, 2014 15:28
OpenFOAM static build on Cray XT5 asaijo OpenFOAM Installation 9 April 6, 2011 13:21


All times are GMT -4. The time now is 16:38.