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

[blockMesh] FOAM FATAL ERROR: face 0 in patch 0 does not have neighbour cell face

Register Blogs Community New Posts Updated Threads Search

Like Tree5Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 11, 2015, 12:51
Post face 0 in patch 4 does not have neighbour cell face: 4(26 27 28 29)
  #21
Member
 
AJAY BHANDARI
Join Date: Jul 2015
Location: INDIA
Posts: 57
Rep Power: 10
AJAY BHANDARI is on a distinguished road
Hi all,
I am new to openFoam. I am having the same problem as described above in threads. below is my blockMeshDict file. Basically my geometry is cuboid of dimension 20*10*1 (all dimensions are in mm). Within it is enclosed two concentric circles of radius 4mm and 2mm. Basically the concentric circles are blocked according to hagen poiusselii flow. the circles are at the centre of cuboid and origin starts from there.

convertToMeters 0.001;

vertices
(
(0 0 0) //0
(0.5 0.5 0) //1
(-0.5 0.5 0) //2
(-0.5 -0.5 0) //3
(0.5 -0.5 0) //4
(1.414 1.414 0) //5
(-1.414 1.414 0) //6
(-1.414 -1.414 0) //7
(1.414 -1.414 0) //8
(2.828 2.828 0) //9
(-2.828 2.828 0) //10
(-2.828 -2.828 0) //11
(2.828 -2.828 0) //12
(0.5 0.5 1) //13
(-0.5 0.5 1) //14
(-0.5 -0.5 1) //15
(0.5 -0.5 1) //16
(1.414 1.414 1) //17
(-1.414 1.414 1) //18
(-1.414 -1.414 1) //19
(1.414 -1.414 1) //20
(2.828 2.828 1) //21
(-2.828 2.828 1) //22
(-2.828 -2.828 1) //23
(2.828 -2.828 1) //24
(0 0 1) //25
(-10 -5 0) //26
(10 -5 0) //27
(10 5 0) //28
(-10 5 0) //29
(-10 -5 1) //30
(10 -5 1) //31
(10 5 1) //32
(-10 5 1) //33
);

blocks
(
hex (1 2 3 4 13 14 15 16) porosity (15 10 1) simpleGrading (0.104 0.077 1)
hex (1 5 6 2 13 17 18 14) porosity14 (15 10 1) simpleGrading (0.104 0.077 1)
hex (2 6 7 3 14 18 19 15) porosity15 (15 10 1) simpleGrading (0.104 0.077 1)
hex (3 7 8 4 15 19 20 16) porosity16 (15 10 1) simpleGrading (0.104 0.077 1)
hex (4 8 5 1 16 20 17 13) porosity17 (15 10 1) simpleGrading (0.104 0.077 1)
hex (5 9 10 6 17 21 22 18) porosity18 (15 10 1) simpleGrading (0.104 0.077 1)
hex (6 10 11 7 18 22 23 19) porosity19 (15 10 1) simpleGrading (0.104 0.077 1)
hex (7 11 12 8 19 23 24 20) porosity20 (15 10 1) simpleGrading (0.104 0.077 1)
hex (12 9 5 8 24 21 17 20) porosity21 (15 10 1) simpleGrading (0.104 0.077 1)
hex (9 28 29 10 21 32 33 22) porosity22 (15 10 1) simpleGrading (0.104 0.077 1)
hex (10 29 26 11 22 33 30 23) porosity23 (15 10 1) simpleGrading (0.104 0.077 1)
hex (11 26 27 12 23 30 31 24) porosity24 (15 10 1) simpleGrading (0.104 0.077 1)
hex (12 27 28 9 24 31 32 21) porosity25 (15 10 1) simpleGrading (0.104 0.077 1)
);

edges
(
arc 5 6 (0 2 0)
arc 6 7 (-2 0 0)
arc 7 8 (0 -2 0)
arc 8 5 (2 0 0)
arc 9 10 (0 4 0)
arc 10 11 (-4 0 0)
arc 11 12 (0 -4 0)
arc 12 9 (4 0 0)
arc 17 18 (0 2 1)
arc 18 19 (-2 0 1)
arc 19 20 (0 -2 1)
arc 20 17 (2 0 1)
arc 21 22 (0 4 1)
arc 22 23 (-4 0 1)
arc 23 24 (0 -4 1)
arc 24 21 (4 0 1)
);

