|
[Sponsors] |
[snappyHexMesh] Obtaining two regions from background mesh |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
September 19, 2016, 03:39 |
Obtaining two regions from background mesh
|
#1 |
Member
Join Date: Jul 2013
Posts: 39
Rep Power: 13 |
Hello everyone. I am working on a complex geometry so I need to use STL file to generate mesh. What I am doing is, I create a bounding box using blockMesh. Then, I run snappyHexMesh to obtain background mesh and this creates new boundary for me. Using this boundary, I need to split STL file as solid region and the rest of the mesh as fluid region. I run setSet to create zone from boundary:
Code:
setSet faceSet f0 new patchToFace myWall cellSet c0 new faceToCell f0 any cellZoneSet c0 new setToCellZone c0 Code:
splitMeshRegions -cellZones Code:
For the cellZonesOnly option all cells have to be in a cellZone. Thank you so much. Last edited by cfdsolver1; September 19, 2016 at 22:10. Reason: image added |
|
September 21, 2016, 17:30 |
|
#2 |
New Member
Roberto
Join Date: May 2016
Posts: 17
Rep Power: 10 |
Hi,
If I understood what you want to do, I would suggest you play around with sHM. Therefore you can split your regions. I do believe topoSet would put you into trouble and make you waste a lot of time. I think this thread is about what you want. http://www.cfd-online.com/Forums/ope...ous-media.html Regards, Roberto |
|
September 21, 2016, 20:38 |
|
#3 |
Member
Join Date: Jul 2013
Posts: 39
Rep Power: 13 |
Dear Roberto,
Thank you so much for your reply. I am able to obtain a mesh using sHM like the post you posted but my problem is, If I use sHM I get the solid region as a boundary. However, I want to name my STL file as cellZone; not as boundary. Is this possible with sHM? |
|
September 23, 2016, 12:18 |
|
#4 |
Senior Member
Join Date: Aug 2013
Posts: 407
Rep Power: 16 |
Hi,
Have you tried the option "cellZoneInside inside;" and the associated ones as stated in slide 31 here: http://openfoamwiki.net/images/f/f0/...SlidesOFW7.pdf Does it do what you want? Cheers, Antimony |
|
September 26, 2016, 13:53 |
|
#5 | |||
Member
Join Date: Jul 2013
Posts: 39
Rep Power: 13 |
Hello again, thanks for the tips. I guess I was able to split mesh into two regions but I am not sure if I did it correctly or not. I used
Quote:
Quote:
If I run chtMultiRegionSolver, the h equation at fluid region decreases and goes to minus values, which is of course wrong. If I solve solid region only, everything is okay. If I run only fluid region using chtMultiRegionSolver, it doesn't work again. So, what might be problem? Can you help me? If I use Quote:
|
||||
Tags |
setset, snappyhexmesh, toposet |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
decomposePar problem: Cell 0contains face labels out of range | vaina74 | OpenFOAM Pre-Processing | 37 | July 20, 2020 06:38 |
pimpleDyMfoam , AMI -- The mesh has multiple regions not connected by any face | coolcrasher | OpenFOAM Running, Solving & CFD | 3 | May 16, 2019 06:58 |
[Gmsh] gmshToFoam - Hybrid mesh conversion creates 2 regions | bhanu2204 | OpenFOAM Meshing & Mesh Conversion | 5 | February 18, 2018 08:04 |
[snappyHexMesh] SnappyHexMesh for internal Flow | vishwa | OpenFOAM Meshing & Mesh Conversion | 24 | June 27, 2016 09:54 |
[snappyHexMesh] No layers in a small gap | bobburnquist | OpenFOAM Meshing & Mesh Conversion | 6 | August 26, 2015 10:38 |