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

Periodic Boundary Condition For The Edges of Parallelogram

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 18, 2020, 03:19
Default Periodic Boundary Condition For The Edges of Parallelogram
  #1
New Member
 
Duc Anh
Join Date: Dec 2018
Posts: 22
Rep Power: 7
anhkenyt is on a distinguished road
hi foamer,
I want to define 4 cyclics boundary for 4 edges of the parallelog channel. But I have a problem with 2 edges which were tilted against the axis (look at the picture below).
I was used gmsh to meshing and used createPatchDict to create cyclic boundary.
Code:
/*--------------------------------*- C++ -*----------------------------------*\
  =========                 |
  \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
   \\    /   O peration     | Website:  https://openfoam.org
    \\  /    A nd           | Version:  6
     \\/     M anipulation  |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    object      createPatchDict;
}

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

// Do a synchronisation of coupled points after creation of any patches.
// Note: this does not work with points that are on multiple coupled patches
//       with transformations (i.e. cyclics).
pointSync false;

// Optional: Write cyclic matches into .obj format; defaults to false.
writeCyclicMatch  false;

// Patches to create.
patches
(
    {
        //- Master side patch
        name            in_1;
        patchInfo
        {
            type            cyclic;
            matchTolerance  0.0001;
            neighbourPatch  out_1;
            transform       translational;
	   	    separationVector  (8e-6 0 0) ;
        }
        constructFrom patches;
        patches (in1);
    }

    {
        //- Slave side patch
        name            out_1;
        patchInfo
        {
            type            cyclic;
            matchTolerance  0.0001;
            neighbourPatch  in_1;
            transform       translational;
			separationVector  (-8e-6 0 0);
        }
        constructFrom patches;
        patches (out1);
    }

    {
        //- Master side patch
        name            in_2;
        patchInfo
        {
            type            cyclic;
           // inGroups        1(cyclicAMI);
            matchTolerance  0.0001;
            neighbourPatch  out_2;
            transform       translational;
			separationVector  (0 -8e-6 0 ) ;       
		}
        constructFrom patches;
        patches (in2);
    }

    {
        //- Slave side patch
        name            out_2;
        patchInfo
        {
            type            cyclic;
           // inGroups        1(cyclicAMI);
            matchTolerance  0.0001;
            neighbourPatch  in_2;
            transform       translational;
			separationVector  (0 8e-6 0 );
        }
        constructFrom patches;
        patches (out2);
    }
);
I face a problem :"face 0 area does not match neighbour by 22.2222% -- possible face ordering problem.
patch:in_2 my area:1e-13 neighbour area:8e-14 matching tolerance:0.0001
"
I was tried cyclicAMI but it is not fit in my solver which I was developed.
Any one help me to create cyclic boundary for these edge.
Thank you so much,
Attached Images
File Type: png Screenshot from 2020-05-18 14-10-54.png (19.7 KB, 8 views)
anhkenyt is offline   Reply With Quote

Reply

Tags
cyclic boundary condition, gmsh 4.0.4


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
Wind turbine simulation Saturn CFX 58 July 3, 2020 01:13
Speed problem of periodic boundary condition imposed on pitching airfoil. TG777 OpenFOAM Running, Solving & CFD 1 March 20, 2020 16:33
[snappyHexMesh] Error snappyhexmesh - Multiple outside loops avinashjagdale OpenFOAM Meshing & Mesh Conversion 53 March 8, 2019 09:42
Question about heat transfer coefficient setting for CFX Anna Tian CFX 1 June 16, 2013 06:28
RPM in Wind Turbine Pankaj CFX 9 November 23, 2009 04:05


All times are GMT -4. The time now is 18:26.