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

Mesh containing 9 blocks Whats wrong

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

Reply
 
LinkBack Thread Tools Display Modes
Old   May 10, 2008, 09:05
Default Hello World. I'm trying to
  #1
Senior Member
 
sega's Avatar
 
Sebastian Gatzka
Join Date: Mar 2009
Location: Frankfurt, Germany
Posts: 729
Rep Power: 11
sega is on a distinguished road
Hello World.

I'm trying to set up a mesh with 9 blocks, which are connnected and form a square.

When running blockMesh I get this message about neighbour faces.

Does anybody have an idea whats wrong with the mesh?

blockMeshDict

Exec : blockMesh . .
Date : May 10 2008
Time : 14:52:31
Host : M1530
PID : 6000
Root : /home/sega/OpenFOAM/sega-1.4.1/run/surfaceTension
Case : .
Nprocs : 1
Create time


Reading block mesh description dictionary

Creating block mesh

Creating blockCorners

Creating curved edges

Creating blocks

Creating patches

Creating block mesh topology

Default patch type set to empty


--> FOAM FATAL ERROR : face 2 in patch 0 does not have neighbour cell face: 4(24 28 12 8)#0 Foam::error::printStack(Foam:stream&) in "/home/sega/OpenFOAM/OpenFOAM-1.4.1/lib/linuxGccDPOpt/libOpenFOAM.so"
#1 Foam::error::abort() in "/home/sega/OpenFOAM/OpenFOAM-1.4.1/lib/linuxGccDPOpt/libOpenFOAM.so"
#2 Foam::polyMesh::facePatchFaceCells(Foam::List<foam ::face> const&, Foam::List<foam::list<int> > const&, Foam::List<foam::list<foam::face> > const&, int) const in "/home/sega/OpenFOAM/OpenFOAM-1.4.1/lib/linuxGccDPOpt/libOpenFOAM.so"
#3 Foam::polyMesh::polyMesh(Foam::IOobject const&, Foam::Field<foam::vector<double> > const&, Foam::List<foam::cellshape> const&, Foam::List<foam::list<foam::face> > const&, Foam::List<foam::word> const&, Foam::List<foam::word> const&, Foam::word const&, Foam::List<foam::word> const&, bool) in "/home/sega/OpenFOAM/OpenFOAM-1.4.1/lib/linuxGccDPOpt/libOpenFOAM.so"
#4 Foam::blockMesh::createTopology(Foam::IOdictionary &) in "/home/sega/OpenFOAM/OpenFOAM-1.4.1/applications/bin/linuxGccDPOpt/blockMesh"
#5 Foam::blockMesh::blockMesh(Foam::IOdictionary&) in "/home/sega/OpenFOAM/OpenFOAM-1.4.1/applications/bin/linuxGccDPOpt/blockMesh"
#6 main in "/home/sega/OpenFOAM/OpenFOAM-1.4.1/applications/bin/linuxGccDPOpt/blockMesh"
#7 __libc_start_main in "/lib/tls/i686/cmov/libc.so.6"
#8 Foam::regIOobject::readIfModified() in "/home/sega/OpenFOAM/OpenFOAM-1.4.1/applications/bin/linuxGccDPOpt/blockMesh"


From function polyMesh::facePatchFaceCells(const faceList& patchFaces,const labelListList& pointCells,const faceListList& cellsFaceShapes,const label patchID)
in file meshes/polyMesh/polyMeshFromShapeMesh.C at line 127.

FOAM aborting

Aborted (core dumped)
__________________
Schrödingers wife: "What did you do to the cat? It's half dead!"
sega is offline   Reply With Quote

Old   May 10, 2008, 10:48
Default Hi Niels, I wish I could gi
  #2
Senior Member
 
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,763
Rep Power: 21
hjasak will become famous soon enough
Hi Niels,

I wish I could give you a Gold Star for this kind of a help to a new user. Thank you - your kindness is appreciated.

Hrv
__________________
Hrvoje Jasak
Providing commercial FOAM/OpenFOAM and CFD Consulting: http://wikki.co.uk
hjasak is offline   Reply With Quote

Old   May 10, 2008, 10:54
Default Unbelievable! Than you very v
  #3
Senior Member
 
sega's Avatar
 
Sebastian Gatzka
Join Date: Mar 2009
Location: Frankfurt, Germany
Posts: 729
Rep Power: 11
sega is on a distinguished road
Unbelievable!
Than you very very much!!!
__________________
Schrödingers wife: "What did you do to the cat? It's half dead!"
sega is offline   Reply With Quote

Old   May 10, 2008, 15:48
Default Hi Hrv Thanks for the ackno
  #4
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Deltares, Delft, The Netherlands
Posts: 1,619
Rep Power: 25
ngj will become famous soon enoughngj will become famous soon enough
Hi Hrv

