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

A simple problem about blockMesh

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

Reply
 
LinkBack Thread Tools Display Modes
Old   September 29, 2012, 08:12
Exclamation A simple problem about blockMesh
  #1
Senior Member
 
Dongyue Li
Join Date: Jun 2012
Location: Beijing,China
Posts: 502
Rep Power: 6
sharonyue is on a distinguished road
hi guys:

This is my blockmeshdict. its very sparse. but when Im revising the code in red below. There is an error.

anyone can help me ? thx very much.







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

convertToMeters 0.1;

vertices
(
(0 0 0)
(0.4 0 0)
(0.5 0 0)
(1 0 0)
(0 1 0)
(0.4 1 0)
(0.5 1 0)
(1 1 0)
(0.4 2 0)
(0.5 2 0)
(0 0 0.1)
(0.4 0 0.1)
(0.5 0 0.1)
(1 0 0.1)
(0 1 0.1)
(0.4 1 0.1)
(0.5 1 0.1)
(1 1 0.1)
(0.4 2 0.1)
(0.5 2 0.1)
);

blocks
(
hex (0 1 5 4 10 11 15 14) (10 20 1) simpleGrading (1 1 1)// why I can not revise this code in red?
hex (1 2 6 5 11 12 16 15) (5 20 1) simpleGrading (1 1 1)
hex (2 3 7 6 12 13 17 16) (10 20 1)simpleGrading (1 1 1)
hex (5 6 9 8 15 16 19 18) (5 20 1)simpleGrading (1 1 1)
);

edges
(
);

boundary
(
inlet
{
type patch;
faces
(
(8 18 19 9)
);
}
leftWall
{
type wall;
faces
(
(0 4 14 10)

);
}
rightWall
{
type wall;
faces
(
(3 13 17 7)

);
}
lowerWall
{
type wall;
faces
(
(0 10 11 1)
(1 11 12 2)
(2 12 13 3)

);
}
upWall
{
type wall;
faces
(
(4 14 15 5)
(6 16 17 7)
);
}
upleftWall
{
type wall;
faces
(
(5 15 18 8)
);
}
uprightWall
{
type wall;
faces
(
(6 16 19 9)
);
}

);

mergePatchPairs
(
);

//
sharonyue is offline   Reply With Quote

Old   September 30, 2012, 03:10
Default
  #2
Senior Member
 
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,880
Rep Power: 25
alberto will become famous soon enoughalberto will become famous soon enough
The part in red is the number of nodes in each direction for the corresponding block. Since blocks are connected, the numbers have to be consistent. Most likely you are trying to specify an inconsistent discretization (different number of nodes on the same edge shared by two blocks, o opposite edges, for example).

Best,
__________________
Alberto

GeekoCFD - A free distribution based on openSUSE 64 bit with CFD tools, including OpenFOAM. Available as live DVD/USB, hard drive image and virtual image.
GeekoCFD 32bit - The 32bit edition of GeekoCFD.
GeekoCFD text mode - A smaller version of GeekoCFD, text-mode only, with only OpenFOAM. Available in a variety of virtual formats.
alberto is offline   Reply With Quote

Old   September 30, 2012, 20:34
Default
  #3
Senior Member
 
Dongyue Li
Join Date: Jun 2012
Location: Beijing,China
Posts: 502
Rep Power: 6
sharonyue is on a distinguished road
Quote:
Originally Posted by alberto View Post
The part in red is the number of nodes in each direction for the corresponding block. Since blocks are connected, the numbers have to be consistent. Most likely you are trying to specify an inconsistent discretization (different number of nodes on the same edge shared by two blocks, o opposite edges, for example).

Best,
woo!!!!!!!!!!!!!!!!!!it works!!! thx very much!!
sharonyue 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


Similar Threads
Thread Thread Starter Forum Replies Last Post
General meshing-question for simple (thermal) problem suitup OpenFOAM Meshing Format & General Technical 2 July 26, 2012 19:45
Simple melting problem wawa FLUENT 0 January 28, 2011 12:19
Floating point error in BlockMesh for really simple mesh CoenW OpenFOAM Bugs 3 July 22, 2009 06:33
Simple Meshing Problem with Gambit Mario FLUENT 4 April 18, 2003 09:52
? Simple CFD problem Davy Main CFD Forum 0 August 21, 1998 06:19


All times are GMT -4. The time now is 00:12.