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

[blockMesh] Segmentation Fault BlockMesh

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 22, 2015, 06:14
Default Segmentation Fault BlockMesh
  #1
New Member
 
nitw.deepak@gmail.com
Join Date: Dec 2014
Posts: 5
Rep Power: 12
DeepIndia is on a distinguished road
Hello All,
Can anyone suggest me some thing to resolve the error with my blockmesh dict, I am getting aerror of sedgementation fault.


Code:
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    object      blockMeshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

convertToMeters 0.001;

vertices
(
    (0 0 0)
    (7 0 0)
    (32 0 0)
    (1118 0 0)//3
    (1118 10 0)//4
    (32 10 0)//5
    (7 10 0)//6
    (0 10 0)//7 
    (0 15 0)//8
    (7 15 0)//9 
    (32 15 0)
    (1118 15 0)//11
    (3118 0 0)//12
    (3118 2000 0)//13
    (1118 36 0)//14
    (1093 36 0)
    (1093 2000 0)//16
    (868 2000 0)//17
    (868 15 0)//18
    (1093 15 0)//19 
   
    (0 0 -10)//20
    (7 0 -10)//21
    (32 0 -10)//22
    (1118 0 -10)//23
    (1118 10 -10)//24
    (32 10 -10)//25
    (7 10 -10)//26
    (0 10 -10)//27
    (0 15 -10)//28
    (7 15 -10)//29 
    (32 15 -10)//30
    (1118 15 -10)//31
    (3118 0 -10)//32
    (3118 2000 -10)//33
    (1118 36 -10)//34
    (1093 36 -10)//35
    (1093 2000 -10)//36
    (868 2000 -10)//37
    (868 15 -10)//38 
    (1093 15 -10)//39
);

blocks
(
       
      hex (0 1 6 7 20 21 26 27) (1 1 1) simpleGrading (1 1 1)
      hex (1 2 5 6 21 22 25 26) (1 1 1) simpleGrading (1 1 1)
      hex (2 3 4 5 22 23 24 25) (1 1 1) simpleGrading (1 1 1)
      hex (5 4 11 10 25 24 31 30) (1 1 1) simpleGrading (1 1 1)
      hex (6 5 10 9 26 25 30 29) ( 1 1 1) simpleGrading (1 1 1)
      hex (7 6 9 8 27 26 29 28) (1 1 1) simpleGrading (1 1 1)
      hex (3 12 13 14 23 32 33 34) (1 1 1) simpleGrading (1 1 1)//problem
      hex (14 13 16 15 34 33 36 35) (1 1 1) simpleGrading (1 1 1)
      hex (19 16 17 18 39 36 37 38) (1 1 1) simpleGrading (1 1 1) 

);

edges
(

);

/* boundary
(
    atmboundaryinlet
    {
        type patch;
        faces
        (
            (12 32 33 13)
            (13 33 36 16)
            (16 36 37 17)
        (17 37 38 18)
        );
    }
    wallend
    {
        type wall;
        faces
        (
            (0 7 27 20)
        (7 8 28 27)
        );
    }
    
    transientgate
    
        {
        type patch;//initially
    //type wall;//after some time
        faces
        (
            (8 9 29 28)
        );
    }
    
    fixedWalls1
    {
        type wall;
        faces
        (
            (9 10 30 29)
            (10 18 38 30)
        (18 19 39 38)
        (19 15 35 39)
        (15 14 34 35)
        (11 31 34 14)
        );
    }
        fixedWalls2
    {
        type wall;
        faces
        (
            (18 38 39 19)
            (19 39 35 15)
        (15 35 34 14)
        );
    }

    frontAndBack
    {
        type empty;
        faces
        (   (0 1 6 7)
        (7 6 9 8)
        (1 2 5 6)
            (6 5 10 9)
            (2 3 4 5)
            (5 4 11 10)
        (3 12 13 14)
            (14 13 16 15)
        (19 16 17 18)
        //back
        (20 27 26 21)
        (27 28 29 26)
        (21 26 25 22)
        (26 29 30 25)
        (22 25 23 24)
        (25 30 31 24)
        (23 34 33 32)
        (35 36 33 34)
        (38 37 36 39)
         
        );
    }
    bottom
    {
        type symmetry;
        faces
        (   (0 20 21 1)
            (1 21 22 2)
        (2 22 23 3)
        (3 23 32 12)
           
        );
    }
    
);*/

mergePatchPairs
(
);
Attached Images
File Type: jpeg block.jpeg (21.5 KB, 21 views)

Last edited by wyldckat; April 23, 2015 at 15:01. Reason: Added [CODE][/CODE] markers and fixed typo in title
DeepIndia is offline   Reply With Quote

Old   April 23, 2015, 03:34
Default
  #2
New Member
 
Jignesh Chokshi
Join Date: Aug 2011
Posts: 7
Rep Power: 15
Jimmy Chokshi is on a distinguished road
Hi Deepak,

Can you please post your error message ?
Jimmy Chokshi is offline   Reply With Quote

Old   April 28, 2015, 11:05
Default
  #3
Senior Member
 
Hassan Kassem
Join Date: May 2010
Location: Germany
Posts: 242
Rep Power: 18
hk318i is on a distinguished road
It isn't a big problem. you cannot comment the boundary list. I edited it for you in red.

