CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Meshing & Mesh Conversion

[blockMesh] subtract volume in blockMesh

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 13, 2012, 16:21
Question subtract volume in blockMesh
  #1
Member
 
Adam
Join Date: Jun 2011
Posts: 32
Rep Power: 15
Smed is on a distinguished road
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?
Attached Files
File Type: pdf blockMesh_subtractVolume.pdf (27.5 KB, 231 views)
Smed is offline   Reply With Quote

Old   April 13, 2012, 16:55
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
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
__________________
wyldckat is offline   Reply With Quote

Old   April 16, 2012, 09:57
Default
  #3
Member
 
Adam
Join Date: Jun 2011
Posts: 32
Rep Power: 15
Smed is on a distinguished road
Bruno,

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

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[blockMesh] blockMesh error - Negative Volume Block adoledin OpenFOAM Meshing & Mesh Conversion 2 June 22, 2016 11:44
[blockMesh] Errors during blockMesh meshing Madeleine P. Vincent OpenFOAM Meshing & Mesh Conversion 51 May 30, 2016 11:51
On the damBreak4phaseFine cases paean OpenFOAM Running, Solving & CFD 0 November 14, 2008 22:14
[Commercial meshers] CuBit t42 OpenFOAM Meshing & Mesh Conversion 6 July 10, 2008 08:51
[blockMesh] Axisymmetrical mesh Rasmus Gjesing (Gjesing) OpenFOAM Meshing & Mesh Conversion 10 April 2, 2007 15:00


All times are GMT -4. The time now is 13:44.