CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Pre-Processing

Using createPatch and cyclicAMI in FOAM Extend 4.0

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 2 Post By time-

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 16, 2020, 21:06
Default Using createPatch and cyclicAMI in FOAM Extend 4.0
  #1
New Member
 
mekim
Join Date: Sep 2019
Posts: 21
Rep Power: 7
mekim is on a distinguished road
Dear all!

I would like to simulate air flow around a rotating blade with rpm=17188.7, Compressible, transonic flow, and just one blade with cyclic conditions by using OpenFOAM extend 4.0.



when I run createPatch, I get the following error.


Code:
--> FOAM FATAL IO ERROR: 
keyword patchInfo is undefined in dictionary "/home/mekim/foam/mekim-4.0/run/rotor37/system/createPatchDict"

file: /home/mekim/foam/mekim-4.0/run/rotor37/system/createPatchDict from line 20 to line 78.

    From function dictionary::lookupEntry(const word&, bool, bool) const
    in file db/dictionary/dictionary.C at line 395.

FOAM exiting

I think it is due to the version difference. But I couldn't find the error.


createPatchDict:
Code:
pointSync false;

// Patches to create.
patches
(
    {
        //- Master side patch
        name             cyclic1;
        patchInfo
        {
            type            cyclicAMI;
            //matchTolerance  0.001;
            neighbourPatch  cyclic2;
            transform       noOrdering;
        //transform translational;
            separationVector (0.037175513 0.0 0);
        }
        constructFrom patches;
        patches (periodic1);
    //set f0;
    }

    {
        //- Slave side patch
        name                 cyclic2;
        patchInfo
        {
            type            cyclicAMI;
            //matchTolerance  0.001;
            neighbourPatch  cyclic1;
            transform       noOrdering;
     //transform translational;
            separationVector (-0.037175513 0.0 0);
        
        }
        constructFrom patches;
        patches (periodic2);
    //set f0;
    }

);
Thanks for your help.
mekim is offline   Reply With Quote

Old   June 20, 2020, 06:19
Default
  #2
New Member
 
Mattia
Join Date: May 2018
Location: Novara - Italy
Posts: 29
Rep Power: 8
time- is on a distinguished road
Hi
foam-extend's concept of AMI is GGI (Generalized Grid Interface); you can find source code at fvMesh/cyclicGgi and fields/cyclicGgi

Beside that, your createPatchDict is wrongly defined (OF syntax) as foam-extend expects patchInfo instead of patches keyword.

Try to change
Code:
patches
(
    {
        //- Master side patch
        name             cyclic1;
        patchInfo
        {
            type            cyclicAMI;
            //matchTolerance  0.001;
            neighbourPatch  cyclic2;
            transform       noOrdering;
        //transform translational;
            separationVector (0.037175513 0.0 0);
        }
        constructFrom patches;
        patches (periodic1);
    //set f0;
    }
...
with

Code:
patchInfo
(
    {
        //- Master side patch
        name             cyclic1;
        dictionary
        {
            type            cyclicGgi;
            //matchTolerance  0.001;
            neighbourPatch  cyclic2;
            transform       noOrdering;
        //transform translational;
            separationVector (0.037175513 0.0 0);
        }
        constructFrom patches;
        patches (periodic1);
    //set f0;
    }
...
mekim and Zane like this.

Last edited by time-; June 20, 2020 at 06:20. Reason: cycicAMI to cyclicGgi
time- 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
Using createPatch and cyclicAMI in FOAM Extend to create periodicbox manuc OpenFOAM Running, Solving & CFD 1 April 12, 2022 12:36
Setting cyclicAMI and cyclic Boundary conditions (ICEM Mesh to OpenFoam) bowen1024 OpenFOAM Pre-Processing 4 March 1, 2018 20:28
CyclicAMI issues vabishek OpenFOAM Pre-Processing 1 December 6, 2015 17:37


All times are GMT -4. The time now is 22:38.