|
[Sponsors] |
October 10, 2019, 14:55 |
Internal Interface in mesh imported
|
#1 |
New Member
Hernan
Join Date: Jul 2015
Posts: 5
Rep Power: 11 |
Hello Foamers!
I want to define an internal interface in a fluid region of an imported mesh from Star-ccm+. This is because I used different mesh operations in Star-ccm+ and creates internal interfaces. I have a very simple case (Image attached). In this case, the internal interface makes no sense, but in other cases it does. When I run ccm26ToFoam the boundary file generated is this: Code:
6 ( Wall-1 { type wall; inGroups List<word> 1(wall); nFaces 1800; startFace 88014; } Int-1 { type wall; inGroups List<word> 1(wall); nFaces 518; startFace 89814; } Inlet { type patch; nFaces 518; startFace 90332; } Wall-2 { type wall; inGroups List<word> 1(wall); nFaces 1800; startFace 90850; } Outlet { type patch; nFaces 518; startFace 92650; } Int-2 { type wall; inGroups List<word> 1(wall); nFaces 518; startFace 93168; } ) I used "stitchMesh Int-1 Int-2" but it doesn't work, maybe I used wrong... stitchMesh description: "Merge the faces on the specified patches (if geometrically possible) so the faces become internal." Anyone have an idea? Thanks!! Last edited by hernanrmz; October 11, 2019 at 11:35. |
|
October 11, 2019, 12:04 |
|
#2 |
New Member
Hernan
Join Date: Jul 2015
Posts: 5
Rep Power: 11 |
Hello Foamers!
I just solved! "stitchMesh" is the utility I need The steps to convert a Star-CCM+ mesh with internal interfaces are: 1. ccm26ToFoam mesh.ccm (you need to install ccm26ToFoam library) 2. The boundary file generated is this: Code:
6 ( Wall-1 { type wall; inGroups List<word> 1(wall); nFaces 1800; startFace 88014; } Int-1 { type wall; inGroups List<word> 1(wall); nFaces 518; startFace 89814; } Inlet { type patch; nFaces 518; startFace 90332; } Wall-2 { type wall; inGroups List<word> 1(wall); nFaces 1800; startFace 90850; } Outlet { type patch; nFaces 518; startFace 92650; } Int-2 { type wall; inGroups List<word> 1(wall); nFaces 518; startFace 93168; } ) 3. You need to define the boundary conditions for the Int-1 and Int-2 in the 0 Files. In this case U and p files. U file: Code:
boundaryField { Inlet { type fixedValue; value uniform (0.01 0 0); } Outlet { type zeroGradient; } Wall-1 { type noSlip; } Wall-2 { type noSlip; } Int-1 { type zeroGradient; } Int-2 { type zeroGradient; } } If you run checkMesh, you can see that you have 2 regions: Code:
*Number of regions: 2 The mesh has multiple regions which are not connected by any face. Code:
stitchMesh Int-1 Int-2 5. Delete the old polymesh and copy the new one: Code:
rm -rv constant/polyMesh/ cp -rv 1/polyMesh/ constant/ rm -rv 1 Code:
Checking topology... Boundary definition OK. Cell to face addressing OK. Point usage OK. Upper triangular ordering OK. Face vertices OK. Number of regions: 1 (OK). Code:
Int-1 { type wall; inGroups List<word> 1(wall); nFaces 0; startFace 90332; 7. Code:
simpleFoam |
|
Tags |
internal mesh, star-ccm+ |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Radiation in semi-transparent media with surface-to-surface model? | mpeppels | CFX | 11 | August 22, 2019 08:30 |
Frozen Rotor 1:1 Mesh Connection | pharley | CFX | 5 | January 31, 2013 17:15 |
[ICEM] Unstructure Meshing Around Imported Plot3D Structured Mesh ICEM | kawamatt2 | ANSYS Meshing & Geometry | 17 | December 20, 2011 12:45 |
engrid: Internal volume mesh becoming coarser during boundayr layer addition | Arnoldinho | OpenFOAM | 1 | January 22, 2011 05:31 |
Mesh motion applied to an internal interface | lr103476 | OpenFOAM Running, Solving & CFD | 6 | March 12, 2008 22:07 |