CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM (http://www.cfd-online.com/Forums/openfoam/)
-   -   Creating obstacles in the 3D-space (http://www.cfd-online.com/Forums/openfoam/68780-creating-obstacles-3d-space.html)

shangzung October 1, 2009 12:01

Creating obstacles in the 3D-space
 
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

braennstroem October 4, 2009 13:46

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

shangzung October 5, 2009 07:35

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 October 5, 2009 09:40

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};

Zhibin October 14, 2009 15:51

I think we are in the same river. hehe.


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