CFD Online Logo CFD Online URL
Home > Forums > OpenFOAM Mesh Utilities

unv mesh corrupted after createPatch

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

LinkBack Thread Tools Display Modes
Old   February 17, 2010, 05:27
Unhappy unv mesh corrupted after createPatch
Senior Member
maddalena's Avatar
Join Date: Mar 2009
Posts: 436
Rep Power: 15
maddalena is on a distinguished road
Dear all,
I am facing problems after running createPatch in OF 1.6 with a unv mesh compound created in Salome:
  • I generate 4 tetra mesh in Salome and build a mesh compound;
  • Save the mesh as UNV and copy on the case folder;
  • Run ideasUnvMeshToFoam. The following problem is reported:
Starting reading points at line 3.
--> FOAM Warning :
From function readPoints(IFstream&, label&, DynamicList<point>, DynamicList<label>&)
in file ideasUnvToFoam.C at line 215
Points not in order starting at point 5463 at line 10924
Read 406227 points.

  • Run paraFoam to check the mesh: everything seems fine. See initialMesh.png attached.
  • Increase the writePrecision to 12 in controlDict;
  • Modify the createPatchDict to match my case;
  • Run createPatch utility. The following problem is reported:
--> FOAM Serious Error :
From function cyclicPolyPatch::Order(const primitivePatch&, labelList&, labelList&) const
in file meshes/polyMesh/polyPatches/constraint/cyclic/cyclicPolyPatch.C at line 1547
Patch:cyclicSides : 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!

  • Increase the relativeTolerance up to 10 to get createPatch work.
  • Check the mesh in paraFoam: one of the cyclic patch is corrupted. Check corruptedMesh.png attached.
I guess that the mixing up of points during the mesh conversion is the cause of the createPatch problem, since I read somewhere that them have to be in a well defined order. Can the mixing up be due to the way the mesh has been created in Salome (not using submeshes but using mesh compound)? Unfortunately, I have no other choice for mesh creation. The only solution is to modify the imported mesh in OpenFoam, but how do that?
Or am I wrong and the problem lays somewhere else? Thanks for your help...
Attached Images
File Type: jpg initialMesh.jpg (54.5 KB, 17 views)
File Type: jpg corruptedMesh.jpg (50.4 KB, 15 views)
maddalena is offline   Reply With Quote

Old   February 18, 2010, 08:43
Talking Solved!
Senior Member
maddalena's Avatar
Join Date: Mar 2009
Posts: 436
Rep Power: 15
maddalena is on a distinguished road
I found the solution to the problem posted yesterday.
  • The Foam Warning I got after checkMesh can be solved renumbering nodes and elements in Salome. However, this does not solved the createPatch error;
  • The Foam Serious Error was due to a too high relativeTolerance on createPatchDict. A tolerance of 5 is not enough to have the face matching, while a tolerance of 10 caused the error. A relativeTolerance of 7.5 solved the problem.
Hope that this will be useful to someone else! Cheers,

maddalena is offline   Reply With Quote


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
Dynamic Mesh Problem. Tom Clark FLUENT 9 July 7, 2010 07:56
UNV mesh converter fails with patch jmf OpenFOAM Bugs 14 November 13, 2009 10:52
problem when converting mesh (made by ICEM) using fluentMeshToFoam Forrest_Lei OpenFOAM 11 October 16, 2009 06:28
basic of mesh refinement arya CFX 4 June 19, 2007 12:21
Mesh Refinement JY Siemens 7 September 19, 2002 13:37

All times are GMT -4. The time now is 17:13.