CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Pre-Processing (http://www.cfd-online.com/Forums/openfoam-pre-processing/)
-   -   BlockMesh trouble (http://www.cfd-online.com/Forums/openfoam-pre-processing/62227-blockmesh-trouble.html)

r2d2 January 16, 2006 10:26

Hi, I am trying to build a m
 
Hi,
I am trying to build a mesh with blockMesh uitlity and I experience problems, which of course I cannot understand. Can anyone give me some help. The file reads:

convertToMeters 0.001;

vertices
(

//front face
(10.65506 0 0 ) //0
(36.3275 0 0 ) //1
(62.000 0 0 ) //2
(0.6049989 0 149.) //3
(9.2265 0 149.) //4
(17.848 0 149.) //5


//back face
(10.65506 -1 149.) //6
(36.3275 -1 149.) //7
(62.000 -1 149.) //8
(0.6049989 -1 149.) //9
(9.2265 -1 149.) //10
(17.848 -1 149.) //11



);

blocks
(
hex (0 1 7 6 3 4 10 9)(5 1 10) simpleGrading (1 1 1)
hex (1 2 8 7 4 5 11 10)(5 1 10) simpleGrading (1 1 1)

);

edges
(

// back face curved borders
simpleSpline 6 9 (
(10.51662441 -1 50 )
(8.090720476 -1 100 )
(3.585568007 -1 125 )
)

simpleSpline 7 10 (
(35.0658 -1 50 )
(20.8664 -1 100)
(12.2133 -1 125)
)

simpleSpline 8 11 (
(59.615 -1 50 )
(33.642 -1 100)
(20.841 -1 125 )
)

// fron face curved borders
simpleSpline 0 3 (
(10.51662441 0 50)
(8.090720476 0 100)
(3.585568007 0 125 )
)

simpleSpline 1 4 (
(35.0658 0 50 )
(20.8664 0 100 )
(12.2133 0 125 )
)

simpleSpline 2 5 (
(59.615 0 50 )
(33.642 0 100 )
(20.841 0 125)
)

);

patches
(

patch inlet
(
(0 6 7 1)
(1 7 8 2)
)

patch outlet
(
(3 4 10 9)
(4 5 11 10)
)

wall upperWall
(
(2 8 11 5)
)

wall lowerWall
(
(0 3 9 6)
)


empty frontAndBack
(
(0 1 4 3)
(1 2 5 4)
(6 7 10 9)
(7 8 11 10)
)

);

mergePatchPairs
(
);

Cheers,
Radu

hjasak January 16, 2006 10:29

Can you tell us what the probl
 
Can you tell us what the problem is and what message you get form the code?

Hrv

hjasak January 16, 2006 10:51

You have probably messed up so
 
You have probably messed up some part of spline definition.

Try commenting out the edges part of the blockMeshDict and introduce edges one at a time to see what effect they get - it will become obvious which one's wrong.

Hrv


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