|
[Sponsors] |
[blockMesh] Extrude two regions with extrudeToRegionMesh |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
October 18, 2021, 12:01 |
Extrude two regions with extrudeToRegionMesh
|
#1 |
New Member
Alexis
Join Date: Oct 2021
Posts: 7
Rep Power: 5 |
Hi,
I'm a bit new using openFoam and I'm struggling with something that seems easy to do but I can't figure it out. I currently have a wedge to simulate a small part of a cylinder. The mesh has been done with Gmsh. I want to extrude two faces,close one an other, from the top surface in order to have two separate regions. The faces are defined perfectly in the topoSetDict. Everything is in Case.zip. Feel free to run it. -I tried putting both in the extrudeToRegionMeshDict (see extrudeToRegionMeshDict.orig) but it only considers the second/the last one. -I tried using a second extrudeToRegionMeshDict (see extrudeToRegionMeshDict1) and it works well but the boundaries are not as I want them to be. The second region (in green - see Capture.png) does not consider the first one (in red - see Capture.png) when naming the boundaries. At the end, the same face has two different names and two different types (patch and MappedWall). - I tried an other method with spliMeshRegions but the fact that all the cells have to be in a zone is not suitable for my problem. ????? Is there a way to connect those two extruded regions so they share the same boundary at the interface between them the same way it is done for the interface between each region and the wedge. Thanks in advance |
|
June 3, 2023, 20:23 |
|
#2 |
New Member
Peter Bevington
Join Date: May 2023
Posts: 10
Rep Power: 3 |
Hey Alexis, did you ever get this to work? I'm facing the same problem, where I want to create two similar extruded regions, but the second always overwrites the first. Thinking of giving up and just using the second one for both, but wondering if you found a workaround...
|
|
July 2, 2023, 05:57 |
|
#3 |
New Member
Alexis
Join Date: Oct 2021
Posts: 7
Rep Power: 5 |
Hi,
I hope you found a solution before I could reply. But here is the thing I remember since it has been a long time I've done the simulation. I was not able to have a good result with the extrudeToRegionMesh method. At the end of the day, I used a single region that contains everything I wanted, including the regions you want to create. In order to still have two distinct zones, probably three with the one you were extruding from, I simply used topoSetDict. Finally, to transform those zones into regions, I entered the command splitMeshRegions -cellZonesOnly -overwrite. It will create three folders in the 0, constant, system folders. Like so you can apply the conditions you want for each of them. Quick recap of the commands : 1. blockMesh (if you use it) 2. topoSet 3. splitMeshRegions -cellZonesOnly -overwrite If there is anything I can do to make it clearer, feel free to ask. I'll do my best to be more responsive. Alexis |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
chtMultiRegionFoam: two fluid regions separated by a thin, conducting wall | JayDeeUU | OpenFOAM Pre-Processing | 16 | July 22, 2021 22:17 |
[CAD formats] Clean / Repair STL file with multiple regions on command line | matthiasd | OpenFOAM Meshing & Mesh Conversion | 6 | May 24, 2016 07:51 |
Determining the calculation sequence of the regions in multe regions calculation | peterhess | OpenFOAM Running, Solving & CFD | 4 | March 9, 2016 04:07 |
chtMultiRegionFoam different properties in (fluid) region(s) | volker1 | OpenFOAM Pre-Processing | 3 | February 4, 2015 07:46 |
[Gmsh] Cannot get the right mesh from gmsh | JinBiao | OpenFOAM Meshing & Mesh Conversion | 2 | August 31, 2010 05:51 |