CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   Problem with periodically repeated partially overlapping patches / nested cyclicACMI (https://www.cfd-online.com/Forums/openfoam-solving/143524-problem-periodically-repeated-partially-overlapping-patches-nested-cyclicacmi.html)

Nysander October 27, 2014 04:28

Problem with periodically repeated partially overlapping patches / nested cyclicACMI
 
Dear all,

I'm a student from Germany working on my Bachelor thesis in turbomachinery simulation. I have a problem with a nested cyclicACMI boundary condition involving other patch types than "wall". I've tried the tutorial with this patch type and it works perfectly. In my case however I want OpenFOAM to use translationally shifted copies of the same patch on the initially non overlapping areas.

As it's quite hard to explain I've created a test case with two blocks in Salome. The two blocks have a side length of 100 and are displaced relative to another by 50. What I want to do is couple the non overlapping region on one side of the overlap area to the non overlapping region of the other patch on the other side.

I've tried using a nested cyclicACMI boundary condition by creating three patch copies in my createBafflesDict using the definition below (only attached the definition for one side):

Code:

ACMI1
    {
        type        faceZone;
        zoneName    couple1Faces;

        patches
        {
            master
            {
                name            ACMI1_couple;
                type            cyclicACMI;
                matchTolerance  0.0001;
                neighbourPatch  ACMI2_couple;
                nonOverlapPatch ACMI1_offset;
                transform      translational;
                separationVector (0 0 0);
            }

            master2
            {
                name            ACMI1_offset;
                type            cyclicACMI;
                matchTolerance  0.0001;
                neighbourPatch  ACMI2_offset;
                nonOverlapPatch ACMI1_blockage;
                transform      translational;
                separationVector (-100 0 0);
            }
           
            master3
            {
                name            ACMI1_blockage;
                type            wall;
            }
        }
    }

Running createBaffles and afterwards using createPatch to remove zero sized patches works fine. But when I'm trying to simulate a simple flow using the icoFoam-Solver, it always exits with the following error:

Code:

AMI: Creating addressing and weights between 270 source faces and 298 target faces
AMI: Patch source sum(weights) min/max/average = 0, 1, 0.501221
AMI: Patch target sum(weights) min/max/average = 0, 1, 0.476506
AMI: Creating addressing and weights between 270 source faces and 298 target faces
AMI: Patch source sum(weights) min/max/average = 0, 1, 0.498779
AMI: Patch target sum(weights) min/max/average = 0, 1, 0.523494


--> FOAM FATAL ERROR:
Inconsistent ACMI patches ACMI2_couple and ACMI2_offset.  Patches should have identical topology

    From function Foam::label Foam::cyclicACMIPolyPatch::nonOverlapPatchID() const
    in file AMIInterpolation/patches/cyclicACMI/cyclicACMIPolyPatch/cyclicACMIPolyPatch.C at line 408.

I have no idea how to correct this error since I'm using identical patches created by the createBaffles utility and would appreciate any help. I don't know whether it matters, but I'm using the latest 2.3.x version of OpenFOAM. If it should turn out that solving my problem using the nested cyclicACMI boundary condition isn't possible, I'd also be grateful for any help on splitting the patches based on overlap / non overlap. I would then manually connect them using the cyclicAMI boundary condition.

I've uploaded my test case to my dropbox, please feel free to look into it using the link below:
https://www.dropbox.com/s/owjqh1ah9z...ested.tar?dl=0

Thanks in advance,
Patrick

tian_lei October 10, 2017 10:01

I did not check your case. This is my though. When you create cyclicAMCI by createBaffles, you firstly remove 0 folder. Later, re-create 0 folder.

my best


All times are GMT -4. The time now is 10:28.