CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Meshing & Mesh Conversion

[Salome] unv mesh corrupted after createPatch

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 17, 2010, 05:27
Unhappy unv mesh corrupted after createPatch
  #1
Senior Member
 
maddalena's Avatar
 
maddalena
Join Date: Mar 2009
Posts: 436
Rep Power: 18
maddalena will become famous soon enough
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...
maddalena
Attached Images
File Type: jpg initialMesh.jpg (54.5 KB, 18 views)
File Type: jpg corruptedMesh.jpg (50.4 KB, 16 views)
maddalena is offline   Reply With Quote

Old   February 18, 2010, 08:43
Talking Solved!
  #2
Senior Member
 
maddalena's Avatar
 
maddalena
Join Date: Mar 2009
Posts: 436
Rep Power: 18
maddalena will become famous soon enough
Ok,
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,

mad
maddalena is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Other] conformed FSI mesh for unstructured fluid region ashish.svm OpenFOAM Meshing & Mesh Conversion 10 August 2, 2019 09:40
how to set periodic boundary conditions Ganesh FLUENT 14 November 26, 2018 12:26
decomposePar problem: Cell 0contains face labels out of range vaina74 OpenFOAM Pre-Processing 32 February 7, 2018 09:26
[ICEM] 2D hybrid mesh (unstructured mesh highly dependent on structured mesh parameters) shubham jain ANSYS Meshing & Geometry 1 April 10, 2017 06:03
[snappyHexMesh] snappyHexMesh won't work - zeros everywhere! sc298 OpenFOAM Meshing & Mesh Conversion 2 March 27, 2011 22:11


All times are GMT -4. The time now is 06:21.