CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Meshing & Mesh Conversion (https://www.cfd-online.com/Forums/openfoam-meshing/)
-   -   [Commercial meshers] cyclic multiedge BC (https://www.cfd-online.com/Forums/openfoam-meshing/77186-cyclic-multiedge-bc.html)

karamiag June 16, 2010 03:26

cyclic multiedge BC
 
Hi guys,
I have a 2D mesh made with gambit and I have to set periodicity between inlet and outlet but both of them have more then one edge (in gambit). Using fluentMeshToFoam works if inlet and outlet have only one edge but if there is more than one it does not :(: in particular runnning checkMesh I receive the "possible face ordering problem" message.
Any one has already solved this problem?
Thanks

karamiag June 30, 2010 11:24

Ok, it worked and this is what I have done. I had a domain like this

L3 |-------| R3
L2 |-------| R2
L1 |-------| R1

With createPatch utility, I merged edge L1 and L2 obtaining a single generic patch called L1L2, after this I merged edge L1L2 and L3 obtaining a single patch called L1L2L3; the same on the other hand, obtaining a single patch called R1R2R3. After this, I used createPatch utility to make L1L2L3 periodic with R1R2R3.
This is createPatchDict file for merging L1 and L2:

FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "system";
object createPatchDict;
}

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
matchTolerance 1E-7;
pointSync true;

patches
(
{
name L1L2;
type patch;

dictionary
{
type patch;
}

constructFrom patches;

patches (L1 L2);
}
);


This is my final createPatchDict file:
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "system";
object createPatchDict;
}

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
matchTolerance 1E-7;
pointSync true;

patches
(
{
name period;
type cyclic;

dictionary
{
type cyclic;
}

constructFrom patches;

patches (L1L2L3 R1R2R3);
}
);

Hope this can help.
Bye


All times are GMT -4. The time now is 11:46.