|
[Sponsors] |
![]() |
![]() |
#1 |
New Member
siri
Join Date: Apr 2010
Location: Norway
Posts: 16
Rep Power: 17 ![]() |
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! |
|
![]() |
![]() |
![]() |
![]() |
#2 | |
Senior Member
|
Quote:
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 09:05. |
||
![]() |
![]() |
![]() |
![]() |
#3 |
Member
Alan Russell
Join Date: Aug 2009
Location: Boise, Idaho USA
Posts: 61
Rep Power: 17 ![]() |
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 |
|
![]() |
![]() |
![]() |
![]() |
#4 |
New Member
siri
Join Date: Apr 2010
Location: Norway
Posts: 16
Rep Power: 17 ![]() |
Thanks a lot Alan R! ..but where is this tutorial located? Can’t find it.. tutorials/mesh/moveDyamicMesh/SnakeRiverCanyon Snipp |
|
![]() |
![]() |
![]() |
![]() |
#5 |
Senior Member
|
Hi,
http://repo.or.cz/w/OpenFOAM-1.6.x.g...akeRiverCanyon I didn´t know of this tutorial either. elvis |
|
![]() |
![]() |
![]() |
![]() |
#6 |
New Member
Thomas Smyth
Join Date: Apr 2010
Posts: 14
Rep Power: 17 ![]() |
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 |
|
![]() |
![]() |
![]() |
![]() |
#8 |
New Member
siri
Join Date: Apr 2010
Location: Norway
Posts: 16
Rep Power: 17 ![]() |
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.
|
|
![]() |
![]() |
![]() |
![]() |
#9 |
Senior Member
abdikerim kurbanaliev
Join Date: Jun 2010
Location: Kyrgyzstan, Osh
Posts: 122
Rep Power: 16 ![]() |
Dear all!
Where can I find surfaceConvert utility in OF? |
|
![]() |
![]() |
![]() |
Tags |
openfoam, salome, terrain |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to import a model into openfoam | flak-spammer | OpenFOAM | 0 | August 17, 2009 03:38 |
Modified OpenFOAM Forum Structure and New Mailing-List | pete | Site News & Announcements | 0 | June 29, 2009 05:56 |
[GAMBIT] import terrain geometry | cfdworker | ANSYS Meshing & Geometry | 2 | May 24, 2009 21:40 |
import mesh to OpenFOAM | Andréia | CFX | 4 | July 29, 2008 02:51 |
Errors running allwmake in OpenFOAM141dev with WM_COMPILE_OPTION%3ddebug | unoder | OpenFOAM Installation | 11 | January 30, 2008 20:30 |