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

[blockMesh] A simple problem about blockMesh

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread 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: 838
Rep Power: 17
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,912
Rep Power: 36
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 Passalacqua

GeekoCFD - A free distribution based on openSUSE 64 bit with CFD tools, including OpenFOAM. Available as in both physical and virtual formats (current status: http://albertopassalacqua.com/?p=1541)
OpenQBMM - An open-source implementation of quadrature-based moment methods.

To obtain more accurate answers, please specify the version of OpenFOAM you are using.
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: 838
Rep Power: 17
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


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
Problem with FsiFOAM simulation of beams (2-4 beams) in a steady simple shear flow Aliiiii OpenFOAM Running, Solving & CFD 1 February 27, 2019 12:26
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 01:27.