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

Creating obstacles in the 3D-space

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 1, 2009, 13:01
Default Creating obstacles in the 3D-space
  #1
Member
 
Dennis Rown
Join Date: Oct 2009
Posts: 51
Rep Power: 16
shangzung is on a distinguished road
Hello!

I'm new to OpenFOAM but worked with FDS so far and I am learning OpenFOAM since 2 days now.

I just can't figure out if in OpenFOAM it is possible to create obstacles (like in FDS).

So far I only figured out how to create walls in the blockMeshDict, but all the walls have to be attached to points and I would rather attach them to world-coordinates.

I appreciate your help!

Greets Dmitri
shangzung is offline   Reply With Quote

Old   October 4, 2009, 14:46
Default
  #2
Senior Member
 
Fabian Braennstroem
Join Date: Mar 2009
Posts: 407
Rep Power: 19
braennstroem is on a distinguished road
Hi,
you should take a look at this http://code.google.com/p/firefoam-dev/
and I would recommend gmsh or snappyHexMesh in combination with blender...

Fabian
braennstroem is offline   Reply With Quote

Old   October 5, 2009, 08:35
Default
  #3
Member
 
Dennis Rown
Join Date: Oct 2009
Posts: 51
Rep Power: 16
shangzung is on a distinguished road
Hello!

I tried both and i find gmsh really easy to get into, but Blender is kind of hard (although it looks more interesting).

I mentioned that gmsh creates meshes using tetrahedra. I'm desperately searching for an option to create meshes using only hexahedra. Is there a possibility to switch to that?

Greets
Dmitri
shangzung is offline   Reply With Quote

Old   October 5, 2009, 10:40
Default
  #4
Member
 
Dennis Rown
Join Date: Oct 2009
Posts: 51
Rep Power: 16
shangzung is on a distinguished road
Got it! Here's my source-code of the mesh:

// Gmsh project created on Mon Oct 05 14:56:41 2009
Point(1) = {0, 0, 0};
Point(2) = {1, 0, 0};
Point(3) = {1, 1, 0};
Point(4) = {0, 1, 0};
Point(5) = {0, 0, 1};
Point(6) = {1, 0, 1};
Point(7) = {1, 1, 1};
Point(8) = {0, 1, 1};
Line(1) = {5, 8};
Line(2) = {8, 4};
Line(3) = {4, 3};
Line(4) = {3, 2};
Line(5) = {2, 6};
Line(6) = {6, 5};
Line(7) = {5, 1};
Line(8) = {1, 4};
Line(9) = {1, 2};
Line(10) = {6, 7};
Line(11) = {7, 8};
Line(12) = {7, 3};
Line Loop(13) = {11, -1, -6, 10};
Plane Surface(14) = {13};
Line Loop(15) = {7, 8, -2, -1};
Plane Surface(16) = {15};
Line Loop(17) = {8, 3, 4, -9};
Plane Surface(18) = {17};
Line Loop(19) = {5, 10, 12, 4};
Plane Surface(20) = {19};
Line Loop(21) = {12, -3, -2, -11};
Plane Surface(22) = {21};
Line Loop(23) = {7, 9, 5, 6};
Plane Surface(24) = {23};
Surface Loop(25) = {14, 22, 20, 24, 16, 18};
Volume(26) = {25};
Transfinite Line {1} = 3 Using Bump 1;
Transfinite Line {2} = 3 Using Bump 1;
Transfinite Line {3} = 3 Using Bump 1;
Transfinite Line {4} = 3 Using Bump 1;
Transfinite Line {5} = 3 Using Bump 1;
Transfinite Line {6} = 3 Using Bump 1;
Transfinite Line {7} = 3 Using Bump 1;
Transfinite Line {8} = 3 Using Bump 1;
Transfinite Line {9} = 3 Using Bump 1;
Transfinite Line {10} = 3 Using Bump 1;
Transfinite Line {11} = 3 Using Bump 1;
Transfinite Line {12} = 3 Using Bump 1;
Transfinite Surface {14};
Recombine Surface{14};
Transfinite Surface {16};
Recombine Surface{16};
Transfinite Surface {18};
Recombine Surface{18};
Transfinite Surface {20};
Recombine Surface{20};
Transfinite Surface {22};
Recombine Surface{22};
Transfinite Surface {24};
Recombine Surface{24};
Transfinite Volume{26} = {1, 2, 3, 4, 5, 6, 7, 8};
shangzung is offline   Reply With Quote

Old   October 14, 2009, 16:51
Default
  #5
New Member
 
Zhibin Chen
Join Date: Oct 2009
Posts: 2
Rep Power: 0
Zhibin is on a distinguished road
I think we are in the same river. hehe.
Zhibin is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Commercial meshers] Fluent3DMeshToFoam simvun OpenFOAM Meshing & Mesh Conversion 50 January 19, 2020 16:33
RAM and Swap Space and HD space Anindya Siemens 2 May 25, 2016 22:40
How to model the NR eqns in a domain with empty space Vasilis Main CFD Forum 1 April 14, 2009 05:35
Problems with Meshing: Collapsed Cells Emmanuel Resch Siemens 1 July 30, 2007 04:02
Fatal error error writing to tmp No space left on device maka OpenFOAM Installation 2 April 3, 2006 09:48


All times are GMT -4. The time now is 19:45.