CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Bugs

UNV mesh converter fails with patch

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

Reply
 
LinkBack Thread Tools Display Modes
Old   September 9, 2009, 17:30
Default UNV mesh converter fails with patch
  #1
jmf
Member
 
J Michel
Join Date: Aug 2009
Location: Orleans - France
Posts: 44
Rep Power: 8
jmf is on a distinguished road
Hi forum

UNV mesh converter succeeds in converting nodes and cells of .unv from SALOME, but fails while building patches of some meshes.

The message is :

Code:
Build  : 1.6-53b7f692aa41
Exec   : ideasUnvToFoam mesh.unv
Date   : Sep 09 2009
Time   : 22:26:38
Host   : linux-a6ws
PID    : 5383
Case   : /home/nous/OpenFOAM/nous-1.6/run/run/case
nProcs : 1
SigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
 Create time
 Processing tag:2411
Starting reading points at line 3.
Read 4156 points.
 Processing tag:2412
Starting reading cells at line 8318.
First occurrence of element type 11 for cell 1 at line 8319
First occurrence of element type 41 for cell 378 at line 9450
First occurrence of element type 111 for cell 2584 at line 13862
Read 21238 cells and 2206 boundary faces.
 Processing tag:2467
Starting reading patches at line 56340.
For facegroup 0 named outer trying to read 76 patch face indices.
 When reading patches expect Entity Type Code 8
At line 56343
     From function readPatches
    in file ideasUnvToFoam.C at line 464.
 FOAM exiting
Hereafter is an extract of the .unv file. "outer" is the patch name. The failure line 56343 is the last one:

Code:
      2052      1936      1962      2063
     23821       111         2         1         7         4
      2236      2220      2461      1745
    -1
    -1
  2467
         0         0         0         0         0         0         0        76
outer
         7       317         0         0         7       318         0         0
         7       319         0         0         7       320         0         0
Any help would be appreciated

Thanks in advance

Jean-Michel
jmf is offline   Reply With Quote

Old   September 10, 2009, 04:43
Default
  #2
Super Moderator
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,416
Rep Power: 16
mattijs is on a distinguished road
What is the difference between files that work and those that don't? In the source directory ($FOAM_UTILITIES/mesh/conversion/ideasUnvToFoam/) there is a unv/ subdirectory with some sample files.
mattijs is offline   Reply With Quote

Old   September 10, 2009, 18:20
Default Solved : UNV mesh converter fails with patch
  #3
jmf
Member
 
J Michel
Join Date: Aug 2009
Location: Orleans - France
Posts: 44
Rep Power: 8
jmf is on a distinguished road
Dear Mattijs

Thanks for your advise : I compared sample .unv files with mine and found out that ideasUnvToFoam failure was caused by useless groups of nodes (Entity code = 7 instead of 8)

Everything runs fine now

Best wishes

J-Michel
jmf is offline   Reply With Quote

Old   October 17, 2009, 05:21
Default
  #4
New Member
 
Michael
Join Date: Oct 2009
Posts: 6
Rep Power: 7
druckgott is on a distinguished road
How do you have changed this.

In the Unv file or is it posible to change this in salome?

thx

PS because have same problem.
Also starts at 7
druckgott is offline   Reply With Quote

Old   October 17, 2009, 05:53
Default UNV mesh converter fails with entity code 7
  #5
jmf
Member
 
J Michel
Join Date: Aug 2009
Location: Orleans - France
Posts: 44
Rep Power: 8
jmf is on a distinguished road
Hi Michael

I just deleted all nodes groups in SALOME before exporting to .unv

Best wishes

J-Michel
jmf is offline   Reply With Quote

Old   October 17, 2009, 06:16
Default
  #6
New Member
 
Michael
Join Date: Oct 2009
Posts: 6
Rep Power: 7
druckgott is on a distinguished road
How can I do this?
Could you give me a short explanation?

I have just start working with salome
thx
druckgott is offline   Reply With Quote

Old   October 17, 2009, 08:31
Default UNV mesh converter fails with entity code 7
  #7
jmf
Member
 