Thanks for the acknowledgment. If you really insist on the Golden Star you should be welcome to bring it to Milan in July;)

@Sebastian: Your welcome, actually its my pleasure, because the thing you are doing is actually quite interesting.

Have a nice weekend both of you, I will enjoy the 25 easy breezy degrees here in Copenhagen

/ Niels
__________________
Please note that I do not use the Friend-feature, so do not be offended, if I do not accept a request.
ngj is offline   Reply With Quote

Old   May 12, 2008, 09:34
Default Good day, It a first big ca
  #5
Member
 
Ruben I. Mukhamadeev
Join Date: Mar 2009
Location: Obninsk, Kaluga reg., Russian Federation
Posts: 69
Rep Power: 8
benru is on a distinguished road
Good day,

It a first big case, prepared me with blockMesh.
So the same question about blockMeshDict sintax:

/attach

at patches section blockmesh sees a wrong type '(' instead of 'int', but in another cases it doesn't see any mistakes. Could anybody help to explain, what's wrong here ?

With a best regards
ruben
benru is offline   Reply With Quote

Old   May 12, 2008, 09:36
Default Good day, It a first big ca
  #6
Member
 
Ruben I. Mukhamadeev
Join Date: Mar 2009
Location: Obninsk, Kaluga reg., Russian Federation
Posts: 69
Rep Power: 8
benru is on a distinguished road
Good day,

It a first big case, prepared me with blockMesh.
So the same question about blockMeshDict sintax:

/attach /home/rmukhamadeev/OpenFOAM/rmukhamadeev-1.4.1/run/tutorials/rhoTurbFoam/mars-b/ constant/polyMesh/blockMeshDict

at patches section blockmesh sees a wrong type '(' instead of 'int', but in another cases it doesn't see any mistakes. Could anybody help to explain, what's wrong here ?

With a best regards
ruben
benru is offline   Reply With Quote

Old   May 12, 2008, 09:37
Default Good day, It a first big ca
  #7
Member
 
Ruben I. Mukhamadeev
Join Date: Mar 2009
Location: Obninsk, Kaluga reg., Russian Federation
Posts: 69
Rep Power: 8
benru is on a distinguished road
Good day,

It a first big case, prepared me with blockMesh.
So the same question about blockMeshDict sintax:

/attach {/home/rmukhamadeev/OpenFOAM/rmukhamadeev-1.4.1/run/tutorials/rhoTurbFoam/mars-b / constant/polyMesh/blockMeshDict}

at patches section blockmesh sees a wrong type '(' instead of 'int', but in another cases it doesn't see any mistakes. Could anybody help to explain, what's wrong here ?

With a best regards
ruben
benru is offline   Reply With Quote

Old   May 12, 2008, 09:40
Default Good day, It a first big ca
  #8
Member
 
Ruben I. Mukhamadeev
Join Date: Mar 2009
Location: Obninsk, Kaluga reg., Russian Federation
Posts: 69
Rep Power: 8
benru is on a distinguished road
Good day,

It a first big case, prepared me with blockMesh.
So the same question about blockMeshDict sintax:

\attach {/home/rmukhamadeev/OpenFOAM/rmukhamadeev-1.4.1/run/tutorials/rhoTurbFoam/mars-b / constant/polyMesh/blockMeshDict}

at patches section blockmesh sees a wrong type '(' instead of 'int', but in another cases it doesn't see any mistakes. Could anybody help to explain, what's wrong here ?

With a best regards
ruben
benru is offline   Reply With Quote

Old   May 12, 2008, 09:42
Default Good day, It a first big ca
  #9
Member
 
Ruben I. Mukhamadeev
Join Date: Mar 2009
Location: Obninsk, Kaluga reg., Russian Federation
Posts: 69
Rep Power: 8
benru is on a distinguished road
Good day,

It a first big case, prepared me with blockMesh.
So the same question about blockMeshDict sintax:

blockMeshDict

at patches section blockmesh sees a wrong type '(' instead of 'int', but in another cases it doesn't see any mistakes. Could anybody help to explain, what's wrong here ?

With a best regards
ruben
benru is offline   Reply With Quote

Old   May 12, 2008, 09:45
Default Sorry for mistakes with file u
  #10
Member
 
Ruben I. Mukhamadeev
Join Date: Mar 2009
Location: Obninsk, Kaluga reg., Russian Federation
Posts: 69
Rep Power: 8
benru is on a distinguished road
Sorry for mistakes with file upload, and ask moderator to erase wrong posts.

with best regards
ruben
benru is offline   Reply With Quote

Old   May 12, 2008, 10:31
Default Hm, I'm a beginner too, so I'm
  #11
Senior Member
 
sega's Avatar
 
