CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Meshing & Mesh Conversion (https://www.cfd-online.com/Forums/openfoam-meshing/)
-   -   [blockMesh] what is wrong with this code? (https://www.cfd-online.com/Forums/openfoam-meshing/61815-what-wrong-code.html)

amanda October 4, 2007 17:43

what is wrong with this code?
 
Could someone tell me what is wrong with the code?
the geometry is a cone connect with a cylinder.
thanks
/*---------------------------------------------------------------------------*\
| ========= | |
| \ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \ / O peration | Version: 1.3 |
| \ / A nd | Web: http://www.openfoam.org |
| \/ M anipulation | |
\*---------------------------------------------------------------------------*/

// FoamX Case Dictionary.

FoamFile
{
version 2.0;
format ascii;

root "/usagers/xichec/OpenFOAM/xichec-1.3/run/tutorials/simpleFoam";
case "cone";
instance "constant/polyMesh";
local "";

class dictionary;
object blockMeshDict;
}

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

arguments "/usagers/xichec/OpenFOAM/xichec-1.3/run/tutorials/simpleFoam/cone" off;

convertToMeters 1;

vertices
(
(0 -0.5 0)
(-0.5 0 0)
(0 0.5 0)
(0.5 0 0)
(0 1 2.3523)
(-1 0 2.3523)
(0 1 2.3523)
(1 0 2.3523)
(0 1 5.35)
(-1 0 5.35)
(0 1 5.35)
(1 0 5.35)
);

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

edges
(
arc 0 1 (-0.3535 -0.3535 0)
arc 1 2 (-0.3535 0.3535 0)
arc 2 3 (0.3535 0.3535 0)
arc 3 0 (0.3535 -0.3535 0)
arc 4 5 (-0.7071 -0.7071 2.3523)
arc 5 6 (-0.7071 0.7071 2.3523)
arc 6 7 (0.7071 0.7071 2.3523)
arc 7 4 (0.7071 -0.7071 2.3523)
arc 8 9 (-0.7071 -0.7071 5.35)
arc 9 10 (-0.7071 0.7071 5.35)
arc 10 11 (0.7071 0.7071 5.35)
arc 11 8 (0.7071 -0.7071 5.35)
);

patches
(
inlet
(
(0 1 2 3)
)
outlet
(
(8 9 10 11)
)
walls
(
(3 7 6 2)
(2 6 5 1)
(1 5 4 0)
(0 4 7 3)
(4 5 9 8)
(5 6 10 9)
(6 7 11 10)
(7 4 8 11)
)
);

mergePatchPairs
(
);


// ************************************************** *********************** //


All times are GMT -4. The time now is 03:33.