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

How to create multiple-block geometries?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 23, 2012, 00:43
Default How to create multiple-block geometries?
  #1
New Member
 
ahmad
Join Date: Oct 2012
Posts: 5
Rep Power: 14
afaizm is on a distinguished road
Hi guys,

I'm doing a research that simulates airflow over urban buildings, therefore I need to create geometries of those buildings with certain spacing.

Does anyone know the effective way of setting this up in OpenFOAM?

The figure below is the example of the simulation model I need to set up:

afaizm is offline   Reply With Quote

Old   October 23, 2012, 03:42
Default
  #2
Senior Member
 
Gerhard Holzinger
Join Date: Feb 2012
Location: Austria
Posts: 342
Rep Power: 28
GerhardHolzinger will become famous soon enoughGerhardHolzinger will become famous soon enough
Hello,

have a look at the m4 programming language. With the help of this language you can create parametric meshes.

I attached a zip-archive with a m4 file and a screenshot from paraView to give you an idea what this script creates.

To use this script change type something like this:

Code:
m4 cuboidMesh_BlaBla > blockMeshDict
This command lets m4 parse the first file (cuboidMesh_BlaBla) and stores the result into blockMeshDict.

After that you simply run blockMesh.


You can play with the mesh generated by my script and place a single block in the flow.
Attached Files
File Type: zip cuboidMeshParametric.zip (28.7 KB, 24 views)
GerhardHolzinger is offline   Reply With Quote

Old   October 28, 2012, 22:29
Default
  #3
New Member
 
ahmad
Join Date: Oct 2012
Posts: 5
Rep Power: 14
afaizm is on a distinguished road
Thanks man will have a look. It seems reasonable.
afaizm is offline   Reply With Quote

Old   September 11, 2013, 13:35
Default
  #4
New Member
 
yu_Chen
Join Date: May 2013
Posts: 6
Rep Power: 13
newmancfd is on a distinguished road
Quote:
Originally Posted by afaizm View Post
Thanks man will have a look. It seems reasonable.
Hello, I'm doing research about shock waves in urban area. I konw it's been a long time, but please tell me if you have succesfully run your simulation or not. What I'm doing now doesn't work......... So maybe I can use openfoam to do my simulation. Thanks in advance.
newmancfd is offline   Reply With Quote

Reply

Tags
multiple blocks, openfoam


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
[ICEM] Multiple fluide zone in ICEM Hexa Block problem ddqp ANSYS Meshing & Geometry 4 October 9, 2013 11:57
foamLog not solving for Ux, Uy, Uz aerospain OpenFOAM Post-Processing 5 April 18, 2012 11:01
How to create multiple solid-fluid domain? Harendra Siemens 6 January 28, 2005 14:58
How to create multiple domain? Mishar Siemens 2 January 28, 2005 10:41
multiple block technique Ray Main CFD Forum 0 August 26, 1999 12:00


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