Merging meshes for chtMultiRegionFoam
Hey guys, for a multi region simulation i want to couple two (then three) seperate generated meshes. I am somewhat familiar with merging meshes, but i am unsure considering the interfaces.
For the first test i want to couple a solid and a fluid thermaly along a surface with the exact same geometric values. (same length and width and same geometric features). After meshing both of them, with same refinement levels in for each snappyhex run, i am sitting on two times the surface, but with different amount of faces: solid: Code:
/*--------------------------------*- C++ -*----------------------------------*\ Code:
/*--------------------------------*- C++ -*----------------------------------*\ Code:
fluid_to_plate Any help is greatly appreciated! Kind regards! |
Hi Nico,
Let's start with the most basic question: why do you want to use mergeMeshes for a CHT case? chtMultiRegionFoam use separate meshes for each region, this is why we use splitMeshRegions which is pretty much the opposite of mergeMeshes. Regarding the interfaces coupling, mappedWall can work with non-conformal interfaces thanks to AMI. But it must be handled with care since the interpolation can lead to energy conservation issues, which is obviously something we would like to avoid when working with heat transfer. I don't have the exact method in mind to create the interfaces, but you should have a look to utilities such as changeDictionary, createPatch. The mappedWall definition should look like this: https://www.cfd-online.com/Forums/op...tml#post394476 The thread is pretty old and I don't think there is any tutorial demonstrating this kind of stuff so you might have to dig deeper, but it should be a good starting point. My first thought is that this must be doable without merging the meshes, maybe another way would be to merge, deal with the interfaces, then split the meshes but it sounds a bit unnecessary to me. I hope this helps! Yann |
Hi Yann,
i want to merge meshes of each region since the behaviour (as we discussed in a another post) doesn't seems really reliable. I made some "progress" with meshing each region and then splitting the meshes, delivering the wanted boundaries in each region. For the interface i wanted to (like you mentioned) use the createpatch dictionary. I have only concerns regarding the handling of data between the interfaces. But the link to the thread seems quite what i am looking for, i will dig deeper and try to make the best out of it! Thank you, as always, for your help! |
mergeMeshes
Dear foamers,
I have been working in blockMesh on two simple meshes (two cylinders), I intend to join with an overlap as a T-junction (90º degree angle). mergeMeshes command only joins the two meshes however the overlapped part is still there including the walls. Is there a command to remove the overlapped cells or to combine two meshes from blockMesh? Many thanks, Didu |
All times are GMT -4. The time now is 05:19. |