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

UNV mesh converter fails with patch

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By Saleh Abuhanieh

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 9, 2009, 18:30
Default UNV mesh converter fails with patch
  #1
jmf
Member
 
Jean-Michel FONTAINE
Join Date: Aug 2009
Location: Orleans - France
Posts: 55
Rep Power: 17
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, 05:43
Default
  #2
Senior Member
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,419
Rep Power: 26
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, 19:20
Default Solved : UNV mesh converter fails with patch
  #3
jmf
Member
 
Jean-Michel FONTAINE
Join Date: Aug 2009
Location: Orleans - France
Posts: 55
Rep Power: 17
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, 06:21
Default
  #4
New Member
 
Michael
Join Date: Oct 2009
Posts: 6
Rep Power: 17
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, 06:53
Default UNV mesh converter fails with entity code 7
  #5
jmf
Member
 
Jean-Michel FONTAINE
Join Date: Aug 2009
Location: Orleans - France
Posts: 55
Rep Power: 17
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, 07:16
Default
  #6
New Member
 
Michael
Join Date: Oct 2009
Posts: 6
Rep Power: 17
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, 09:31
Default UNV mesh converter fails with entity code 7
  #7
jmf
Member
 
Jean-Michel FONTAINE
Join Date: Aug 2009
Location: Orleans - France
Posts: 55
Rep Power: 17
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, 10:06
Default
  #8
New Member
 
Michael
Join Date: Oct 2009
Posts: 6
Rep Power: 17
druckgott is on a distinguished road
ok thx I get it
druckgott is offline   Reply With Quote

Old   October 18, 2009, 13:32
Default
  #9
Senior Member
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,419
Rep Power: 26
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, 14:55
Default
  #10
New Member
 
Michael
Join Date: Oct 2009
Posts: 6
Rep Power: 17
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, 15:33
Default UNV mesh converter fails with entity code 7
  #11
jmf
Member
 
Jean-Michel FONTAINE
Join Date: Aug 2009
Location: Orleans - France
Posts: 55
Rep Power: 17
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, 12 views)
jmf is offline   Reply With Quote

Old   October 18, 2009, 17:02
Default
  #12
Senior Member
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,419
Rep Power: 26
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: 17
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, 5 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
Senior Member
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,419
Rep Power: 26
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: 17
jonmec is on a distinguished road
Mattijs ... how could I delete my message?
jonmec is offline   Reply With Quote

Old   September 1, 2018, 13:34
Default
  #16
Member
 
fede32's Avatar
 
Federico Agustín Caccia
Join Date: Jun 2015
Location: Buenos Aires, Argentina
Posts: 55
Rep Power: 11
fede32 is on a distinguished road
Quote:
Originally Posted by jmf View Post
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

Hi, I'm having the same error. I have not group of nodes. I dont know how to fix it.
fede32 is offline   Reply With Quote

Old   January 4, 2019, 12:08
Default
  #17
Member
 
Saleh Abuhanieh
Join Date: Nov 2017
Posts: 83
Rep Power: 9
Saleh Abuhanieh is on a distinguished road
Hi,


It seems there is a problem in ideasUnvToFoam with foam-Extended fork.


The foam can read the polyMesh folder (it works for me for many cases but not 100% sure) which has been generated using OpenFoam forks.
So, you may use ideasUnvToFoam with OpenFoam then copy the folder.


Saleh
wyldckat likes this.
Saleh Abuhanieh is offline   Reply With Quote

Reply

Tags
converter, mesh, patch, unv


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
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 04:53.