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

simpleGrading giving error

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 7, 2017, 13:11
Default simpleGrading giving error
  #1
Member
 
Ashok
Join Date: Feb 2017
Posts: 31
Rep Power: 9
ashokmoravaneni is on a distinguished road
Hello everyone,

I have created a cylinder using blockMesh and it seems OK when simpleGrading is (1 1 1). Actually I need refinement at the edges, so i applied simpleGrading of (0.5 1 0.5) which results in an error
"--> FOAM FATAL ERROR:
Inconsistent point locations between block pair 0 and 1
probably due to inconsistent grading."

The complete blockMesh dict is as below,

convertToMeters 1.0;

vertices
(
(0.033 0 0.033)//0
(0.093 0 0.033)//1
(0.093 0 0.093)//2
(0.033 0 0.093)//3
(0.01845 0 0.01845)//4
(0.10755 0 0.01845)//5
(0.10755 0 0.10755)//6
(0.01845 0 0.10755)//7
(0.033 0.5 0.033)//8
(0.093 0.5 0.033)//9
(0.093 0.5 0.093)//10
(0.033 0.5 0.093)//11
(0.01845 0.5 0.01845)//12
(0.10755 0.5 0.01845)//13
(0.10755 0.5 0.10755)//14
(0.01845 0.5 0.10755)//15

);

blocks
(
hex (12 15 7 4 8 11 3 0) (15 60 15) simpleGrading (1 1 0.5)
hex (8 11 3 0 9 10 2 1) (15 60 15) simpleGrading (1 1 1)
hex (9 10 2 1 13 14 6 5) (15 60 15) simpleGrading (1 1 0.5)
hex (11 15 7 3 10 14 6 2) (15 60 15) simpleGrading (0.5 1 1)
hex (12 8 0 4 13 9 1 5) (15 60 15) simpleGrading (0.5 1 1)
);


edges
(
arc 4 5 (0.063 0 0)
arc 5 6 (0.126 0 0.063)
arc 6 7 (0.063 0 0.126)
arc 7 4 (0 0 0.063)
arc 12 13 (0.063 0.5 0)
arc 13 14 (0.126 0.5 0.063)
arc 14 15 (0.063 0.5 0.126)
arc 15 12 (0 0.5 0.063)

);

boundary
(
movingWall
{
type wall;
faces
(
(5 6 14 13)
(6 7 15 14)
(7 4 12 15)
(4 5 13 12)

);
}

atmosphere
{
type wall;
faces
(
(12 13 9 8)
(13 14 10 9)
(14 15 11 10)
(15 12 8 11)
(8 9 10 11)

);
}
bottomWall
{
type wall;
faces
(
(0 3 2 1)
(4 0 1 5)
(4 7 3 0)
(7 6 2 3)
(6 5 1 2)

);
}
);

mergePatchPairs
(
);

Can anyone help me to successfully apply simpleGrading to my Cylinderical domain ?
Thank you.
Attached Images
File Type: jpg cylinder.jpg (37.6 KB, 15 views)
ashokmoravaneni is offline   Reply With Quote

Old   June 7, 2017, 14:39
Default
  #2
Senior Member
 
piu58's Avatar
 
Uwe Pilz
Join Date: Feb 2017
Location: Leipzig, Germany
Posts: 744
Rep Power: 15
piu58 is on a distinguished road
You have to set the grading for neighboring blocks in an equal way:
Code:
hex (12 15 7 4 8 11 **3 0**) (15 60 15) simpleGrading (1 1 0.5)
hex (8 11 **3 0** 9 10 2 1) (15 60 15) simpleGrading (1 1 1)
The first 3-0 section has a grading, the second not. The internal nodes do not fit. That may be not the only mistake, it is the one I saw at the first glance.
__________________
Uwe Pilz
--
Die der Hauptbewegung überlagerte Schwankungsbewegung ist in ihren Einzelheiten so hoffnungslos kompliziert, daß ihre theoretische Berechnung aussichtslos erscheint. (Hermann Schlichting, 1950)
piu58 is offline   Reply With Quote

Old   June 7, 2017, 15:03
Default
  #3
Member
 
Ashok
Join Date: Feb 2017
Posts: 31
Rep Power: 9
ashokmoravaneni is on a distinguished road
Hello Pilz,

Firstly Thanks for your Answer. After your suggestion I have tried grading as below,

blocks
(
hex (12 15 7 4 8 11 3 0) (15 60 15) simpleGrading (0.5 1 0.5)
hex (8 11 3 0 9 10 2 1) (15 60 15) simpleGrading (0.5 1 0.5)
hex (9 10 2 1 13 14 6 5) (15 60 15) simpleGrading (0.5 1 0.5)
hex (11 15 7 3 10 14 6 2) (15 60 15) simpleGrading (0.5 1 0.5)
hex (12 8 0 4 13 9 1 5) (15 60 15) simpleGrading (0.5 1 0.5)
);

But still the same error follows. Can you please check if orientation of blocks is in correct order or not ?

Thank you.
ashokmoravaneni is offline   Reply With Quote

Old   June 7, 2017, 23:59
Default
  #4
Senior Member
 
piu58's Avatar
 
Uwe Pilz
Join Date: Feb 2017
Location: Leipzig, Germany
Posts: 744
Rep Power: 15
piu58 is on a distinguished road
I recommend making a sketch of your block. You'll what fits and what not.
__________________
Uwe Pilz
--
Die der Hauptbewegung überlagerte Schwankungsbewegung ist in ihren Einzelheiten so hoffnungslos kompliziert, daß ihre theoretische Berechnung aussichtslos erscheint. (Hermann Schlichting, 1950)
piu58 is offline   Reply With Quote

Old   June 8, 2017, 06:59
Default
  #5
Member
 
Ashok
Join Date: Feb 2017
Posts: 31
Rep Power: 9
ashokmoravaneni is on a distinguished road
Thank you. I solved the problem.
ashokmoravaneni 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
[OpenFOAM.org] compile error in dynamicMesh and thermophysicalModels libraries NickG OpenFOAM Installation 3 December 30, 2019 00:21
Undeclared Identifier Errof UDF SteveGoat Fluent UDF and Scheme Programming 7 October 15, 2014 07:11
Errors in UDF shashank312 Fluent UDF and Scheme Programming 6 May 30, 2013 20:30
Installation OF1.5-dev ttdtud OpenFOAM Installation 46 May 5, 2009 02:32
Problem with compile the setParabolicInlet ivanyao OpenFOAM Running, Solving & CFD 6 September 5, 2008 20:50


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