CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Meshing & Mesh Conversion

[mesh manipulation] How to generate cyclic boundary conditions for irregular patches?

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By RobertHB

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 9, 2018, 03:43
Question How to generate cyclic boundary conditions for irregular patches?
  #1
Senior Member
 
Robert
Join Date: May 2015
Location: Bremen, GER
Posts: 292
Rep Power: 11
RobertHB is on a distinguished road
Dear Foamers,
i have a constructed my numerical domain over a 3D topography. I cannot use cyclic boundaries in my blockMesh since sHM will crash because "Face xyz does not match face abc by 1.234%" (number arbitrarily chosen). But, using patch boundary conditions, this works well, both in blockMesh as well as in snappyHexMesh. So i generated this mesh. You can see the inlet patch in the foreground and the outlet patch in the background (both in black). The gray mesh in the middel is my internal mesh. I want both, inlet and outlet, to be coupled with cyclic boundary conditions.


I used createPatch to create cyclic boundaries for these patches after running sHM. OF throws an error but generates two .obj files containing the patches, but no cyclic boundaries in my polyMesh. Here's the error:
Code:
cyclicPolyPatch::order : Writing neighbour faces to OBJ file "/mnt/c/OpenFOAM/run/PyrochloreSurface/cyclicInlet_faces.obj"
cyclicPolyPatch::order : Writing my faces to OBJ file "/mnt/c/OpenFOAM/run/PyrochloreSurface/cyclicOutlet_faces.obj"
cyclicPolyPatch::order : Dumping currently found cyclic match as lines between corresponding face centres to file "/mnt/
c/OpenFOAM/run/PyrochloreSurface/cyclicOutlet_faceCentres.obj"
--> FOAM Serious Error :
    From function virtual bool Foam::cyclicPolyPatch::order(Foam::PstreamBuffers&, const primitivePatch&, Foam::labelLis
t&, Foam::labelList&) const
    in file meshes/polyMesh/polyPatches/constraint/cyclic/cyclicPolyPatch.C at line 1379
    Patch:cyclicOutlet : Cannot match vectors to faces on both sides of patch
    Perhaps your faces do not match? The obj files written contain the current match.
    Continuing with incorrect face ordering from now on!

--> FOAM FATAL ERROR:
For patch cyclicInlet there are 1128 face centres, for the neighbour patch cyclicOutlet there are 1068
 From function void Foam::cyclicPolyPatch::calcTransforms(const primitivePatch&, const pointField&, const vectorField
&, const pointField&, const vectorField&)
    in file meshes/polyMesh/polyPatches/constraint/cyclic/cyclicPolyPatch.C at line 156.

 FOAM exiting
Do you have an idea how to couple those two patches with periodic boundary conditions?


With kind regards,
Robert


/edit: Using cyclicAMI instead of cyclic seems to be a solution using the following blockMeshDict entries (with 10 being the domain length, i.e. the distance between inlet and outlet):
Code:
cyclicInlet
    {
        //type patch;
        type cyclicAMI;
        neighbourPatch cyclicOutlet;
        transform translational;
        separationVector (0 10 0);
        faces
        (
            (0 1 5 4)
        );
    }
    
    cyclicOutlet
    {
        //type patch;
        type cyclicAMI;
        neighbourPatch cyclicInlet;
        transform translational;
        separationVector (0 10 0);
        faces
        (
            (3 2 6 7)
        );
    }
Attached Images
File Type: jpg mesh.jpg (60.3 KB, 136 views)
Aabadani likes this.
__________________
If you liked my answer to your question, please consider leaving a "Like" in return

Last edited by RobertHB; August 9, 2018 at 05:39. Reason: See edit.
RobertHB 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 07:38
Out File does not show Imbalance in % Mmaragann CFX 5 January 20, 2017 10:20
Waterwheel shaped turbine inside a pipe simulation problem mshahed91 CFX 3 January 10, 2015 11:19
Difficulty In Setting Boundary Conditions Moinul Haque CFX 4 November 25, 2014 17:30
An error has occurred in cfx5solve: volo87 CFX 5 June 14, 2013 17:44


All times are GMT -4. The time now is 23:01.