|
[Sponsors] |
[mesh manipulation] On spliting multi region meshes |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
April 27, 2022, 08:50 |
On spliting multi region meshes
|
#1 |
Senior Member
Nico
Join Date: Jan 2022
Location: Germany
Posts: 122
Rep Power: 6 |
Hey, since my rather humble beginings with openfoam i am stuck with a certain problem regarding the spliting of multi region meshes. I am using OpenFoam Version 9.
To finally resolve this as this will be somewhat fundamental to my phd i would like to discuss my error. I have a boiled down case of a single plate with a chevron corrugation, for simplicity its a single quick and dirty done corrugation. I had this test case in ansys fluent and exported the stls to openfoam to use them in snappyhexmesh. The complete case is attached with an allrun script and a log from my previous run. My main concern is the spliting of the mesh as the boundaries don't match up. If i run the case and examine the boundary files i have for the fluidregion the correct boundaries and the mesh is mediocore but resembles what i had in mind. (See attached image) However i can't open the mesh for the other region because the console states that the boundaries don't match up. A closer look reveals that one of the interfaces is found in both boundary definitions. fluid: Code:
/*--------------------------------*- C++ -*----------------------------------*\ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org \\ / A nd | Version: 9 \\/ M anipulation | \*---------------------------------------------------------------------------*/ FoamFile { format ascii; class polyBoundaryMesh; location "constant/fluidcold/polyMesh"; object boundary; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 4 ( inletcold { type patch; nFaces 2675; startFace 563642; } outletcold { type patch; nFaces 2672; startFace 566317; } wallfluidcold { type wall; inGroups List<word> 1(wall); nFaces 36996; startFace 568989; } fluidcold_to_solid { type mappedWall; inGroups List<word> 3 ( wall mappedPatch baffles1 ) ; nFaces 33762; startFace 605985; sampleMode nearestPatchFace; sampleRegion solid; samplePatch solid_to_fluidcold; } ) // ************************************************************************* // Code:
/*--------------------------------*- C++ -*----------------------------------*\ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org \\ / A nd | Version: 9 \\/ M anipulation | \*---------------------------------------------------------------------------*/ FoamFile { format ascii; class polyBoundaryMesh; location "constant/solid/polyMesh"; object boundary; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 3 ( wallsolid { type wall; inGroups List<word> 1(wall); nFaces 34685; startFace 292030; } fluidcold_to_solid { type mappedWall; inGroups List<word> 3 ( wall mappedPatch baffles1 ) ; nFaces 1; startFace 326715; sampleMode nearestPatchFace; sampleRegion solid; samplePatch solid_to_fluidcold; } solid_to_fluidcold { type mappedWall; inGroups List<word> 3 ( wall mappedPatch baffles1 ) ; nFaces 33760; startFace 326716; sampleMode nearestPatchFace; sampleRegion fluidcold; samplePatch fluidcold_to_solid; } ) // ************************************************************************* // Code:
Finished meshing without any errors Finished meshing in = 94.08 s. Code:
Reading "createBafflesDict" Created zone baffles1 at index 1 with 33763 faces --> FOAM Warning : From function void createFaces(bool, const Foam::fvMesh&, const Foam::faceZone&, const labelList&, const labelList&, Foam::polyTopoChange&, Foam::PackedBoolList&, Foam::label&) in file createBaffles.C at line 395 Found boundary face (in patch wallfluidcold) in faceZone baffles1 to convert to baffle patches fluidcold_to_solid/solid_to_fluidcold Set internalFacesOnly to true in the createBaffles control dictionary if you don't wish to convert boundary faces. --> FOAM Warning : From function void createFaces(bool, const Foam::fvMesh&, const Foam::faceZone&, const labelList&, const labelList&, Foam::polyTopoChange&, Foam::PackedBoolList&, Foam::label&) in file createBaffles.C at line 395 Found boundary face (in patch wallsolid) in faceZone baffles1 to convert to baffle patches fluidcold_to_solid/solid_to_fluidcold Set internalFacesOnly to true in the createBaffles control dictionary if you don't wish to convert boundary faces. Converted 33763 faces into boundary faces in patches 2 ( fluidcold_to_solid solid_to_fluidcold ) --> FOAM Warning : From function int main(int, char**) in file createBaffles.C at line 822 Setting field on boundary faces to zero. You might have to edit these fields. Writing mesh to 0 End Code:
splitMeshRegions -cellZonesOnly -overwrite However i am left with increasing doubt that mabye my stl files are not ideal from the start. Is there anything known regarding issues like this? Or is there anything fundamentaly wrong with my workflow and/or my snappyHexMeshdict? Any hint is greatly appreciated and would help me out a lot in the long run! Have a good one! |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Can I use fvOptions to couple a solid region and a fluid region? | titanchao | OpenFOAM Running, Solving & CFD | 4 | January 14, 2022 08:55 |
[snappyHexMesh] Multi Region Mesh of a car filter | Zephiro88 | OpenFOAM Meshing & Mesh Conversion | 3 | September 11, 2019 20:34 |
conjugate heat transfer in OpenFOAM | skuznet | OpenFOAM Running, Solving & CFD | 99 | March 16, 2017 06:07 |
[snappyHexMesh] Multi Region Meshing | bruce | OpenFOAM Meshing & Mesh Conversion | 12 | July 31, 2013 11:09 |
[snappyHexMesh] multi region with snappyHexMesh | vikthor | OpenFOAM Meshing & Mesh Conversion | 0 | August 24, 2012 04:47 |