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

terrain import openFoam

Register Blogs Community New Posts Updated Threads Search

Like Tree5Likes
  • 1 Post By snippsnuske
  • 4 Post By AlanR

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 29, 2010, 07:47
Default terrain import openFoam
  #1
New Member
 
siri
Join Date: Apr 2010
Location: Norway
Posts: 16
Rep Power: 16
snippsnuske is on a distinguished road
Dear Foamers
I’m a newcomer to this forum&openfoam and I hope to get tips where to start with complex terrain import in openfoam (for wind flow simulations). I have a grid ascii (.grd file) file and would like to mesh that with the use of Salome. Is there any tutorial I can use as a start? Thanks!
MaySea likes this.
snippsnuske is offline   Reply With Quote

Old   April 29, 2010, 09:42
Default
  #2
Senior Member
 
Elvis
Join Date: Mar 2009
Location: Sindelfingen, Germany
Posts: 620
Blog Entries: 6
Rep Power: 24
elvis will become famous soon enough
Quote:
Originally Posted by snippsnuske View Post
Dear Foamers
I’m a newcomer to this forum&openfoam and I hope to get tips where to start with complex terrain import in openfoam (for wind flow simulations). I have a grid ascii (.grd file) file and would like to mesh that with the use of Salome. Is there any tutorial I can use as a start? Thanks!
Hi,

i do not know how you can import your grid.
But the flash videos http://www.caelinux.org/wiki/index.p...ELinux_2007.29
might help you with the usage Salome -> OF in general

another way might be creating a STL from the (.grd file) grid plus a cuboid with Blockmesh, and as an next step let snappyhexmesh create the mesh for you. That is what they did at Icon
http://openfoamfoorumi.com/wordpress...ON_v1.3mod.pdf Slide 18

with an STL from your grid you (.grd file) could use discretizer http://www.discretizer.org/ as a cheap/free of charge replacement of Icon FOAMpro

elvis

Last edited by elvis; April 29, 2010 at 10:05.
elvis is offline   Reply With Quote

Old   April 30, 2010, 01:06
Default
  #3
Member
 
Alan Russell
Join Date: Aug 2009
Location: Boise, Idaho USA
Posts: 61
Rep Power: 17
AlanR is on a distinguished road
There's a terrain meshing tutorial: tutorials/mesh/moveDyamicMesh/SnakeRiverCanyon that uses a different approach than the one you're using.
Terrain digital elevation maps (DEMs) are processed using mapping software and saved as .obj files. The .obj is converted into a .stl file using the surfaceConvert utility in OF. Then you either use the tutorial method (moveDynamicMesh), or snappyHexMesh to mesh the terrain surface (as was suggested by elvis). I worked with the tutorial method for a while, then switched to using snappy. Look through the blockMesh part of the tutorial to see how to make a domain around the surface. To use snappy, you need to enter a point above the surface (locationInMesh) in the snappyHexMeshDict file along with the name of the surface file. To generate a boundary layer, use refinementSurfaces (2 2) and nSurfaceLayers 4 to get two layers of 1/2 size and 2 layers of 1/4 size refined cells at the surface. Look through the motorBike tutorial to see how to set up the snappy Dict file. Use the fvSolution and fvSchemes files from the dynamicMesh tutorial.
One big advantage is that all meshing is done within OF. I use MicroDEM to open maps, save the map area of interest and generate the .obj files. It takes a while to figure out the details, but the mesh generation only takes a few minutes for a 1 square kilometer area. Good luck,

Alan
emjay, viniciusdms, MaySea and 1 others like this.
AlanR is offline   Reply With Quote

Old   May 12, 2010, 05:09
Default
  #4
New Member
 
siri
Join Date: Apr 2010
Location: Norway
Posts: 16
Rep Power: 16
snippsnuske is on a distinguished road

Thanks a lot Alan R! ..but where is this tutorial located? Can’t find it..
tutorials/mesh/moveDyamicMesh/SnakeRiverCanyon
Snipp
snippsnuske is offline   Reply With Quote

Old   May 12, 2010, 10:42
Default
  #5
Senior Member
 
Elvis
Join Date: Mar 2009
Location: Sindelfingen, Germany
Posts: 620
Blog Entries: 6
Rep Power: 24
elvis will become famous soon enough
Hi,

http://repo.or.cz/w/OpenFOAM-1.6.x.g...akeRiverCanyon

I didn´t know of this tutorial either.

elvis
elvis is offline   Reply With Quote

Old   May 27, 2010, 08:13
Default
  #6
New Member
 
Thomas Smyth
Join Date: Apr 2010
Posts: 14
Rep Power: 16
Thom is on a distinguished road
Hi, I've been trying to snappyHexMesh the AcrossRiver.stl file from the dynamic Mesh tutorial using Alan's instruction for the past couple of days. SnappyHexMesh runs but it doesn't seem to 'pick up' and snap the presence of the stl file. Has anyone else been successful in doing this or could share their snappyHexMeshDict of this example?

Thanks for your help,
Thomas
Thom is offline   Reply With Quote

Old   May 28, 2010, 12:10
Default
  #7
New Member
 
Thomas Smyth
Join Date: Apr 2010
Posts: 14
Rep Power: 16
Thom is on a distinguished road
Sorry problem solved. See here.
Thom is offline   Reply With Quote

Old   July 13, 2010, 03:55
Default From .grd to .stl
  #8
New Member
 
siri
Join Date: Apr 2010
Location: Norway
Posts: 16
Rep Power: 16
snippsnuske is on a distinguished road
I realized that GlobalMapper can easely import and export various geographical formats and that includes export in STL. So I used this software for my terrain file. The software is not freeware though. So I guess AlanRs suggestion is better but I have not tested this yet.
snippsnuske is offline   Reply With Quote

Old   November 4, 2010, 15:38
Default surfaceConvert utility in OF
  #9
Senior Member
 
abdikerim kurbanaliev
Join Date: Jun 2010
Location: Kyrgyzstan, Osh
Posts: 121
Rep Power: 16
kerim is on a distinguished road
Dear all!
Where can I find surfaceConvert utility in OF?
kerim is offline   Reply With Quote

Reply

Tags
openfoam, salome, terrain


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
How to import a model into openfoam flak-spammer OpenFOAM 0 August 17, 2009 04:38
Modified OpenFOAM Forum Structure and New Mailing-List pete Site News & Announcements 0 June 29, 2009 06:56
[GAMBIT] import terrain geometry cfdworker ANSYS Meshing & Geometry 2 May 24, 2009 22:40
import mesh to OpenFOAM Andréia CFX 4 July 29, 2008 03:51
Errors running allwmake in OpenFOAM141dev with WM_COMPILE_OPTION%3ddebug unoder OpenFOAM Installation 11 January 30, 2008 21:30


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