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

[blockMesh] Error running blockMesh with mergePatchPairs on OF2.4.0

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 25, 2017, 11:39
Default Error running blockMesh with mergePatchPairs on OF2.4.0
  #1
Senior Member
 
Deep
Join Date: Oct 2017
Posts: 180
Rep Power: 9
deepbandivadekar is on a distinguished road
I tried to look up but didn't find any thread which deals with this issue. Perhaps it's something very silly!?

I'm getting this error when trying to run blockMesh for a very simple geometry.

Code:
--> FOAM FATAL ERROR: 
Parameter out of range, lambda = 1

    From function lineEdge::position(const scalar)
    in file curvedEdges/lineEdge.C at line 68.
Can anyone point me in the right direction? What is Lambda and what is wrong?

If it helps my dictionary is defined as follows:

Code:
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  2.1.x                                 |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    object      blockMeshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

convertToMeters 0.01;

x_min -10;
x_max 10;
y_min 0;
y_max 20;
z_min 0;
z_max 100;

xp_min -10;
xp_max 10;
yp_min -4;
yp_max 0;
zp_min 20;
zp_max 40;

vertices
(
    //External Flow
    ($x_min $y_min $z_min)    //0
    ($x_min $y_min $z_max)    //1
    ($x_min $y_max $z_max)    //2
    ($x_min $y_max $z_min)    //3
    ($x_max $y_max $z_min)    //4
    ($x_max $y_max $z_max)    //5
    ($x_max $y_min $z_max)    //6
    ($x_max $y_min $z_min)    //7

    //Porous Zone
    ($xp_min $yp_min $zp_min)    //8
    ($xp_min $yp_min $zp_max)    //9
    ($xp_min $yp_max $zp_max)    //10
    ($xp_min $yp_max $zp_min)    //11
    ($xp_max $yp_max $zp_min)    //12
    ($xp_max $yp_max $zp_max)    //13
    ($xp_max $yp_min $zp_max)    //14
    ($xp_max $yp_min $zp_min)    //15

);

blocks
(
   //Block 1
    hex (0 1 2 3 4 5 6 7) (1 200 1000) 
    simpleGrading 
    (
         //X Expansion Ratio
         1
    //Y Expansion Ratio
    (
      (0.2 0.25 0.125)
      (0.8 0.50 1)
      (0.2 0.25 8)
    )
    //Z Expansion Ratio
    (
      (0.18 0.2 0.125)
      (0.24 0.5 1)
      (0.58 0.3 8)
    )
   )
   //Block2
    hex (8 9 10 11 12 13 14 15) (1 40 40) 
    simpleGrading 
    (
         //X Expansion Ratio
         1
    //Y Expansion Ratio
    (
      (0.3 0.50 8)
      (0.7 0.50 1)
      //(0.2 0.25 8)
    )
    //Z Expansion Ratio
    (
      (0.2 0.25 8)
      (0.6 0.50 1)
      (0.2 0.25 0.125)
    )
   )

);

edges
(
);

boundary
(
    block1Walls
    {
        type wall;
        faces
        (
            (7 6 1 0)
            (2 5 4 3)
            //(0 7 12 11)
            //(13 6 1 10)
        );
    }

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

    inlet1
    {
        type patch;
        faces
        (
            (0 3 4 7)
        );
    }

    inlet2
    {
        type patch;
        faces
        (
            (14 9 8 15)
        );
    }

    outlet
    {
        type patch;
        faces
        (
            (1 6 5 2)
        );
    }

    frontAndBack
    {
        type patch;
        faces
        (
            (4 5 6 7)
            (0 1 2 3)
            (8 9 10 11)
            (12 13 14 15)
        );
    }

    interface1
   {
       type wall;
      faces
        (
            (7 6 1 0)
        );
   }

   interface2
   {
        //type patch;
        faces
        (
            (10 11 12 13)
        );
   }

);
 
//patches
//(
//    patch interface1
//    (
//        (7 6 1 0)
//    )
//
//    patch interface2
//    (
//        (10 11 12 13)
//    )
//);


mergePatchPairs
(
//    (interface1 interface2)

);

// ************************************************************************* //
I was trying to make a case similar to this (https://www.cfd-online.com/Forums/op...atchpairs.html) with some additional changes like grading and 2 inlets instead of 1.
deepbandivadekar is offline   Reply With Quote

Old   November 25, 2017, 15:50
Default
  #2
Senior Member
 
Deep
Join Date: Oct 2017
Posts: 180
Rep Power: 9
deepbandivadekar is on a distinguished road
This issue is resolved.

Apparently, graded meshing is not possible when dealing with multiple blocks. Such a pity!
deepbandivadekar 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] mergePatchPairs with blockMesh Ivanet OpenFOAM Meshing & Mesh Conversion 17 May 4, 2021 11:32
[blockMesh] blockMesh | MergePatchPairs | snappyHexMesh |Different number of cells in divisions pythag0ra5 OpenFOAM Meshing & Mesh Conversion 1 September 19, 2020 15:38
[mesh manipulation] mergePatchPairs after running blockMesh ashishmagar600 OpenFOAM Meshing & Mesh Conversion 2 March 8, 2019 05:15
[blockMesh] mergePatchPairs reducing a face to less than 3 points aow OpenFOAM Meshing & Mesh Conversion 2 June 1, 2018 18:37
[blockMesh] BlockMesh documentation User Guide clearance of mergePatchPairs proposals benru OpenFOAM Meshing & Mesh Conversion 0 June 9, 2008 03:22


All times are GMT -4. The time now is 23:49.