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

[blockMesh] what is wrong with this code?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 4, 2007, 17:43
Default what is wrong with this code?
  #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


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
Second equation uses wrong state variables boundary condition Fabian_W OpenFOAM Running, Solving & CFD 2 January 23, 2013 04:00
solidParticle class. Wrong code shchepan OpenFOAM 2 May 27, 2011 02:23
Design Integration with CFD? John C. Chien Main CFD Forum 19 May 17, 2001 15:56
What is the Better Way to Do CFD? John C. Chien Main CFD Forum 54 April 23, 2001 08:10
public CFD Code development Heinz Wilkening Main CFD Forum 38 March 5, 1999 11:44


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