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

[cfMesh] How to use renameBoundary for cyclic boundary conditions?

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 2 Post By Krao

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 18, 2018, 05:00
Default How to use renameBoundary for cyclic boundary conditions?
  #1
Senior Member
 
Lukas Fischer
Join Date: May 2018
Location: Germany, Munich
Posts: 117
Rep Power: 8
lukasf is on a distinguished road
Hi Foamers,

How can I assign neighboring patches in the meshDict when I want to use cyclic boundary conditions?


If I have to apply cyclicAMI I would also like to know how to set the transform and separation vector in the meshDict.


Here are my steps:


I created the geometry (.stl) file with ICEM.
The renameBoundary dictionary in the meshDict looks like this:


Code:
renameBoundary
{
    newPatchNames
    {     
        "OUTLET"
        {
                newName OUTLET;
                type    cyclic;
                neighbourPatch INLET;
        }            
        "INLET"
        {
                newName INLET;
                type    cyclic;
                neighbourPatch OUTLET;                                
        }            
            
        "WALL"
        {
                newName WALL;
                type    wall;
        }            
    }
}
or it looks like this if cyclicAMI boundary is desired:



Code:
renameBoundary
{
    newPatchNames
    {
            
        "OUTLET"
        {
                newName OUTLET;
                type cyclicAMI;
                neighbourPatch INLET;
                transform       translational;
                separationVector (0 0 -0.032);
        }            
        "INLET"
        {
                newName INLET;
                type cyclicAMI;
                neighbourPatch OUTLET;
                transform       translational;
                separationVector (0 0 0.032);                                
        }            
            
        "WALL"
        {
                newName WALL;
                type    wall;
        }            
    }
}
Afterwards I apply the cartesianMesh command.

I am noticing that cfMesh ignores the neighbourPatches and the other parameters if cyclicAMI is used. The boundary file in constant/polyMesh/boundary does not contain the other parameters of the dictionary. Hence, it would have to be manually added.


Code:
    location    "constant/polyMesh";
    object      boundary;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

3
(
OUTLET
{
    type cyclicAMI;
    nFaces 2502;
    startFace 1567898;
}

INLET
{
    type cyclicAMI;
    nFaces 2502;
    startFace 1570400;
}

WALL
{
    type wall;
    nFaces 47088;
    startFace 1572902;
}
)
Any help is very much appreciated,

Lukas

Last edited by lukasf; September 28, 2018 at 04:59.
lukasf is offline   Reply With Quote

Old   September 18, 2019, 06:02
Default
  #2
Senior Member
 
Kmeti Rao
Join Date: May 2019
Posts: 145
Rep Power: 8
Krao is on a distinguished road
Hi Lukas,

Old thread, I hope you have found a way. The best way is to leave these cyclic as patch and later you can use createPatchDict to define them. This would be more elegant than manually editing.

Krao
chen112p and daniyalaltaf like this.
Krao 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
sliding mesh problem in CFX Saima CFX 46 September 11, 2021 08:38
Radiation in semi-transparent media with surface-to-surface model? mpeppels CFX 11 August 22, 2019 08:30
Multiphase flow - incorrect velocity on inlet Mike_Tom CFX 6 September 29, 2016 02:27
Basic Nozzle-Expander Design karmavatar CFX 20 March 20, 2016 09:44
Question about heat transfer coefficient setting for CFX Anna Tian CFX 1 June 16, 2013 07:28


All times are GMT -4. The time now is 04:00.