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

blockMesh

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

Reply
 
LinkBack Thread Tools Display Modes
Old   September 30, 2011, 06:37
Default blockMesh
  #1
Senior Member
 
Samuele Z
Join Date: Oct 2009
Location: Mozzate - Co - Italy
Posts: 490
Rep Power: 9
samiam1000 is on a distinguished road
Dear all,

I wanna simulate the wind over a certain area.

I tried different tutorials and everything seems to work properly. Now I am trying to start with my simulation.

I have a problem with the 1st step, that's to say the "blockMesh".

In fact, I have to create a a block and then I will mesh it. The point is that I don't want to mesh a cube, but a "cube" whose lower face is my terrain. The point is that the edge of my terrain don't have the same altitude z (see the picture).

Does anyone know how I can solve? What should I do? Any hint?

Thanks a lot,

Samuele
Attached Images
File Type: jpg terrain.jpg (79.3 KB, 62 views)
samiam1000 is offline   Reply With Quote

Old   September 30, 2011, 06:51
Default
  #2
Senior Member
 
Bernhard
Join Date: Sep 2009
Location: Delft
Posts: 790
Rep Power: 12
Bernhard is on a distinguished road
Maybe you can consider using snappyHexMesh?
Bernhard is offline   Reply With Quote

Old   September 30, 2011, 07:43
Default
  #3
Senior Member
 
Samuele Z
Join Date: Oct 2009
Location: Mozzate - Co - Italy
Posts: 490
Rep Power: 9
samiam1000 is on a distinguished road
Dear Bernhard,

thanks for answering. Well, snappy is what I am gonna use afeter block.

How can I detect the volume that I wanna mesh without defining a block?

Thanks a lot,

Samuele
samiam1000 is offline   Reply With Quote

Old   September 30, 2011, 08:02
Default
  #4
Member
 
Eysteinn Helgason
Join Date: Sep 2009
Location: Gothenburg, Sweden
Posts: 52
Rep Power: 7
eysteinn is on a distinguished road
Quote:
Originally Posted by samiam1000 View Post
Dear all,

I wanna simulate the wind over a certain area.

I tried different tutorials and everything seems to work properly. Now I am trying to start with my simulation.

I have a problem with the 1st step, that's to say the "blockMesh".

In fact, I have to create a a block and then I will mesh it. The point is that I don't want to mesh a cube, but a "cube" whose lower face is my terrain. The point is that the edge of my terrain don't have the same altitude z (see the picture).

Does anyone know how I can solve? What should I do? Any hint?

Thanks a lot,

Samuele
Hi Samuele,

I'm not sure if this is what you are looking for but here goes:

What I would suggest (maybe there are other way and then I would glad like to hear them).

Create a closed surface (stl file ), in your case a box with the bottom as your terrain.
This is your "wind tunnel".
You can name the parts of your surface (e.g. inlet, outlet, terrain and walls )using Blender ( see http://www.cfd-online.com/Forums/ope...cii-stlbs.html ).
Then you create a box in blockmesh that is slightly larger than your stl geometry. When that is all done you move to snappyHexMesh to trim of the excess cells and do refinements of the mesh.

/Eysteinn
eysteinn is offline   Reply With Quote

Old   September 30, 2011, 08:34
Default
  #5
Member
 
Greg Melling
Join Date: Nov 2010
Posts: 41
Rep Power: 6
grjmell is on a distinguished road
I've done exactly this before.

I did this:
1. create stl file of terrain (position centre at 0,0,0)
2. create blockMesh with the same (or tiny bit smaller) dimensions of your stl in x-y direction and whatever extent you require in z direction
3. find the lowest point in your stl (i.e. lowest z-value)
4. translate stl by that z-value. this makes the lowest point of your stl fall onto the bottom of your blockmesh (say at z=0)
5. run blockmesh and snappy and you have what you need. works fine for me.
grjmell is offline   Reply With Quote

Old   September 30, 2011, 10:09
Default
  #6
Senior Member
 
Samuele Z
Join Date: Oct 2009
Location: Mozzate - Co - Italy
Posts: 490
Rep Power: 9
samiam1000 is on a distinguished road
Hi all,

I think that both your ideas are good.

I am gonna try grjmell's one since it looks simpler (since it does not involve Blender)..
What I wanna ask to grjmell is why he translates the stl. Can't I create a box where the stl is? Why should I move it to have z=0??
I don't care about this, right??

I will try and then I'll let you know.

Thanks again,

Samuele
samiam1000 is offline   Reply With Quote

Old   September 30, 2011, 11:16
Default
  #7
Member
 
Greg Melling
Join Date: Nov 2010
Posts: 41
Rep Power: 6
grjmell is on a distinguished road
Yes translation is optional as long as you encompass all the stl (z extent) with your blockmesh
grjmell 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
Is Playstation 3 cluster suitable for CFD work hsieh OpenFOAM 9 August 16, 2015 14:53
tutorial 2.2 Stress(...) trouble with blockMesh colinB OpenFOAM Native Meshers: blockMesh 8 January 22, 2012 11:32
blockMesh - help atareen64 OpenFOAM Native Meshers: blockMesh 2 June 16, 2011 15:32
Dimensionsproblems SLT-file and blockMesh suitup OpenFOAM Bugs 3 November 19, 2009 04:00
Blockmesh cavity error message tonitoney OpenFOAM Installation 2 March 17, 2008 12:59


All times are GMT -4. The time now is 16:03.