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

Is there an easy way to mesh this room?

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

Like Tree3Likes
  • 1 Post By alberto
  • 1 Post By wyldckat
  • 1 Post By kalle

Reply
 
LinkBack Thread Tools Display Modes
Old   June 4, 2011, 14:44
Default Is there an easy way to mesh this room?
  #1
Member
 
Kevin
Join Date: May 2011
Posts: 32
Rep Power: 6
murrdpirate is on a distinguished road
This doesn't seem like it should be too difficult, but I've been struggling with this for days. I'm wondering if I'm going about this in the wrong way and if someone else would do it differently.

Here is a picture of the room I am trying to model. It has an inlet that I will patch with a cold/hot airflow, and outlet that I will patch with a zero gradient, and a window that I will patch with a heat gain/loss. Everything else is a wall.



If anyone has any suggestions on how to approach this problem, I would greatly appreciate it. Thanks.
murrdpirate is offline   Reply With Quote

Old   June 4, 2011, 16:40
Default
  #2
Senior Member
 
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,894
Rep Power: 26
alberto will become famous soon enoughalberto will become famous soon enough
If you want to use blockMesh, it is a bit annoying. You have to project the BC's (window, inlet, outlet) on the opposite face, and then split the domain in many hex blocks, and mesh them.

A CAD + mesher would do this in a few minutes.

Best,
murrdpirate likes this.
__________________
Alberto Passalacqua

GeekoCFD - A free distribution based on openSUSE 64 bit with CFD tools, including OpenFOAM. Available as live DVD/USB, hard drive image and virtual image.
OpenQBMM - An open-source implementation of quadrature-based moment methods
alberto is offline   Reply With Quote

Old   June 4, 2011, 17:02
Default
  #3
Member
 
Kevin
Join Date: May 2011
Posts: 32
Rep Power: 6
murrdpirate is on a distinguished road
Yeah I've been using blockMesh and it has been a pain. At least I know now that it wasn't just me, haha. I guess I'll have to look into using salome or something.
murrdpirate is offline   Reply With Quote

Old   June 4, 2011, 18:26
Default
  #4
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,253
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Greetings to both!

Mmm, if the geometries are going to be this simple, you can try Discretizer: http://www.discretizer.org/

Discretizer comes with two GUIs:
  • The original Discretizer - which gives the power to draw 3D geometries and define boundaries on surfaces.
  • Discretizer::Setup - more oriented to act as a frontend for OpenFOAM and acting as a first approach to newcomers.
This project is still in development and last I saw, it hasn't reached 1.0, so if you find it useful, give your support to its author Björn Bergqvist Even if its just feedback


Another option is enGrid, which acts as a mesher and partial frontend to OpenFOAM: http://engits.eu/


But wait, there's more:
http://openfoamwiki.net/index.php/GUI


On a more low level side, there is also OpenFOAM's snappyHexMesh, but until 1.8.0 is released, those sharp edges/corners can be tamed with snapEdge: http://openfoamwiki.net/index.php/Contrib_snapEdge

Best regards,
Bruno
murrdpirate likes this.
wyldckat is offline   Reply With Quote

Old   June 6, 2011, 01:46
Default
  #5
Senior Member
 
Karl-Johan Nogenmyr
Join Date: Mar 2009
Location: Linköping
Posts: 252
Rep Power: 12
kalle is on a distinguished road
Hi,

you could also mesh this geometry with 3 blocks in blockMesh, and then create your patches with the faceSet and createPatch utilities... it might be hard to control the exact distribution of the cells as well as the exact extent of the patches, though... for full control you need plenty of blocks, like Alberto says.

K
murrdpirate likes this.
kalle 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
Number of cells in mesh don't match with size of cellLevel colinB OpenFOAM Native Meshers: snappyHexMesh and Others 11 January 13, 2015 12:47
[ICEM] surface mesh merging problem everest ANSYS Meshing & Geometry 39 June 5, 2013 19:02
engrid -> save as .stl with boundarie codes Zymon enGrid 31 August 29, 2011 13:40
fluent add additional zones for the mesh file SSL FLUENT 2 January 26, 2008 12:55
unstructured vs. structured grids Frank Muldoon Main CFD Forum 1 January 5, 1999 11:09


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