J Michel
Join Date: Aug 2009
Location: Orleans - France
Posts: 44
Rep Power: 8
jmf is on a distinguished road
Dear Michael

- activate Mesh module (scroll list or mesh icon)
- develop your mesh tree completely
--> you should find "Group of Nodes" and "Goup of Faces"
- right mouse button on each group of nodes names and delete them

SALOME in line help is quite nice, have a look inside

Otherwise you might try removing in your .unv file all the lines with entity code 7. It may work, I did not try

Best wishes

J-Michel
jmf is offline   Reply With Quote

Old   October 17, 2009, 09:06
Default
  #8
New Member
 
Michael
Join Date: Oct 2009
Posts: 6
Rep Power: 7
druckgott is on a distinguished road
ok thx I get it
druckgott is offline   Reply With Quote

Old   October 18, 2009, 12:32
Default
  #9
Super Moderator
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,416
Rep Power: 16
mattijs is on a distinguished road
Hi,

do you have a sample file that fails? I'll fix it in the converter itself.
mattijs is offline   Reply With Quote

Old   October 18, 2009, 13:55
Default
  #10
New Member
 
Michael
Join Date: Oct 2009
Posts: 6
Rep Power: 7
druckgott is on a distinguished road
Quote:
Originally Posted by druckgott View Post
ok thx I get it
Ah thank you it works with the solution of jmf
druckgott is offline   Reply With Quote

Old   October 18, 2009, 14:33
Default UNV mesh converter fails with entity code 7
  #11
jmf
Member
 
J Michel
Join Date: Aug 2009
Location: Orleans - France
Posts: 44
Rep Power: 8
jmf is on a distinguished road
Hi Mattijs

Please find here enclosed a small .unv file

Jean-Michel
Attached Files
File Type: zip mesh.unv.zip (1.9 KB, 8 views)
jmf is offline   Reply With Quote

Old   October 18, 2009, 16:02
Default
  #12
Super Moderator
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,416
Rep Power: 16
mattijs is on a distinguished road
Thanks. I pushed a fix to 1.6.x so it can read your file and I've added your file as an example to the unv/ subdirectory.
mattijs is offline   Reply With Quote

Old   November 13, 2009, 00:17
Default ideasUnvToFoam 1.5 doesn´t work
  #13
New Member
 
Jonathas Assunção de Castro
Join Date: Mar 2009
Posts: 11
Rep Power: 8
jonmec is on a distinguished road
Hello ...

I tried to convert a .unv mesh using ideasUnvToFoam utility, but I have always the same problem:

" Cannot open file ...

From function ideasUnvToFoam in file ideasUnvToFoam.C at line 585

FOAM exiting"

Please ... I need help!!

Thanks
Attached Files
File Type: c ideasUnvToFoam.C (23.2 KB, 2 views)

Last edited by jonmec; November 13, 2009 at 10:48. Reason: This is not a bug
jonmec is offline   Reply With Quote

Old   November 13, 2009, 07:19
Default
  #14
Super Moderator
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,416
Rep Power: 16
mattijs is on a distinguished road
You need to supply the complete filename as an argument. This does not sound like a bug so please move this discussion off this OpenFOAM-bugs forum and into e.g. the preprocessing forum.
mattijs is offline   Reply With Quote

Old   November 13, 2009, 10:52
Default
  #15
New Member
 
Jonathas Assunção de Castro
Join Date: Mar 2009
Posts: 11
Rep Power: 8
jonmec is on a distinguished road
Mattijs ... how could I delete my message?
jonmec is offline   Reply With Quote

Reply

Tags
converter, mesh, patch, unv

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
Grid check fails after sliding mesh calculation Tito FLUENT 0 March 3, 2008 15:28
Moving interface patch using mesh subsets lr103476 OpenFOAM Running, Solving & CFD 0 January 10, 2008 17:14
Convergence moving mesh lr103476 OpenFOAM Running, Solving & CFD 30 November 19, 2007 15:09
Mesh Mignard FLUENT 2 March 22, 2000 06:12
unstructured vs. structured grids Frank Muldoon Main CFD Forum 1 January 5, 1999 11:09


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