CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User 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 Search this Thread Display Modes
Old   June 4, 2011, 15:44
Default Is there an easy way to mesh this room?
  #1
Member
 
Kevin
Join Date: May 2011
Posts: 33
Rep Power: 14
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, 17:40
Default
  #2
Senior Member
 
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,912
Rep Power: 36
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 in both physical and virtual formats (current status: http://albertopassalacqua.com/?p=1541)
OpenQBMM - An open-source implementation of quadrature-based moment methods.

To obtain more accurate answers, please specify the version of OpenFOAM you are using.
alberto is offline   Reply With Quote

Old   June 4, 2011, 18:02
Default
  #3
Member
 
Kevin
Join Date: May 2011
Posts: 33
Rep Power: 14
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, 19:26
Default
  #4
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
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 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, 02:46
Default
  #5
Senior Member
 
Karl-Johan Nogenmyr
Join Date: Mar 2009
Location: Linköping
Posts: 279
Rep Power: 21
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

Old   April 18, 2020, 06:59
Default
  #6
New Member
 
JSH
Join Date: Dec 2019
Posts: 6
Rep Power: 6
jshjsh is on a distinguished road
Hi, How did you finally solve it? a better way? please
jshjsh is offline   Reply With Quote

Old   April 18, 2020, 14:15
Default
  #7
Member
 
Kevin
Join Date: May 2011
Posts: 33
Rep Power: 14
murrdpirate is on a distinguished road
Hi jshjsh,

Unfortunately, I don't remember. I think this was basically my first and only attempt in using CFD.

I haven't been on this forum in almost a decade. Wow. Kinda nostalgic now.
murrdpirate is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
[snappyHexMesh] Number of cells in mesh don't match with size of cellLevel colinB OpenFOAM Meshing & Mesh Conversion 14 December 12, 2018 09:07
[ICEM] surface mesh merging problem everest ANSYS Meshing & Geometry 44 April 14, 2016 07:41
engrid -> save as .stl with boundarie codes Zymon enGrid 31 August 29, 2011 14: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 08:38.