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

[snappyHexMesh] Problems with multi-region mesh in sHM

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 16, 2013, 09:52
Default Problems with multi-region mesh in sHM
  #1
Senior Member
 
Artur's Avatar
 
Artur
Join Date: May 2013
Location: Southampton, UK
Posts: 372
Rep Power: 20
Artur will become famous soon enough
Hi,

I'm using sHM to create a mesh for a ship hull and a propeller using AMI. I want to see if it is possible to get reasonable results by assuming that the free surface profile is not affected by the prop and only doing the unsteady calculation for a part of the hull. To do this, I want to mesh the free surface shape I get from a separate run and treat is as an impenetrable wall. Then I want to create a smaller domain bounded by the hull, the free surface and other defined patches.

The approach I'm taking is:
1. run ltsInterFoam to get the free surface shape around the boat
2. create a smaller blockMesh
3. use a few scripts to generate .stl files which will represent the AMI cylinder and the bounding box of the smaller domain
4. run sHM (see attached dict file)
5. run topoSet, createPatch, createBaffles and mergeOrSplitBaffles

It works very well when I'm not running in parallel (see picture) but when I do try to run in parallel the sHM log file is cut at this point:

Code:
Introducing zones for interfaces
--------------------------------

Surface : amiCylinder
    faceZone : amiCylinder
    cellZone : amiCylinder
Walking from location-in-mesh (-5 0.1 -3) to assign cellZones - crossing a faceZone face changes cellZone
I can just stick to running on a single core if need be, of course, but it would be nice to know what I'm doing wrong here.

Note: without the freeSurface.stl the meshing goes smoothly in parallel. I tried different decomposition methods and no. cores but none helped.

EDIT: Perhaps I should say how I got the .stl file. I used the contour filter in paraview for the volume fraction field, saved it as a .vrml file and then converted that to an .stl (I know there is a way to do it directly but I couldn't find the correct export option for some reason...).
Attached Images
File Type: jpg multiRegionMesh.jpg (13.9 KB, 30 views)
Attached Files
File Type: txt snappyHexMeshDict.txt (5.0 KB, 6 views)
Artur 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
[mesh manipulation] How to write cellSet for different regions in constant/polyMesh/sets Struggle_Achieve OpenFOAM Meshing & Mesh Conversion 3 June 17, 2019 10:29
[Other] preserveFaceZones constraint on a multi region mesh ViktorKL OpenFOAM Meshing & Mesh Conversion 5 May 21, 2019 12:45
[snappyHexMesh] Multi region meshing with SHM creates extra regions Dav3dum OpenFOAM Meshing & Mesh Conversion 0 August 8, 2016 09:54
[snappyHexMesh] SnappyHexMesh for internal Flow vishwa OpenFOAM Meshing & Mesh Conversion 24 June 27, 2016 09:54
[Other] Material properties in multi region foam and refining mesh for each region mukut OpenFOAM Meshing & Mesh Conversion 2 October 7, 2013 03:08


All times are GMT -4. The time now is 23:45.