CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Meshing & Mesh Conversion (https://www.cfd-online.com/Forums/openfoam-meshing/)
-   -   [blockMesh] Mesh containing 9 blocks Whats wrong (https://www.cfd-online.com/Forums/openfoam-meshing/61790-mesh-containing-9-blocks-whats-wrong.html)

sega May 10, 2008 09:05

Mesh containing 9 blocks Whats wrong
 
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?

http://www.cfd-online.com/OpenFOAM_D...hment_icon.gif 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:http://www.cfd-online.com/OpenFOAM_D...part/proud.gifstream&) 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)

hjasak May 10, 2008 10:48

Hi Niels, I wish I could gi
 
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

sega May 10, 2008 10:54

Unbelievable! Than you very v
 
Unbelievable!
Than you very very much!!!

ngj May 10, 2008 15:48

Hi Hrv Thanks for the ackno
 
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 Copenhagenhttp://www.cfd-online.com/OpenFOAM_D...part/happy.gif

/ Niels

benru May 12, 2008 09:34

Good day, It a first big ca
 
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 May 12, 2008 09:36

Good day, It a first big ca
 
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 May 12, 2008 09:37

Good day, It a first big ca
 
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 May 12, 2008 09:40

Good day, It a first big ca
 
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 May 12, 2008 09:42

Good day, It a first big ca
 
Good day,

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

http://www.cfd-online.com/OpenFOAM_D...hment_icon.gif 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 May 12, 2008 09:45

Sorry for mistakes with file u
 
Sorry for mistakes with file upload, and ask moderator to erase wrong posts.

with best regards
ruben

sega May 12, 2008 10:31

Hm, I'm a beginner too, so I'm
 
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?

benru May 13, 2008 03:01

I have a box (a number of boxe
 
I have a box (a number of boxes) with 2 pipes.
When I generate mesh for single pipe (only for it) using
http://www.cfd-online.com/OpenFOAM_D...hment_icon.gif 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.

mgz1985 July 24, 2008 08:02

what is the patch for. can ne1
 
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 July 26, 2008 05:56

how do we number neighors and
 
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

ngj July 26, 2008 07:49

Hi Mayank You should look i
 
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


All times are GMT -4. The time now is 15:11.