CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Native Meshers: blockMesh (http://www.cfd-online.com/Forums/openfoam-meshing-blockmesh/)
-   -   subtract volume in blockMesh (http://www.cfd-online.com/Forums/openfoam-meshing-blockmesh/99861-subtract-volume-blockmesh.html)

Smed April 13, 2012 15:21

subtract volume in blockMesh
 
1 Attachment(s)
I am wondering what is the best way to subtract volume from a block in blockMesh. I have attached a drawing of what I want to do. I have an 8 point block, but I want to remove another 8 point block from somewhere in the middle of it. Is there an easy way to do this, or do I need to create 4 separate blocks which surround the empty space and then merge the patches like i've drawn at the bottom of my attachment?

wyldckat April 13, 2012 15:55

Greetings Adam,

If you have properly defined all of the cells, then you can use setSet to:
  • select the cells to be removed (which means that they must already exist... ironic, I know);
  • then invert the selection;
  • then use subsetMesh to save only the last selection of cells.
How to use setSet:
Best regards,
Bruno

Smed April 16, 2012 08:57

Bruno,

This worked great, thanks! I ended up following the damBreakWithObstacle tutorial ($FOAM_TUTORIALS/multiphase/interDyMFoam/ras/damBreakWithObstacle), for anyone else who's interested.


All times are GMT -4. The time now is 04:21.