Sebastian Gatzka
Join Date: Mar 2009
Location: Frankfurt, Germany
Posts: 729
Rep Power: 11
sega is on a distinguished road
Hm, I'm a beginner too, so I'm not familiar with all the stuff you can do with OpenFOAM, but that does look strange:

patches
(
patch inlet
(
(2 4( 99 102 101 100))

I thought that patches are created of 4 points, which are located in two brackets ( ).
So here we have 4 brackets and 6 int(eger) numbers.

So blockMesh sees a "(" instead of an integer number after the "4" ...

Or is that some special command for patches?
__________________
Schrödingers wife: "What did you do to the cat? It's half dead!"
sega is offline   Reply With Quote

Old   May 13, 2008, 03:01
Default I have a box (a number of boxe
  #12
Member
 
Ruben I. Mukhamadeev
Join Date: Mar 2009
Location: Obninsk, Kaluga reg., Russian Federation
Posts: 69
Rep Power: 8
benru is on a distinguished road
I have a box (a number of boxes) with 2 pipes.
When I generate mesh for single pipe (only for it) using
cylinderMesh.m4
I do not have any problem, but when i try to use this information for generating more complex mesh (pipe + box + pipe), blockMesh write :

Exec : blockMesh . mars-b
Date : May 13 2008
Time : 06:55:38
Host : r117-1
PID : 4148
Root : /home/ben/OpenFOAM/ben-1.4.1/run/tutorials/rhoTurbFoam
Case : mars-b
Nprocs : 1
Create time


Reading block mesh description dictionary
Creating block mesh
Creating blockCorners
Creating curved edges
Creating blocks
Creating patches


--> FOAM FATAL IO ERROR : wrong token type - expected int found on line 223 the punctuation token '('

file: /home/rmukhamadeev/OpenFOAM/rmukhamadeev-1.4.1/run/tutorials/rhoTurbFoam/mars-b/constant/polyMesh/blockMeshDict::patches at line 223.

From function operator>>(Istream&, int&)
in file primitives/int/intIO.C at line 74.

FOAM exiting

So I don't understand what's wrong.
benru is offline   Reply With Quote

Old   July 24, 2008, 08:02
Default what is the patch for. can ne1
  #13
Senior Member
 
mayank gupta
Join Date: Mar 2009
Posts: 110
Rep Power: 8
mgz1985 is on a distinguished road
what is the patch for. can ne1 xplain. Also, i m completely new to openfoam. I m trying to write a mesh.

the first thing i wish i knew is what are so many files in the polymesh directory for. because i understand points are vertices, neighbours are adjacent nodes and faces are built by patching the nodes in a proper sequence. but what is boundary and patches. I cant understand. And especially moving boundary? should that not be dynamic boundary? can ne1 help?

please.
mgz1985 is offline   Reply With Quote

Old   July 26, 2008, 05:56
Default how do we number neighors and
  #14
Senior Member
 
mayank gupta
Join Date: Mar 2009
Posts: 110
Rep Power: 8
mgz1985 is on a distinguished road
how do we number neighors and cells in polyMesh directory

can ne1 xplain with n xample. I read both the user and programmers guide but to no avail and even this forum has left me confused

http://www.cfd-online.com/OpenFOAM_D...es/1/3958.html

i have a simple block with 18 vertices and 16 faces with one internal faces can neone help
mgz1985 is offline   Reply With Quote

Old   July 26, 2008, 07:49
Default Hi Mayank You should look i
  #15
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Deltares, Delft, The Netherlands
Posts: 1,619
Rep Power: 25
ngj will become famous soon enoughngj will become famous soon enough
Hi Mayank

You should look into the tutorials. Start off with the cavity-case and see how the mesh is generated using blockMesh.
The boundary file is also generated by blockMesh and contains information on the location of the different boundaries in the mesh based on face-ID.
As a start you do not need to know how the neighbour and owner is numbered. When you have got a feel of running OF you will be prepared to go farther.
In my case I realized the structure of the polyMesh files (as generated by blockMesh) by looking at a 3x3x1 cavity mesh.

Best regards,

Niels
__________________
Please note that I do not use the Friend-feature, so do not be offended, if I do not accept a request.
ngj 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
Mesh generation for wedge shaped blocks tdzurny OpenFOAM Native Meshers: blockMesh 0 December 19, 2007 20:43
Whats wrong with the fluent webinars? Kelly FLUENT 4 December 28, 2006 08:27
Whats the best and easier mesh generator software? Pedro Clode FLUENT 4 November 29, 2006 03:11
What is wrong with too fine mesh? Steven CFX 12 April 3, 2006 09:45
Connecting blocks with multi-blocks methods Sebastien Perron Main CFD Forum 3 March 7, 2001 17:55


All times are GMT -4. The time now is 16:24.