CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Native Meshers: blockMesh

Help please

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

Reply
 
LinkBack Thread Tools Display Modes
Old   October 4, 2007, 17:43
Default Could someone tell me what is
  #1
New Member
 
xiao yang che
Join Date: Mar 2009
Posts: 1
Rep Power: 0
amanda is on a distinguished road
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
(
);


// ************************************************** *********************** //
amanda is offline   Reply With Quote

Reply

Thread Tools
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 On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 21:46.