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

cyclic bc for airfoil error

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 6, 2015, 05:26
Default cyclic bc for airfoil error
  #1
New Member
 
Join Date: May 2015
Posts: 12
Rep Power: 10
eaxyd1 is on a distinguished road
Hello everyone,

Now I am simulating flow around a 3D airfoil in OpenFOAM, and I use the C shape grid. i should define the bc used to be empty in 2D case into cyclic, but when I use createPatch, there is error like this:


Code:
Create time

Create polyMesh for time = 0



--> FOAM FATAL ERROR: 
face 4802 area does not match neighbour by 199.99% -- possible face ordering problem.
patch:back my area:0.0236307 neighbour area:979.863 matching tolerance:0.0001
Mesh face:684334 fc:(1.0005 88.1846 0)
Neighbour fc:(179.267 88.1846 1)
If you are certain your matching is correct you can increase the 'matchTolerance' setting in the patch dictionary in the boundary file.
Rerun with cyclic debug flag set for more information.

    From function cyclicPolyPatch::calcTransforms()
    in file meshes/polyMesh/polyPatches/constraint/cyclic/cyclicPolyPatch.C at line 221.

FOAM exiting
and my boundary file:

Code:
FoamFile
{
    version     2.0;
    format      ascii;
    class       polyBoundaryMesh;
    location    "constant/polyMesh";
    object      boundary;
}

4         
(
    airfoil
    {
        type wall;
        nFaces 2352;
        startFace 677180;
    }
    back
    {
        type cyclic;
        nFaces 9604;
        startFace 679532;
        neighbourPatch  front;
        matchTolerance  0.0001;
        transform       noOrdering;
    }
    farfield
    {
        type patch;
        nFaces 7056;
        startFace 689136;
    }
    front
    {
        type cyclic;
        nFaces 9604;
        startFace 696192;
        neighbourPatch  back;
        matchTolerance  0.0001;
        transform       noOrdering;
    }
)
my createPatch file:
Code:
pointSync true;

patches
(

    {
        name            front;
        patchInfo
        {
        type            cyclic;
            matchTolerance  0.0001;
            neighbourPatch  back;
            transform       noOrdering;
        }
        constructFrom patches;
        patches (front);
        set f0;
    }

    {
        name            back;
        patchInfo
        {
         type            cyclic;
            matchTolerance  0.0001;
            neighbourPatch  front;
            transform       noOrdering;
        }
        constructFrom patches;
        patches (back);
        set f0;
    }

);
I searched in the forum but still don't know what is wrong, can anybody please help me?
Thanks a lot.
eaxyd1 is offline   Reply With Quote

Old   August 6, 2015, 07:17
Default
  #2
New Member
 
Join Date: May 2015
Posts: 12
Rep Power: 10
eaxyd1 is on a distinguished road
now I tried foamUpgradeCyclics and it splits my plane into two parts, then I changed my createpatchDict follow the new generated boundary file,
Code:
pointSync true;
           
matchTolerance  0.2;

// Patches to create.
patches
(

    {
        name            front_half0;
        patchInfo
        {
        type            cyclic;
            neighbourPatch  front_half1;
            transform       noOrdering;    
        }
        constructFrom patches;
        patches (front_half0);
        matchTolerance  0.2;
        //set f0;
    }

    {
        name            front_half1;
        patchInfo
        {
        type            cyclic;
            neighbourPatch  front_half0;
            transform       noOrdering;    
        }
        constructFrom patches;
        patches (front_half1);
        matchTolerance  0.2;
        //set f0;
    }

    {
        name            back_half0;
        patchInfo
        {
         type            cyclic;
            neighbourPatch  back_half1;
            transform       noOrdering;
        }
        constructFrom patches;
        patches (back_half0);
        matchTolerance  0.2;
        //set f0;
    }

    {
        name            back_half1;
        patchInfo
        {
         type            cyclic;
            neighbourPatch  back_half0;
            transform       noOrdering;
        }
        constructFrom patches;
        patches (back_half1);
        matchTolerance  0.2;
        //set f0;
    }
);
then createPatch, new errors:
Code:
Create time

Create polyMesh for time = 0



--> FOAM FATAL ERROR: 
face 0 area does not match neighbour by 0.122856% -- possible face ordering problem.
patch:back_half0 my area:0.0236017 neighbour area:0.0236307 matching tolerance:0.0001
Mesh face:679532 fc:(0.999501 -88.1895 0)
Neighbour fc:(1.0005 88.1846 0)
If you are certain your matching is correct you can increase the 'matchTolerance' setting in the patch dictionary in the boundary file.
Rerun with cyclic debug flag set for more information.

    From function cyclicPolyPatch::calcTransforms()
    in file meshes/polyMesh/polyPatches/constraint/cyclic/cyclicPolyPatch.C at line 221.

FOAM exiting
did anybody know why? I am desperate...
eaxyd1 is offline   Reply With Quote

Old   August 7, 2015, 07:42
Default
  #3
New Member
 
Join Date: May 2015
Posts: 12
Rep Power: 10
eaxyd1 is on a distinguished road
problem solved!

thanks for http://www.cfd-online.com/Forums/ope...tml#post378087

I really appreciate your help!
eaxyd1 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 OF 2.3 on Mac OS X .... the patch gschaider OpenFOAM Installation 225 August 25, 2015 19:43
OpenFOAM without MPI kokizzu OpenFOAM Installation 4 May 26, 2014 09:17
Ansys Fluent 13.0 UDF compilation problem in Window XP (32 bit) Yogini Fluent UDF and Scheme Programming 7 October 3, 2012 07:24
POSDAT problem piotka STAR-CD 4 June 12, 2009 08:43
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 13:26.