Removing interior cells
Please would a seasoned openFOAMer give me a few words of advice on my mesh?
Using interFoam and groovyBC in OF 1.6.x, I would like to create a ship in a wave tank via blockMesh. A the moment it is a rectangular log, but in future I want to use a form that I can generate from a script.
My (newbie) approach has been to generate the ship as an interior block in blockMeshDict. This is all well and good, and the geometry looks ok:
I had supposed that I could add boundary conditions to the "hull" patches that effectively turn them into walls of the domain. Of course, the flow goes straight through the patches as if the ship wasn't there. I've tried a number of different boundary conditions and patch configurations but I suspect my approach is fundamentally wrong, and I need to completely remove the interior cells of the ship from the domain.
I see that snappyHexMesh is able to remove interior cells, and I am wondering whether there might be a simpler utility or trick that I can run on my mesh to remove the interior cells. Or maybe there is a mode in which I can use sHM to do what I want (without having to generate a STL file), but to be honest, I have no idea where to start with that.
Any pointers you could give me would be very gratefully received.
I'd still be grateful for some help with this.
Greetings Steve and welcome to the forum!
Disclaimer: I only have some limited experience with OpenFOAM. But since people are either very busy this time of the year, or are still on vacations, or stuck in some blizzard or flood... so I'll try to give you some suggestions.
I've never removed cells from inside meshes, but I know some tutorials that might get you in the right direction:
Many thanks for your time, wyldckat. I hadn't noticed this tutorial until you pointed it out.
I see the floatingObject described in blockMeshDict as a patch with no faces, and then it looks like it's modified by a subsequent call to subsetMesh in the Allrun file. I think I should be able to do something similar.
I shall play with this tutorial and post the results of my endeavours.
|All times are GMT -4. The time now is 18:40.|