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

[blockMesh] Simulating a room

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 11, 2014, 15:21
Default Simulating a room
  #1
New Member
 
Ian Dizon
Join Date: May 2014
Posts: 6
Rep Power: 11
superian is on a distinguished road
Hi Foamers,

I'm new to OpenFOAM and CFD in general. I am trying to simulate ventilation in a room. I would like to make a mesh for this using blockMesh but it seems it will take rather long.

I have attached a isometric view of the room drawn in AutoCAD. The blocks within the room will be used to simulate people, computers, desks, cabinets and lights.

I'm sure there is a better way to do this. Can anyone help me out?

Thanks,
Ian
isometric.jpg

If it helps, these are the coordinates of the vertex of each object in the room:

Code:
ROOM
    0    0    0
    5.16    0    0
    5.16    3.65    0
    0    3.65    0
    0    0    2.43
    5.16    0    2.43
    5.16    3.65    2.43
    0    3.65    2.43
WINDOW
    5.16    0.15    0.94
    5.18    0.15    0.94
    5.18    3.5    0.94
    5.16    3.5    0.94
    5.16    0.15    2.1
    5.18    0.15    2.1
    5.18    3.5    2.1
    5.16    3.5    2.1
DIFFUSER
    0    1.51    0.03
    0.28    1.51    0.03
    0.28    2.04    0.03
    0    2.04    0.03
    0    1.51    1.14
    0.28    1.51    1.14
    0.28    2.04    1.14
    0    2.04    1.14
EXHAUST
    2.365    1.61    2.43
    2.795    1.61    2.43
    2.795    2.04    2.43
    2.365    2.04    2.43
    2.365    1.61    2.43
    2.795    1.61    2.43
    2.795    2.04    2.43
    2.365    2.04    2.43
OCCUPANT 1
    1.98    0.85    0
    2.38    0.85    0
    2.38    1.2    0
    1.98    1.2    0
    1.98    0.85    1.1
    2.38    0.85    1.1
    2.38    1.2    1.1
    1.98    1.2    1.1
OCCUPANT 2
    3.13    2.45    0
    3.53    2.45    0
    3.53    2.8    0
    3.13    2.8    0
    3.13    2.45    1.1
    3.53    2.45    1.1
    3.53    2.8    1.1
    3.13    2.8    1.1
COMPUTER 1
    1.98    0.1    0.75
    2.38    0.1    0.75
    2.38    0.5    0.75
    1.98    0.5    0.75
    1.98    0.1    1.15
    2.38    0.1    1.15
    2.38    0.5    1.15
    1.98    0.5    1.15
COMPUTER 2
    3.13    3.15    0.75
    3.53    3.15    0.75
    3.53    3.55    0.75
    3.13    3.55    0.75
    3.13    3.15    1.15
    3.53    3.15    1.15
    3.53    3.55    1.15
    3.13    3.55    1.15
TABLE 1
    0.35    0    0.74
    2.58    0    0.74
    2.58    0.75    0.74
    0.35    0.75    0.74
    0.35    0    0.75
    2.58    0    0.75
    2.58    0.75    0.75
    0.35    0.75    0.75
TABLE 2
    2.93    2.9    0.74
    5.16    2.9    0.74
    5.16    3.65    0.74
    2.93    3.65    0.74
    2.93    2.9    0.75
    5.16    2.9    0.75
    5.16    3.65    0.75
    2.93    3.65    0.75
BOX 1
    0    0    0
    0.33    0    0
    0.33    0.58    0
    0    0.58    0
    0    0    1.32
    0.33    0    1.32
    0.33    0.58    1.32
    0    0.58    1.32
BOX 2
    4.21    0    0
    5.16    0    0
    5.16    0.58    0
    4.21    0.58    0
    4.21    0    1.24
    5.16    0    1.24
    5.16    0.58    1.24
    4.21    0.58    1.24
LAMP 1
    1.03    0.16    2.18
    1.23    0.16    2.18
    1.23    1.36    2.18
    1.03    1.36    2.18
    1.03    0.16    2.33
    1.23    0.16    2.33
    1.23    1.36    2.33
    1.03    1.36    2.33
