CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM (http://www.cfd-online.com/Forums/openfoam/)
-   -   Foam fatal error (http://www.cfd-online.com/Forums/openfoam/113703-foam-fatal-error.html)

wanxlxg February 25, 2013 09:39

Foam fatal error
 
Hallo,
i am woking on the simulation of flow around a 3D cylinder. I have set cyclic BC at the x,y,z,directions.But i get always the "FOAM FATAL ERROR" It says
Code:

"in file lnInclude/AMIInterpolation.C at line 146
    Source and target patch bounding boxes are not similar
source box span    : (0.01 0 0.01)
    target box span    : (0.01 0 0.01)
    source box          : (0 0.01 0) (0.01 0.01 0.01)
    target box          : (0 -0.01 0) (0.01 -0.01 0.01)
    inflated target box : (-0.000707107 -0.0107071 -0.000707107) (0.0107071 -0.00929289 0.0107071)
"

could someone please help me?

my casefile is too large to upload, if someone need it ,i will send per Email

thanks.

wyldckat February 25, 2013 17:48

Greetings wanxlxg and welcome to the forum!

It should be enough if you share the file "constant/polyMesh/boundary".
In the mean time, I wrote something about cyclic how to define patches here: http://www.cfd-online.com/Forums/ope...tml#post398703 post #12

Best regards,
Bruno

wanxlxg February 26, 2013 03:43

Quote:

Originally Posted by wyldckat (Post 410049)
Greetings wanxlxg and welcome to the forum!

It should be enough if you share the file "constant/polyMesh/boundary".
In the mean time, I wrote something about cyclic how to define patches here: http://www.cfd-online.com/Forums/ope...tml#post398703 post #12

Best regards,
Bruno



I share the boundary file here.
Code:

7
(
    INLET
    {
        type            cyclicAMI;
        nFaces          326;
        startFace      305782;
        matchTolerance  0.0001;
        neighbourPatch  OUTLET;
        transform      translational;
        separationVector (0.01 0 0);
    }
    OUTLET
    {
        type            cyclicAMI;
        nFaces          326;
        startFace      306108;
        matchTolerance  0.0001;
        neighbourPatch  INLET;
        transform      translational;
        separationVector (-0.01 0 0);
   
    }
    TOP
    {
        type            cyclicAMI;
        nFaces          326;
        startFace      306434;   
      matchTolerance  0.0001;
      neighbourPatch  DOWN;
      transform      translational;
        separationVector (0 0.01 0);
    }
    DOWN
    {
        type            cyclicAMI;
        nFaces          323;
        startFace      306760;
        matchTolerance  0.0001;
        neighbourPatch  TOP;
        transform      translational;
        separationVector (0 -0.01 0);
    }
    FRONT
    {
        type            cyclicAMI;
        nFaces          323;
        startFace      307083;
        matchTolerance  0.0001;
        neighbourPatch  BACK;
        transform      translational;
        separationVector (0 0 0.01);
    }
    BACK
    {
        type            cyclicAMI;
        nFaces          324;
        startFace      307406;
        matchTolerance  0.0001;
        neighbourPatch  FRONT;
        transform      translational;
        separationVector (0 0 -0.01);
    }
    KUGEL
    {
        type            wall;
        nFaces          16144;
        startFace      307730;
    }
)

thanks for your help

wyldckat February 26, 2013 04:13

Hi wanxlxg,

Remember the message you shared in the first post? It had this message:
Quote:

Source and target patch bounding boxes are not similar
On your "boundary" file, it indicates that the number of faces on the patches is not the same on both sides. That is why your getting that error message.
You can try the example from the tutorial "incompressible/pimpleDyMFoam/propeller", which has this:
Code:

    AMI1
    {
        type            cyclicAMI;
        nFaces          22416;
        startFace      1733766;
        matchTolerance  0.0001;
        neighbourPatch  AMI2;
        transform      noOrdering;
    }
    AMI2
    {
        type            cyclicAMI;
        nFaces          22416;
        startFace      1756182;
        matchTolerance  0.0001;
        neighbourPatch  AMI1;
        transform      noOrdering;
    }

Notice the:
Code:

transform      noOrdering;
Best regards,
Bruno

wanxlxg February 27, 2013 04:46

1 Attachment(s)
Hallo,

i tried your suggestions,but the Error is still there.
i post here my model
so you can see what i am simulating
i think the tansfom typ--translation is better for my model
please check the separationVector for me,did i set it right?
x 0 to 0.01
y 0 to 0.01
z 0 to 0.01
Code:

transform      translational;
separationVector (0 0.01 0);


wyldckat February 27, 2013 08:57

Hi wanxlxg,

There is a tutorial in OpenFOAM that shows that same cube-shaped geometry with cyclics all over the place.... it's "DNS/dnsFoam/boxTurb16": https://github.com/OpenFOAM/OpenFOAM...Foam/boxTurb16

Best regards,
Bruno

wanxlxg March 1, 2013 04:50

Quote:

Originally Posted by wyldckat (Post 410434)
Hi wanxlxg,

There is a tutorial in OpenFOAM that shows that same cube-shaped geometry with cyclics all over the place.... it's "DNS/dnsFoam/boxTurb16": https://github.com/OpenFOAM/OpenFOAM...Foam/boxTurb16

Best regards,
Bruno

P { margin-bottom: 0.21cm; } Hallo Bruno,
have seen your post and also checked the example you said.And i have a new question about that old problem.
Code:

For patch TOP there are 326 face centres, for the neighbour patch DOWN there are 323
In my case i must use the unstructured grid, therefor i have different nFace number in the TOP and DOWN Face. Is there a solution, i keep my grid and able to use the cyclic boundary?

thanks for your help.

wan

wyldckat March 2, 2013 05:10

Hi Wan,

Have you tried what I said in post #4?

Best regards,
Bruno


All times are GMT -4. The time now is 07:20.