|
[Sponsors] |
May 3, 2013, 19:09 |
|
#21 |
Member
pooyan
Join Date: Nov 2011
Posts: 62
Rep Power: 15 |
Dear maddalena and Michaelthanks to your comments on this page, I was able to create cyclic patches in openfoam 2.1.0 for 2D geometry. But, when I used the same instruction for 3D geometry, it failed. what could be the possible reason?
So, in my geometry, I want the inlet,outlet, front and back planes to be cyclic Just I want to emphasize that, to define two patches as cyclic, I did not have any problem. but for four patches to be cyclic, I had issues. I did creating cyclic patches for each pair separately which did not work either. I have attached the createPatchDict and my boundary I would be grateful if you can help me. Thanks boundary: ( front { type patch; nFaces 8288; startFace 2780326; } back { type patch; nFaces 8288; startFace 2788614; } inflow { type patch; nFaces 8362; startFace 2796902; } outflow { type patch; nFaces 8362; startFace 2805264; } wall1 { type wall; nFaces 12656; startFace 2813626; } wall2 { type wall; nFaces 12656; startFace 2826282; } ) createPatch: pointSync true; // Patches to create. patches ( { // Name of new patch name inflow_cyclic; // Type of new patch patchInfo { type cyclic; matchTolerance 0.001; neighbourPatch outflow_cyclic; } // How to construct: either from 'patches' or 'set' constructFrom patches; // If constructFrom = patches : names of patches. Wildcards allowed. patches ( inflow ); } { // Name of new patch name outflow_cyclic; // Type of new patch patchInfo { type cyclic; matchTolerance 0.001; neighbourPatch inflow_cyclic; } // How to construct: either from 'patches' or 'set' constructFrom patches; // If constructFrom = patches : names of patches. Wildcards allowed. patches ( outflow ); } { // Name of new patch name front_cyclic; // Type of new patch patchInfo { type cyclic; matchTolerance 0.001; neighbourPatch back_cyclic; } // How to construct: either from 'patches' or 'set' constructFrom patches; // If constructFrom = patches : names of patches. Wildcards allowed. patches ( front ); } { // Name of new patch name back_cyclic; // Type of new patch patchInfo { type cyclic; matchTolerance 0.001; neighbourPatch front_cyclic; } // How to construct: either from 'patches' or 'set' constructFrom patches; // If constructFrom = patches : names of patches. Wildcards allowed. patches ( back ); } ); // ************************************************** *********************** // |
|
May 6, 2013, 03:25 |
|
#22 |
Senior Member
maddalena
Join Date: Mar 2009
Posts: 436
Rep Power: 23 |
Hi Sam,
your problem may lay here: as explained in createPatchDict example you have on your OpenFoam installation: Code:
// 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; Hope this help. mad NB: double posting is NEVER a good idea! |
|
May 8, 2013, 19:06 |
|
#23 |
Member
pooyan
Join Date: Nov 2011
Posts: 62
Rep Power: 15 |
thanks. I guess the problem is solved based on your comment.
|
|
May 10, 2013, 05:50 |
|
#24 |
New Member
James Davies
Join Date: Aug 2012
Posts: 7
Rep Power: 14 |
Hi,
I am running a case alongside one on fluent, hoping to compare the two. I have imported the mesh from gambit and appear to have succesfully implemented createPatchDict to create the cyclic boundarys. The case starts to run, but when it goes to seed the first set of results, i get the following error: More than one patch accesing the same transform but not of the same sign. patch: cyc_half0 transform:0 sign:1 current transforms: (1 0 0) Anyone have any ideas about how to solve this issue? any help greatly appreciated James |
|
May 13, 2013, 22:34 |
|
#25 |
Member
pooyan
Join Date: Nov 2011
Posts: 62
Rep Power: 15 |
which version of OF did you use? if you are using 2.1.X, you should be able to create the cyclic boundaries following this page instruction.
[ QUOTE=james80;426484]Hi, I am running a case alongside one on fluent, hoping to compare the two. I have imported the mesh from gambit and appear to have succesfully implemented createPatchDict to create the cyclic boundarys. The case starts to run, but when it goes to seed the first set of results, i get the following error: More than one patch accesing the same transform but not of the same sign. patch: cyc_half0 transform:0 sign:1 current transforms: (1 0 0) Anyone have any ideas about how to solve this issue? any help greatly appreciated James[/QUOTE] |
|
May 13, 2013, 23:35 |
|
#26 |
Member
pooyan
Join Date: Nov 2011
Posts: 62
Rep Power: 15 |
Dear Mad and Michael,
I was successful in creating cyclic patches for my geometry. Now, my question is regarding the parallel processing. is it enough to add "preservepatches (cyclic boundaries);" into decomposeParDict and then run decomposePar at the terminal? or I should do something extra in order to decompose a domain with cyclic patches? Thanks, pooyan |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Problem with cyclic boundaries in Openfoam 1.5 | fs82 | OpenFOAM | 37 | November 29, 2024 11:15 |
Parallel refineMesh with Cyclic Boundaries | mchurchf | OpenFOAM | 8 | December 22, 2018 12:11 |
mapFields - Changing from turbulentInlet/outlet boundaries to cyclic boundaries | TianC | OpenFOAM Pre-Processing | 8 | January 16, 2013 06:15 |
Wrong wall distance with cyclic boundaries | sebastian | OpenFOAM Bugs | 4 | October 31, 2012 11:24 |
Problems with cyclic boundaries in faMeshDefinition and surfactantFoam | safre | OpenFOAM | 3 | December 12, 2011 08:56 |