Flow in pipe with porous region - How to define cellzone?
I am new OpenFoam user I want to do something very simple:
There is a 2d pipe and in the middle there is a porous wall. I used blockmesh with 3 blocks with equal sizes and the block in the middle should be the porous media. How do I indicate to OpenFoam that there is a porous region? I read about CellZone and Setset, but I can't find exactly what must I write and were :confused: I'm using porousSimpleFoam and blockMesh. If someone has the codes for such simulation to share, I and the Internet will be very thankfull to you and many people in the future will love you. The "tutorials" that come with openFoam are very unclear. |
Hi,
Look at the topoSet utility: https://github.com/OpenFOAM/OpenFOAM...et/topoSetDict You can define your cellZone using that. There are multiple options: boxToCell, cylinderToCell etc that you can use to get your cellZone. Cheers, Antimony |
Thank you for your reply!
I created the file topoSetDict and I put it in /system Code:
With this mesh Code:
but I get this error when I run porousSimpleFoam Code:
/*---------------------------------------------------------------------------*\ |
Hi,
At the moment it is still a cellSet, not a cellZone. You will need to do one more step in your topoSet to get that. Look for setToCellZone to do the conversion. Hope this helps. Cheers, Antimony |
All times are GMT -4. The time now is 03:31. |