Also note that, it just one mesh cell for each block. You have add more cells in x and y directions and it should be consistent with across the blocks boundaries. Otherwise, you will have to use the mergePatchPairs option.

Bw,
Hassan


Quote:
Originally Posted by DeepIndia View Post
Hello All,
Can anyone suggest me some thing to resolve the error with my blockmesh dict, I am getting aerror of sedgementation fault.


Code:
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    object      blockMeshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

convertToMeters 0.001;

vertices
(
    (0 0 0)
    (7 0 0)
    (32 0 0)
    (1118 0 0)//3
    (1118 10 0)//4
    (32 10 0)//5
    (7 10 0)//6
    (0 10 0)//7 
    (0 15 0)//8
    (7 15 0)//9 
    (32 15 0)
    (1118 15 0)//11
    (3118 0 0)//12
    (3118 2000 0)//13
    (1118 36 0)//14
    (1093 36 0)
    (1093 2000 0)//16
    (868 2000 0)//17
    (868 15 0)//18
    (1093 15 0)//19 
   
    (0 0 -10)//20
    (7 0 -10)//21
    (32 0 -10)//22
    (1118 0 -10)//23
    (1118 10 -10)//24
    (32 10 -10)//25
    (7 10 -10)//26
    (0 10 -10)//27
    (0 15 -10)//28
    (7 15 -10)//29 
    (32 15 -10)//30
    (1118 15 -10)//31
    (3118 0 -10)//32
    (3118 2000 -10)//33
    (1118 36 -10)//34
    (1093 36 -10)//35
    (1093 2000 -10)//36
    (868 2000 -10)//37
    (868 15 -10)//38 
    (1093 15 -10)//39
);

blocks
(
       
      hex (0 1 6 7 20 21 26 27) (1 1 1) simpleGrading (1 1 1)
      hex (1 2 5 6 21 22 25 26) (1 1 1) simpleGrading (1 1 1)
      hex (2 3 4 5 22 23 24 25) (1 1 1) simpleGrading (1 1 1)
      hex (5 4 11 10 25 24 31 30) (1 1 1) simpleGrading (1 1 1)
      hex (6 5 10 9 26 25 30 29) ( 1 1 1) simpleGrading (1 1 1)
      hex (7 6 9 8 27 26 29 28) (1 1 1) simpleGrading (1 1 1)
      hex (3 12 13 14 23 32 33 34) (1 1 1) simpleGrading (1 1 1)//problem
      hex (14 13 16 15 34 33 36 35) (1 1 1) simpleGrading (1 1 1)
      hex (19 16 17 18 39 36 37 38) (1 1 1) simpleGrading (1 1 1) 

);

edges
(

);

 boundary
( /*
    atmboundaryinlet
    {
        type patch;
        faces
        (
            (12 32 33 13)
            (13 33 36 16)
            (16 36 37 17)
        (17 37 38 18)
        );
    }
    wallend
    {
        type wall;
        faces
        (
            (0 7 27 20)
        (7 8 28 27)
        );
    }
    
    transientgate
    
        {
        type patch;//initially
    //type wall;//after some time
        faces
        (
            (8 9 29 28)
        );
    }
    
    fixedWalls1
    {
        type wall;
        faces
        (
            (9 10 30 29)
            (10 18 38 30)
        (18 19 39 38)
        (19 15 35 39)
        (15 14 34 35)
        (11 31 34 14)
        );
    }
        fixedWalls2
    {
        type wall;
        faces
        (
            (18 38 39 19)
            (19 39 35 15)
        (15 35 34 14)
        );
    }

    frontAndBack
    {
        type empty;
        faces
        (   (0 1 6 7)
        (7 6 9 8)
        (1 2 5 6)
            (6 5 10 9)
            (2 3 4 5)
            (5 4 11 10)
        (3 12 13 14)
            (14 13 16 15)
        (19 16 17 18)
        //back
        (20 27 26 21)
        (27 28 29 26)
        (21 26 25 22)
        (26 29 30 25)
        (22 25 23 24)
        (25 30 31 24)
        (23 34 33 32)
        (35 36 33 34)
        (38 37 36 39)
         
        );
    }
    bottom
    {
        type symmetry;
        faces
        (   (0 20 21 1)
            (1 21 22 2)
        (2 22 23 3)
        (3 23 32 12)
           
        );
    }
 */   
);

mergePatchPairs
(
);
hk318i 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
[blockMesh] Segmentation Fault when creating block mesh topography (blockMesh) jbrydg01 OpenFOAM Meshing & Mesh Conversion 2 May 11, 2017 06:37
Segmentation fault in SU2 V5.0 ygd SU2 2 March 1, 2017 05:38
Segmentation fault when running in parallel Pj. OpenFOAM Running, Solving & CFD 3 April 8, 2015 09:12
Segmentation Fault w/ compiled OF 2.2.0 - motorBike example sudo OpenFOAM Running, Solving & CFD 3 April 2, 2013 18:27
segmentation fault when installing OF-2.1.1 on a cluster Rebecca513 OpenFOAM Installation 9 July 31, 2012 16:06


All times are GMT -4. The time now is 06:46.