CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Other Meshers: ICEM, Star, Ansys, Pointwise, GridPro, Ansa, ...

CreatePatch for build cyclic patch

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   August 8, 2007, 10:30
Default Hi, I have an rotational sy
  #1
Member
 
Matthias Kern
Join Date: Mar 2009
Location: Karlsruhe, Germany
Posts: 36
Rep Power: 8
make is on a distinguished road
Hi,

I have an rotational symmetric grid which I use within CFX. Therefore it has two patches called SYM_1 and SYM_2 linked within CFX as fluid-fluid interface.

I use icem to create the grid and then save it as fluent_v6 mesh. Everytime I try to match these to patches to one cyclic patch using the createPatch tool I get the following errror message.

Removing empty patch SYM_1
Removing empty patch SYM_2
Compacted patches:
WALL size:3036 start:281298
INLETP size:44 start:284334
INLETS size:44 start:284378
INLETB size:12 start:284422
OUT50 size:60 start:284434
OUT70 size:28 start:284494
OUT100 size:44 start:284522
SYM size:0 start:284566
--> FOAM Serious Error :
From function cyclicPolyPatch::order(const primitivePatch&, labelList&, labelList&) const
in file meshes/polyMesh/polyPatches/derivedPolyPatches/cyclicPolyPatch/cyclicPolyPatch.C at line 702
patch:SYM : Cannot match vectors to faces on both sides of patch
half0Ctrs[0]-0.0366477 0.00571359 -0.000299436)
half1Ctrs[0]-0.0366477 0.00571359 -0.000299436)
Please use topological matching or adapt the featureCos() setting
Continuing with incorrect face ordering from now on!
Writing repatched mesh to 1
End

I read all treads I found in the forum dealing with the same error message as above, but there is one difference here. My patches are absolutely planar and the center coordinates in the error message are identical. I also renumered the nodes in CFX and run all error checks. The mesh seems to be fine. It is also not the first grid of this kind which I build in that way. So far all of them worked well. Has anybody experienced anything similar?
make is offline   Reply With Quote

Old   August 8, 2007, 10:40
Default In OpenFOAM, both sides of a c
  #2
Senior Member
 
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,758
Rep Power: 21
hjasak will become famous soon enough
In OpenFOAM, both sides of a cyclic need to be in a single patch, properly ordered. Are yours done like that?

Hrv
__________________
Hrvoje Jasak
Providing commercial FOAM/OpenFOAM and CFD Consulting: http://wikki.co.uk
hjasak is offline   Reply With Quote

Old   August 8, 2007, 10:55
Default That's what I did with createP
  #3
Member
 
Matthias Kern
Join Date: Mar 2009
Location: Karlsruhe, Germany
Posts: 36
Rep Power: 8
make is on a distinguished road
That's what I did with createPatch:
{
name SYM;
type cyclic;
constructFrom patches;
patches (SYM_1 SYM_2);
}
);
I have them in two patches cause CFX needs them to be in two patches.
I also exported my mesh having both sides in one patch and then used couplePatches to order them correctly, same error. I used that geometry before and it worked. Then I changed the blocks to have an OGrid on the axis to improve quality. First I made a coarse grid and this one worked. Now I refined it and since then I have this troubles.
make is offline   Reply With Quote

Old   August 9, 2007, 03:45
Default couplePatches takes all the fa
  #4
Super Moderator
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,416
Rep Power: 16
mattijs is on a distinguished road
couplePatches takes all the faces in a cyclic patch, tries and divide it into two separated halves (either topologically split or split by a feature edge), works out a transformation tensor/displacement vector from two faces, one on either side (note that this will go wrong for non-planar halves) and determines a correspondence between the faces.

Switch on the debug switches for coupledPolyPatch and cyclicPolyPatch and have a look through the code.
mattijs is offline   Reply With Quote

Old   August 9, 2007, 04:51
Default Hi Hrvoje and Mattijs, than
  #5
Member
 
Matthias Kern
Join Date: Mar 2009
Location: Karlsruhe, Germany
Posts: 36
Rep Power: 8
make is on a distinguished road
Hi Hrvoje and Mattijs,

thank you both for your assistance. I browsed through the code and saw that definition and structure of my grid is OK. So I guessed that the failure must lie in the accuracy of my grid points. Having a look in my fluent.msh file showed small differences in the position of the twin vertices.So, I checked the twin nodes in ICEM. During the refinement of the mesh some few twins have been lost. I redefined them and everything is fine now.
That was really like looking for a needle in a haystack.
Thank you again for your help!
make is offline   Reply With Quote

Old   November 21, 2008, 04:32
Default createPatches will create a ne
  #6
Super Moderator
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,416
Rep Power: 16
mattijs is on a distinguished road
createPatches will create a new patch if it does not exist yet. If it already exists it does not change the type.
mattijs is offline   Reply With Quote

Old   November 21, 2008, 04:45
Default Dear Mattijs, Thanks for th
  #7
Member
 
Mahendra
Join Date: Mar 2009
Location: Pune, Maharashtra, India
Posts: 65
Rep Power: 8
mahendra is on a distinguished road
Dear Mattijs,

Thanks for the quick reply.

So how should I make patches those are cyclic on a mesh I imported form Gambit/Fluent?

Regards,
Mahendra.
mahendra is offline   Reply With Quote

Old   January 21, 2009, 05:46
Default Any reply for making cyclic bo
  #8
Member
 
Mahendra
Join Date: Mar 2009
Location: Pune, Maharashtra, India
Posts: 65
Rep Power: 8
mahendra is on a distinguished road
Any reply for making cyclic boundaries on a mesh imported form Gambit/Fluent???

Regards,
Mahendra
mahendra is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
CreatePatch to create cyclic boundary sbence OpenFOAM Mesh Utilities 18 August 30, 2012 06:51
CreatePatch crashes segmentation violation in createPatch for cyclic boundaries sek OpenFOAM Bugs 26 February 10, 2010 12:41
Arbitrary cyclic patch luca OpenFOAM Running, Solving & CFD 5 December 21, 2006 18:50
Problem with cyclic patch and createPatch mattijs OpenFOAM Mesh Utilities 12 August 24, 2006 04:57
Cyclic patch matching tolerance Mattijs Janssens (Mattijs) OpenFOAM Bugs 8 April 19, 2005 15:23


All times are GMT -4. The time now is 20:40.