boundary
(
inlet
{
type inlet;
faces
(
(26 29 33 30)
);
}
outlet
{
type outlet;
faces
(
(27 31 32 28)
);
}

top
{
type wall;
faces
(
(29 28 32 33)
);
}

bottom
{
type wall;
faces
(
(26 30 31 27)
);
}

frontAndBack
{
type empty;
faces
(
(26 27 28 29)
(31 30 33 32)
);
}
);

mergePatchPairs
(
);


Plz suggest me where is the error???
AJAY BHANDARI is offline   Reply With Quote

Old   July 11, 2015, 17:49
Default
  #22
Member
 
Alexander Bartel
Join Date: Feb 2015
Location: Germany
Posts: 97
Rep Power: 11
alexB is on a distinguished road
Hi Ajay,

could you draw a sketch of your geometry and post your log with the error message?

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

Old   July 12, 2015, 01:26
Post face 0 in patch 4 does not have neighbouring face (26 27 28 29
  #23
Member
 
AJAY BHANDARI
Join Date: Jul 2015
Location: INDIA
Posts: 57
Rep Power: 10
AJAY BHANDARI is on a distinguished road

Hi alex,
First of all thanks for your reply. i have drawn a rough sketch of my geometry with dimensions. I am attaching it with this. Its basically a cuboid of dimension 20mm*10mm*1mm. with two concentric circles within it one of radius 2mm and other of radius 4mm. I have kept front and back faces empty because i want a 2D simulation. The circles back face and front face images are also attached for clearity. Basically it will become annular cylinder when viewed in 3D. I have already posted my BlockMeshDict file. Its showing error that face 0 in patch 4 does not have neighbouring face (26 27 28 29). Please suggest now. Any more information you want about the geometry please tell.
Attached Images
File Type: jpg 20150712_103942.jpg (22.8 KB, 18 views)
File Type: jpg 20150712_104001.jpg (22.4 KB, 11 views)
AJAY BHANDARI is offline   Reply With Quote

Old   July 12, 2015, 01:37
Post How to assign different transport properties for different zones in porousSimpleFoam
  #24
Member
 
AJAY BHANDARI
Join Date: Jul 2015
Location: INDIA
Posts: 57
Rep Power: 10
AJAY BHANDARI is on a distinguished road
Hi Alex,

One more thing i want to tell is that basically i am simulating a fluid flow through a body tissue which is basically a porous media. the two concentric circles are basically tumor and necrotic core which are different regions and rest all space that is cuboid excluding the two circles is normal tissue. all the three regions have same porosity but different transport properties. I am using porousSimpleFoam for this. In that I have changed the Peqn.H file and added some source and sink terms which have lot of constants and all are declared in transport properties. All the three regions which i have described above have different transport properties.
My problem is can u tell me how to assign different transport properties for these three regions which u can see in my figure attached in previous post and where??? Any kind of help will be appreciated..If anything u want to know more about this problem plzz let me know....

Regards
Ajay
AJAY BHANDARI is offline   Reply With Quote

Old   July 12, 2015, 16:04
Default
  #25
Member
 
Alexander Bartel
Join Date: Feb 2015
Location: Germany
Posts: 97
Rep Power: 11
alexB is on a distinguished road
Hi Ajay,

I see one problem...

you have just defined 2 empty faces for frontAndBack, but if you try to set up a two-dimensional every defined block has two empty faces which have to be defined properly.

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

Old   July 13, 2015, 00:53
Post face 0 in patch 4 does not have neighbouring face (26 27 28 29
  #26
Member
 
AJAY BHANDARI
Join Date: Jul 2015
Location: INDIA
Posts: 57
Rep Power: 10
AJAY BHANDARI is on a distinguished road
Hi Alex,
Thanks for your reply again. But i couldn't get that. Where i have to define that block empty faces??? Could you please elaborate???or point out in the BlockMeshDict file.
AJAY BHANDARI is offline   Reply With Quote

Old   July 13, 2015, 09:47
Default
  #27
Senior Member
 
Alex
Join Date: Oct 2013
Posts: 337
Rep Power: 21
zfaraday will become famous soon enough
Quote:
Originally Posted by AJAY BHANDARI View Post
Hi Alex,
Thanks for your reply again. But i couldn't get that. Where i have to define that block empty faces??? Could you please elaborate???or point out in the BlockMeshDict file.
Hi,

you only defined 2 empty faces when you really have 2 empty faces per block created, in your geometry it would be like 26 empty faces I think... I haven't checked the whole blockMeshDict definitiion, but at least this is an important mistake... Correct it and try again!

Best regards,

Alex
__________________
Web site where I present my Master's Thesis: foamingtime.wordpress.com

The case I talk about in this site was solved with chtMultiRegionSimpleFoam solver and involves radiation. Some basic tutorials are also resolved step by step in the web. If you are interested in these matters, you are invited to come in!
zfaraday is offline   Reply With Quote

Old   July 13, 2015, 10:00
Default
  #28
Member
 
Alexander Bartel
Join Date: Feb 2015
Location: Germany
Posts: 97
Rep Power: 11
alexB is on a distinguished road
Code:
blocks
(
     hex (1 2 3 4 13 14 15 16) porosity (15 10 1) simpleGrading (0.104 0.077 1)
     hex (1 5 6 2 13 17 18 14) porosity14 (15 10 1) simpleGrading (0.104 0.077 1)
     hex (2 6 7 3 14 18 19 15) porosity15 (15 10 1) simpleGrading (0.104 0.077 1)
     hex (3 7 8 4 15 19 20 16) porosity16 (15 10 1) simpleGrading (0.104 0.077 1)
     hex (4 8 5 1 16 20 17 13) porosity17 (15 10 1) simpleGrading (0.104 0.077 1)
     hex (5 9 10 6 17 21 22 18) porosity18 (15 10 1) simpleGrading (0.104 0.077 1)
     hex (6 10 11 7 18 22 23 19) porosity19 (15 10 1) simpleGrading (0.104 0.077 1)
     hex (7 11 12 8 19 23 24 20) porosity20 (15 10 1) simpleGrading (0.104 0.077 1)
     hex (12 9 5 8 24 21 17 20) porosity21 (15 10 1) simpleGrading (0.104 0.077 1)
     hex (9 28 29 10 21 32 33 22) porosity22 (15 10 1) simpleGrading (0.104 0.077 1)
     hex (10 29 26 11 22 33 30 23) porosity23 (15 10 1) simpleGrading (0.104 0.077 1)
     hex (11 26 27 12 23 30 31 24) porosity24 (15 10 1) simpleGrading (0.104 0.077 1)
     hex (12 27 28 9 24 31 32 21) porosity25 (15 10 1) simpleGrading (0.104 0.077 1)
);

instead of:
    frontAndBack
    {
        type empty;
        faces
        (
            (26 27 28 29)
            (31 30 33 32)
        );
    }

write: (example for your first block, go on with your other blocks defined under blocks)
    frontAndBack
    {
        type empty;
        faces
        (
            ( 1 2 3 4)   //hex (1 2 3 4 13 14 15 16) porosity (15 10 1) simpleGrading (0.104 0.0771)
            (13 14 15 16)
        );
    }
);
regards
Alex
__________________
Please note that I do not use the Friend-feature, so do not be offended, if I do not accept a request.
alexB is offline   Reply With Quote

Old   July 13, 2015, 11:59
Post face 0 in patch 4 does not have neighbour cell face: 4(26 27 28 29)
  #29
Member
 
AJAY BHANDARI
Join Date: Jul 2015
Location: INDIA
Posts: 57
Rep Power: 10
AJAY BHANDARI is on a distinguished road
Hi alex,

Thanks for your reply. error has been removed. I did exactly as you suggested and created 26 empty faces. But unfortunately one more error is coming now. See

Create time

Creating block mesh from
"/home/ajay/OpenFOAM/ajay-2.4.0/run/tutorials/incompressible/porousSimpleFoam/tumormagdoom/constant/polyMesh/blockMeshDict"
Creating curved edges
Creating topology blocks
Creating topology patches

Creating block mesh topology

Check topology

Basic statistics
Number of internal faces : 24
Number of boundary faces : 30
Number of defined boundary faces : 30
Number of undefined boundary faces : 0
Checking patch -> block consistency

Creating block offsets
Creating merge list

--> FOAM FATAL ERROR:
Inconsistent number of faces between block pair 0 and 1

From function blockMesh::calcMergeInfo()
in file blockMesh/blockMeshMerge.C at line 221.

FOAM exiting.

Plz suggest where is the error now.
AJAY BHANDARI is offline   Reply With Quote

Old   July 13, 2015, 12:40
Post
  #30
Member
 
AJAY BHANDARI
Join Date: Jul 2015
Location: INDIA
Posts: 57
Rep Power: 10
AJAY BHANDARI is on a distinguished road
Hi alex,

Finally its done.. But its not running when my blockMeshDict is this

hex (1 2 3 4 13 14 15 16) porosity (15 10 1) simpleGrading (0.104 0.077 1)
hex (1 5 6 2 13 17 18 14) porosity14 (15 10 1) simpleGrading (0.104 0.077 1)
hex (2 6 7 3 14 18 19 15) porosity15 (15 10 1) simpleGrading (0.104 0.077 1)
hex (3 7 8 4 15 19 20 16) porosity16 (15 10 1) simpleGrading (0.104 0.077 1)
hex (4 8 5 1 16 20 17 13) porosity17 (15 10 1) simpleGrading (0.104 0.077 1)
hex (5 9 10 6 17 21 22 18) porosity18 (15 10 1) simpleGrading (0.104 0.077 1)
hex (6 10 11 7 18 22 23 19) porosity19 (15 10 1) simpleGrading (0.104 0.077 1)
hex (7 11 12 8 19 23 24 20) porosity20 (15 10 1) simpleGrading (0.104 0.077 1)
hex (12 9 5 8 24 21 17 20) porosity21 (15 10 1) simpleGrading (0.104 0.077 1)
hex (9 28 29 10 21 32 33 22) porosity22 (15 10 1) simpleGrading (0.104 0.077 1)
hex (10 29 26 11 22 33 30 23) porosity23 (15 10 1) simpleGrading (0.104 0.077 1)
hex (11 26 27 12 23 30 31 24) porosity24 (15 10 1) simpleGrading (0.104 0.077 1)
hex (12 27 28 9 24 31 32 21) porosity25 (15 10 1) simpleGrading (0.104 0.077 1)


But it runs when i change grading

hex (1 2 3 4 13 14 15 16) porosity (10 10 1) simpleGrading (1 1 1)
hex (1 5 6 2 13 17 18 14) porosity (10 10 1) simpleGrading (1 1 1)
hex (2 6 7 3 14 18 19 15) porosity (10 10 1) simpleGrading (1 1 1)
hex (3 7 8 4 15 19 20 16) porosity (10 10 1) simpleGrading (1 1 1)
hex (4 8 5 1 16 20 17 13) porosity (10 10 1) simpleGrading (1 1 1)
hex (5 9 10 6 17 21 22 18) porosity (10 10 1) simpleGrading (1 1 1)
hex (6 10 11 7 18 22 23 19) porosity (10 10 1) simpleGrading (1 1 1)
hex (7 11 12 8 19 23 24 20) porosity (10 10 1) simpleGrading (1 1 1)
hex (12 9 5 8 24 21 17 20) porosity (10 10 1) simpleGrading (1 1 1)
hex (9 28 29 10 21 32 33 22) porosity (10 10 1) simpleGrading (1 1 1)
hex (10 29 26 11 22 33 30 23) inlet (10 10 1) simpleGrading (1 1 1)
hex (11 26 27 12 23 30 31 24) porosity (10 10 1) simpleGrading (1 1 1)
hex (12 27 28 9 24 31 32 21) outlet (10 10 1) simpleGrading (1 1 1)

But i want former dict file So plz suggest what should i do???
AJAY BHANDARI is offline   Reply With Quote

Old   July 13, 2015, 17:36
Default
  #31
Member
 
Alexander Bartel
Join Date: Feb 2015
Location: Germany
Posts: 97
Rep Power: 11
alexB is on a distinguished road
As written in another thread

Quote:
You have to define your blocks in the correct way.
see http://cfd.direct/openfoam/user-guid...#x25-1420005.3

"Each block has a local coordinate system that must be right-handed. "
If not the volume of the block would be negative. (first problem solved)

next problem would be, that your grading from on block to the other wouldn't fit, because the grading for each block is oriented regarding to this local coordinate system.
__________________
Please note that I do not use the Friend-feature, so do not be offended, if I do not accept a request.
alexB is offline   Reply With Quote

Old   July 14, 2015, 11:38
Post
  #32
Member
 
AJAY BHANDARI
Join Date: Jul 2015
Location: INDIA
Posts: 57
Rep Power: 10
AJAY BHANDARI is on a distinguished road
Hi alex,

Thanks for your reply. I have read the user guide. I tried but failed. Basically I want 192 cells in x direction and 96 cells in y direction with spacing between each cell 0.104*0.104mm. Do i have to divide these cells by the no of blocks in each direction?? Plz suggest...

Regards
AJAY
AJAY BHANDARI is offline   Reply With Quote

Old   July 14, 2015, 16:26
Default
  #33
Member
 
Alexander Bartel
Join Date: Feb 2015
Location: Germany
Posts: 97
Rep Power: 11
alexB is on a distinguished road
Hi Ajay,

I see that I have to explain my last quote.
Quote:
"Each block has a local coordinate system that must be right-handed. "
If not the volume of the block would be negative. (first problem solved)
I took a short look on your dict and the blocks seem to be fine... (no negative volume)

Quote:
next problem would be, that your grading from on block to the other wouldn't fit, because the grading for each block is oriented regarding to this local coordinate system.
I guessed that this will be your prob, so I had underlined it before.

I give you a new quote from the user guide:
Quote:
  • the direction is described by moving from vertex 0 to vertex 1;
  • the direction is described by moving from vertex 1 to vertex 2;
  • vertices 0, 1, 2, 3 define the plane ;
  • vertex 4 is found by moving from vertex 0 in the direction;
While reading this, take a look at the picture in the guide.

For example your first block has the x-direction from point 1 to point 2 .
But your second block has the x-direction from point 1 to point 5 .
That is generally not a problem. But your grading leads to trouble.

You have to choices:
Define your second block like "hex (5 6 2 1 ....)"
Or change the grading from (15 10 1) simpleGrading (0.104 0.077 1) to (10 15 1) simpleGrading (0.077 0.104 1)

I hope it helps
Alex
__________________
Please note that I do not use the Friend-feature, so do not be offended, if I do not accept a request.
alexB is offline   Reply With Quote

Old   July 15, 2015, 13:54
Post
  #34
Member
 
AJAY BHANDARI
Join Date: Jul 2015
Location: INDIA
Posts: 57
Rep Power: 10
AJAY BHANDARI is on a distinguished road
Hi alex,

Thanks for your reply and for answering to my posts. I have understood what you are trying to say and i even changed the block numbering and simple grading as you said. I did many trials but its not working. Its giving same error. Could you please spend some of your precious time on my blockMesh dict file and tell me exactly where to change the grading or numbering of block. Here's the blockMesh dict file.


convertToMeters 0.001;

vertices
(
(0 0 0) //0
(0.5 0.5 0) //1
(-0.5 0.5 0) //2
(-0.5 -0.5 0) //3
(0.5 -0.5 0) //4
(1.414 1.414 0) //5
(-1.414 1.414 0) //6
(-1.414 -1.414 0) //7
(1.414 -1.414 0) //8
(2.828 2.828 0) //9
(-2.828 2.828 0) //10
(-2.828 -2.828 0) //11
(2.828 -2.828 0) //12
(0.5 0.5 1) //13
(-0.5 0.5 1) //14
(-0.5 -0.5 1) //15
(0.5 -0.5 1) //16
(1.414 1.414 1) //17
(-1.414 1.414 1) //18
(-1.414 -1.414 1) //19
(1.414 -1.414 1) //20
(2.828 2.828 1) //21
(-2.828 2.828 1) //22
(-2.828 -2.828 1) //23
(2.828 -2.828 1) //24
(0 0 1) //25
(-10 -5 0) //26
(10 -5 0) //27
(10 5 0) //28
(-10 5 0) //29
(-10 -5 1) //30
(10 -5 1) //31
(10 5 1) //32
(-10 5 1) //33
);

blocks
(
hex (1 2 3 4 13 14 15 16) porosity (10 10 1) simpleGrading (1 1 1)
hex (1 5 6 2 13 17 18 14) porosity14 (10 10 1) simpleGrading (1 1 1)
hex (2 6 7 3 14 18 19 15) porosity15 (10 10 1) simpleGrading (1 1 1)
hex (3 7 8 4 15 19 20 16) porosity16 (10 10 1) simpleGrading (1 1 1)
hex (4 8 5 1 16 20 17 13) porosity17 (10 10 1) simpleGrading (1 1 1)
hex (5 9 10 6 17 21 22 18) porosity18 (10 10 1) simpleGrading (1 1 1)
hex (6 10 11 7 18 22 23 19) porosity19 (10 10 1) simpleGrading (1 1 1)
hex (7 11 12 8 19 23 24 20) porosity20 (10 10 1) simpleGrading (1 1 1)
hex (12 9 5 8 24 21 17 20) porosity21 (10 10 1) simpleGrading (1 1 1)
hex (9 28 29 10 21 32 33 22) porosity22 (10 10 1) simpleGrading (1 1 1)
hex (10 29 26 11 22 33 30 23) porosity23 (10 10 1) simpleGrading (1 1 1)
hex (11 26 27 12 23 30 31 24) porosity24 (10 10 1) simpleGrading (1 1 1)
hex (12 27 28 9 24 31 32 21) porosity25 (10 10 1) simpleGrading (1 1 1)
);

edges
(
arc 5 6 (0 2 0)
arc 6 7 (-2 0 0)
arc 7 8 (0 -2 0)
arc 8 5 (2 0 0)
arc 9 10 (0 4 0)
arc 10 11 (-4 0 0)
arc 11 12 (0 -4 0)
arc 12 9 (4 0 0)
arc 17 18 (0 2 1)
arc 18 19 (-2 0 1)
arc 19 20 (0 -2 1)
arc 20 17 (2 0 1)
arc 21 22 (0 4 1)
arc 22 23 (-4 0 1)
arc 23 24 (0 -4 1)
arc 24 21 (4 0 1)
);

boundary
(
inlet
{
type inlet;
faces
(
(26 30 33 29)
);
}
outlet
{
type outlet;
faces
(
(28 32 31 27)
);
}

top
{
type wall;
faces
(
(29 33 32 28)
);
}

bottom
{
type wall;
faces
(
(27 31 30 26)
);
}

frontAndBack
{
type empty;
faces
(
(1 2 3 4) //from first block
(13 14 15 16)
(1 5 6 2) //from second block
(13 17 18 14)
(2 6 7 3) //from third block
(14 18 19 15)
(3 7 8 4) //from fourth block
(15 19 20 16)
(4 8 5 1) //from fifth block
(16 20 17 13)
(5 9 10 6) //from sixth block
(17 21 22 18)
(6 10 11 7) //from seventh block
(18 22 23 19)
(7 11 12 8) //from eighth block
(19 23 24 20)
(12 9 5 8) //from ninth block
(24 21 17 20)
(9 28 29 10) //from tenth block
(21 32 33 22)
(10 29 26 11) //from eleventh block
(22 33 30 23)
(11 26 27 12) //from twelvth block
(23 30 31 24)
(12 27 28 9) //from thirteen block
(24 31 32 21)
);
}
);

mergePatchPairs
(
);


Basically i want total 192 cells in x dirn and 96 cells in y dirn. and spacing between each cell to be 0.104*0.104mm. How should i divide them in each block and where i should change????
AJAY BHANDARI is offline   Reply With Quote

Old   July 15, 2015, 16:54
Default
  #35
Member
 
Alexander Bartel
Join Date: Feb 2015
Location: Germany
Posts: 97
Rep Power: 11
alexB is on a distinguished road
Hi Ajay,

in this post you say the last dict works.

Quote:
Originally Posted by AJAY BHANDARI View Post
Hi alex,

Finally its done.. But its not running when my blockMeshDict is this

hex (1 2 3 4 13 14 15 16) porosity (15 10 1) simpleGrading (0.104 0.077 1)
hex (1 5 6 2 13 17 18 14) porosity14 (15 10 1) simpleGrading (0.104 0.077 1)
hex (2 6 7 3 14 18 19 15) porosity15 (15 10 1) simpleGrading (0.104 0.077 1)
hex (3 7 8 4 15 19 20 16) porosity16 (15 10 1) simpleGrading (0.104 0.077 1)
hex (4 8 5 1 16 20 17 13) porosity17 (15 10 1) simpleGrading (0.104 0.077 1)
hex (5 9 10 6 17 21 22 18) porosity18 (15 10 1) simpleGrading (0.104 0.077 1)
hex (6 10 11 7 18 22 23 19) porosity19 (15 10 1) simpleGrading (0.104 0.077 1)
hex (7 11 12 8 19 23 24 20) porosity20 (15 10 1) simpleGrading (0.104 0.077 1)
hex (12 9 5 8 24 21 17 20) porosity21 (15 10 1) simpleGrading (0.104 0.077 1)
hex (9 28 29 10 21 32 33 22) porosity22 (15 10 1) simpleGrading (0.104 0.077 1)
hex (10 29 26 11 22 33 30 23) porosity23 (15 10 1) simpleGrading (0.104 0.077 1)
hex (11 26 27 12 23 30 31 24) porosity24 (15 10 1) simpleGrading (0.104 0.077 1)
hex (12 27 28 9 24 31 32 21) porosity25 (15 10 1) simpleGrading (0.104 0.077 1)


But it runs when i change grading

hex (1 2 3 4 13 14 15 16) porosity (10 10 1) simpleGrading (1 1 1)
hex (1 5 6 2 13 17 18 14) porosity (10 10 1) simpleGrading (1 1 1)
hex (2 6 7 3 14 18 19 15) porosity (10 10 1) simpleGrading (1 1 1)
hex (3 7 8 4 15 19 20 16) porosity (10 10 1) simpleGrading (1 1 1)
hex (4 8 5 1 16 20 17 13) porosity (10 10 1) simpleGrading (1 1 1)
hex (5 9 10 6 17 21 22 18) porosity (10 10 1) simpleGrading (1 1 1)
hex (6 10 11 7 18 22 23 19) porosity (10 10 1) simpleGrading (1 1 1)
hex (7 11 12 8 19 23 24 20) porosity (10 10 1) simpleGrading (1 1 1)
hex (12 9 5 8 24 21 17 20) porosity (10 10 1) simpleGrading (1 1 1)
hex (9 28 29 10 21 32 33 22) porosity (10 10 1) simpleGrading (1 1 1)
hex (10 29 26 11 22 33 30 23) inlet (10 10 1) simpleGrading (1 1 1)
hex (11 26 27 12 23 30 31 24) porosity (10 10 1) simpleGrading (1 1 1)
hex (12 27 28 9 24 31 32 21) outlet (10 10 1) simpleGrading (1 1 1)

But i want former dict file So plz suggest what should i do???
so start from that dict and change it in little steps... so you can see where it goes wrong.

And I have to ask one question:
what do you mean with spacing between the cells?
Quote:
and spacing between each cell to be 0.104*0.104mm. How should i divide them in each block and where i should change????
regards
Alex
__________________
Please note that I do not use the Friend-feature, so do not be offended, if I do not accept a request.
alexB is offline   Reply With Quote

Old   July 17, 2015, 01:00
Post
  #36
Member
 
AJAY BHANDARI
Join Date: Jul 2015
Location: INDIA
Posts: 57
Rep Power: 10
AJAY BHANDARI is on a distinguished road
Hi alex,

Sry for my late reply. Actually i was wrong 0.104*0.104 mm is the cell dimension in x and y dirn. but in simple grading it is the cell expansion ratio so it will remain same that is (1 1 1) only. I tried changing no of grid points in x and y dirn step wise as you said . I did this

hex (1 2 3 4 13 14 15 16) porosity (15 10 1) simpleGrading (1 1 1)
hex (1 5 6 2 13 17 18 14) porosity14 (10 15 1) simpleGrading (1 1 1)
hex (2 6 7 3 14 18 19 15) porosity15 (15 10 1) simpleGrading (1 1 1)
hex (3 7 8 4 15 19 20 16) porosity16 (10 15 1) simpleGrading (1 1 1)

By changing first three it didn,t give any error but when i change fourth one it gives error inconssitent no of patches between blocks 0 and 3 . So i think error is in fourth step... Can you help me out????
AJAY BHANDARI is offline   Reply With Quote

Old   July 17, 2015, 06:10
Default
  #37
Member
 
Alexander Bartel
Join Date: Feb 2015
Location: Germany
Posts: 97
Rep Power: 11
alexB is on a distinguished road
looks fine so far,

perhaps test, hex (4 3 7 8 16 15 19 20) porosity16 (15 10 1) simpleGrading (1 1 1)

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

Old   July 19, 2015, 11:31
Smile
  #38
Member
 
AJAY BHANDARI
Join Date: Jul 2015
Location: INDIA
Posts: 57
Rep Power: 10
AJAY BHANDARI is on a distinguished road
Thanks alex... it worked Thanks for your consistent help...


Regards
AJAY
AJAY BHANDARI is offline   Reply With Quote

Old   July 22, 2015, 10:04
Default Mesh is working, but it should not be (faces declaration are not correct)
  #39
Member
 
Lisandro Maders
Join Date: Feb 2013
Posts: 98
Rep Power: 13
Lisandro Maders is on a distinguished road
Hi,

I generated an axis-symmetric mesh with success. However, at one of the faces declaration the vertices are not clockwise oriented. All the other faces are clockwise oriented, but if I put this one as well it complains about having no neighbours. Then, when I inverted the order from clockwise to anti-clockwise it worked! Why?

The face I am referring to is the face (3 5 2 3) from outlet.

In my opinion, it should be (3 2 5 3).

Here is my file:

convertToMeters 0.001;

vertices
(
(0.0 0.0 0.0) //vertex 0
(24.904867 2.178893 0.0) //vertex 1
(24.904867 2.178893 137.0) //vertex 2
(0.0 0.0 137.0) //vertex 3
(24.904867 -2.178893 0.0) //vertex 4
(24.904867 -2.178893 137.0) //vertex 5
);

blocks
(
hex (0 4 1 0 3 5 2 3) (20 2 100) simpleGrading (1 1 1)
);

edges
(
);

boundary
(
air
{
type patch;
faces
(
(0 4 1 0)
);
}
outlet
{
type patch;
faces
(
(3 5 2 3)
);
}
fixedWall
{
type wall;
faces
(
(1 4 5 2)
);
}
front
{
type wedge;
faces
(
(0 1 2 3)
);
}
back
{
type wedge;
faces
(
(3 5 4 0)
);
}
axis
{
type empty;
faces
(
(0 3 3 0)
);
}
);

mergePatchPairs
(
);

Any feedback I appreciate.

Thanks in advance.


Lisandro
Lisandro Maders is offline   Reply With Quote

Old   July 22, 2015, 10:54
Default
  #40
Member
 
Alexander Bartel
Join Date: Feb 2015
Location: Germany
Posts: 97
Rep Power: 11
alexB is on a distinguished road
Hi Lisandro,

I think you shouldn't let collapse one of the first 4 point, as they are used to define your local coordinate system of the block.

Perhaps it solves your prob.

regards
Alex
__________________
Please note that I do not use the Friend-feature, so do not be offended, if I do not accept a request.
alexB 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
[CGNS] CGNS converters available mbeaudoin OpenFOAM Meshing & Mesh Conversion 137 December 14, 2018 04:20
[blockMesh] Errors during blockMesh meshing Madeleine P. Vincent OpenFOAM Meshing & Mesh Conversion 51 May 30, 2016 10:51
[OpenFOAM.org] Compile OF 2.3 on Mac OS X .... the patch gschaider OpenFOAM Installation 225 August 25, 2015 19:43
Problem with cyclic boundaries in Openfoam 1.5 fs82 OpenFOAM 36 January 7, 2015 00:31
[Commercial meshers] Trimmed cell and embedded refinement mesh conversion issues michele OpenFOAM Meshing & Mesh Conversion 2 July 15, 2005 04:15


All times are GMT -4. The time now is 10:09.