LAMP 2
    2.33    0.16    2.18
    2.53    0.16    2.18
    2.53    1.36    2.18
    2.33    1.36    2.18
    2.33    0.16    2.33
    2.53    0.16    2.33
    2.53    1.36    2.33
    2.33    1.36    2.33
LAMP 3
    3.61    0.16    2.18
    3.81    0.16    2.18
    3.81    1.36    2.18
    3.61    1.36    2.18
    3.61    0.16    2.33
    3.81    0.16    2.33
    3.81    1.36    2.33
    3.61    1.36    2.33
LAMP 4
    1.03    2.29    2.18
    1.23    2.29    2.18
    1.23    3.49    2.18
    1.03    3.49    2.18
    1.03    2.29    2.33
    1.23    2.29    2.33
    1.23    3.49    2.33
    1.03    3.49    2.33
LAMP 5
    2.33    2.29    2.18
    2.53    2.29    2.18
    2.53    3.49    2.18
    2.33    3.49    2.18
    2.33    2.29    2.33
    2.53    2.29    2.33
    2.53    3.49    2.33
    2.33    3.49    2.33
LAMP 6
    3.61    2.29    2.18
    3.81    2.29    2.18
    3.81    3.49    2.18
    3.61    3.49    2.18
    3.61    2.29    2.33
    3.81    2.29    2.33
    3.81    3.49    2.33
    3.61    3.49    2.33

Last edited by superian; June 13, 2014 at 10:32.
superian is offline   Reply With Quote

Old   June 27, 2014, 14:36
Default
  #2
New Member
 
Ian Dizon
Join Date: May 2014
Posts: 6
Rep Power: 11
superian is on a distinguished road
Alright, so I finished meshing this room!

I used CATIA to create a geometry.
Exported .STL files from CATIA into Blender 2.68.
In Blender, I labeled patches and setup snappyHexMeshDict with SwiftSnap plugin.
SwiftSnap will write blockMeshDict, snappyHexMeshDict files and triSurface directory with .STL patches.
And you just have to place these files the in the proper directories.

Then run:
Code:
blockMesh
snappyHexMesh -overwrite
And it worked!

Hope this helps anyone.

Ian
superian is offline   Reply With Quote

Old   October 17, 2014, 12:12
Default
  #3
Senior Member
 
Join Date: Feb 2010
Posts: 213
Rep Power: 17
vaina74 is on a distinguished road
Hi superian, I have a similar case. And I am very interested to your meshing procedure, I only used Salome and Netgen.
I need to roughly model a ship engine room to check the efficiency of a mechanical ventilation system. I'm not expert about ventilation because I'm usually concerned about hulls and propellers. I think the solver buoyantboussinesqsimplefoam is the right way. Could you please share your case or provide with a simple case? Thanks for your attention.
vaina74 is offline   Reply With Quote

Old   April 1, 2015, 10:21
Default
  #4
Member
 
behrouz
Join Date: Mar 2015
Posts: 34
Rep Power: 11
behrouz is on a distinguished road
hi to all
i am started linux and openfoam a few weeks ago and i am such a beginner so
i try to simulate a simple ventilation case,like a simple room with 2 or 3 person in it and common load like radition and etc with one indoor supply air.wich one of case in tutorials i should use?and how can i run it?
any refrence,guid or idea and... can help
tnx
behrouz 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
Simulating a room miquiita FLUENT 4 October 11, 2014 07:27
[ICEM] Ogride in of a room in ICEM CFD metmet ANSYS Meshing & Geometry 3 July 31, 2014 14:00
[GAMBIT] Object in room with that object being the purpose of investigation fluentgambituser ANSYS Meshing & Geometry 3 August 24, 2011 01:52
Anyone has step by step guide from geometry to simulating air flow in room binghong ANSYS 0 September 30, 2010 23:50
Salome and Code Saturne simulation of simple room and objects cristian.ocnarescu Main CFD Forum 0 June 21, 2010 10:19


All times are GMT -4. The time now is 23:09.