CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Native Meshers: blockMesh

subtract volume in blockMesh

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   April 13, 2012, 15:21
Question subtract volume in blockMesh
  #1
Member
 
Adam
Join Date: Jun 2011
Posts: 32
Rep Power: 6
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, 87 views)
Smed is offline   Reply With Quote

Old   April 13, 2012, 15:55
Default
  #2
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,312
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
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, 08:57
Default
  #3
Member
 
Adam
Join Date: Jun 2011
Posts: 32
Rep Power: 6
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

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to set periodic boundary conditions Ganesh FLUENT 13 January 22, 2014 05:11
mesh airfoil NACA0012 anand_30 OpenFOAM Meshing & Mesh Conversion 12 December 12, 2011 05:16
BlockMesh FOAM warning gaottino OpenFOAM Native Meshers: blockMesh 7 July 19, 2010 14:11
On the damBreak4phaseFine cases paean OpenFOAM Running, Solving & CFD 0 November 14, 2008 22:14
Axisymmetrical mesh Rasmus Gjesing (Gjesing) OpenFOAM Native Meshers: blockMesh 10 April 2, 2007 14:00


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