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

[snappyHexMesh] blockMesh for multi-region snappy

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 7, 2018, 18:19
Default blockMesh for multi-region snappy
  #1
Senior Member
 
kandelabr's Avatar
 
Nejc
Join Date: Feb 2017
Location: Slovenia
Posts: 196
Rep Power: 9
kandelabr is on a distinguished road
I set up a multi-region case, meshing with snappyHexMesh. It seems to do its job but I have problems with outermost faces.

I create a background mesh with blockMesh, leaving the blockMeshDict.boundary empty so that defaultFaces is assigned. Usually I make background mesh just slightly bigger so snappy snaps easily and assigns my 'real' patches.

But in multi-region setup, snappy creates new regions where the cells should have been removed because they were outside my model.

If I make background mesh of exactly the same dimensions than my model (if it's a block, that is), I'm stuck with defaultFaces again.

I could remove domain*/ folders and use changeDictionary and whatnot but I don't think that's the right way to do it.

In the tutorial, blockMesh defines named boundary faces - that's what I can't / don't want to do. Tutorials from holzmann-cfd.com use a mesh created in SALOME...

How do I really set up a multi-region snappyHexMesh?

Thanks!

Last edited by Tobi; June 24, 2020 at 13:05.
kandelabr is offline   Reply With Quote

Old   June 12, 2018, 05:45
Default
  #2
Senior Member
 
anonymous
Join Date: Jan 2016
Posts: 416
Rep Power: 14
simrego is on a distinguished road
Hi!

What version do you use? In +v1712 (maybe in 1706 and 1612 too) you can define the inside points for the regions you want to keep, and it removes the regions you don't need, and you will have correct boundary names, conform mesh between regions, etc..
simrego is offline   Reply With Quote

Old   June 12, 2018, 06:25
Default
  #3
Senior Member
 
kandelabr's Avatar
 
Nejc
Join Date: Feb 2017
Location: Slovenia
Posts: 196
Rep Power: 9
kandelabr is on a distinguished road
I'm currently using Turbomachinery CFD's package in which I believe version 5.x is used from OF Foundation. However I'm switching to ESI-CFD's latest version because there's a blended wall function I really need. I'll check snappyHexMesh too and report back.

Thanks!
kandelabr is offline   Reply With Quote

Old   June 12, 2018, 06:57
Default
  #4
Senior Member
 
anonymous
Join Date: Jan 2016
Posts: 416
Rep Power: 14
simrego is on a distinguished road
In v1712 check the $FOAM_UTILITIES/mesh/generation/snappyHexMesh/snappyHexMeshDict file. You will see there how can you define multiple regions with the locationsInMesh entry (i think this part is commented).

Good luck!
simrego is offline   Reply With Quote

Reply

Tags
multiregion


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
Maximum number of iterations exceeded chtmultiregionsimpleFoam Moncef OpenFOAM Running, Solving & CFD 28 July 13, 2020 15:26
conjugate heat transfer in OpenFOAM skuznet OpenFOAM Running, Solving & CFD 99 March 16, 2017 06:07
Floating Point Error with kOmegaSST Turbulence Model shipman OpenFOAM Running, Solving & CFD 5 January 4, 2016 09:57
[mesh manipulation] Importing Multiple Meshes thomasnwalshiii OpenFOAM Meshing & Mesh Conversion 18 December 19, 2015 19:57
Taking too much for run Grimoli OpenFOAM Running, Solving & CFD 5 November 26, 2013 21:07


All times are GMT -4. The time now is 08:37.