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

ideasUnvToFoam fails

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

Reply
 
LinkBack Thread Tools Display Modes
Old   February 19, 2010, 09:56
Default ideasUnvToFoam fails
  #1
New Member
 
Join Date: Nov 2009
Posts: 15
Rep Power: 7
pizzaice is on a distinguished road
hi everyone,
I have got an issue with ideasUnvToFoam.

I am trying to convert a UNV mesh generated with salome using the above converter. However, I continually get the error:

Code:
Build  : 1.6.x-f6aa54d23187                                                                                                                                                                                                 
Exec   : ideasUnvToFoam Compound_Mesh_1.unv                                                                                                                                                                                 
Date   : Feb 19 2010                                                                                                                                                                                                        
Time   : 14:51:46                                                                                                                                                                                                           
Host   : dhcp-184                                                                                                                                                                                                           
PID    : 8374                                                                                                                                                                                                               
Case   : /home/phi/OpenFOAM/phi-1.6.x/run/19_02_Door                                                                                                                                                                        
nProcs : 1                                                                                                                                                                                                                  
SigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).                                                                                                                                                          
                                                                                                                                                                                                                            
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //                                                                                                                                             
Create time                                                                                                                                                                                                                 
                                                                                                                                                                                                                            
Processing tag:2411                                                                                                                                                                                                         
Starting reading points at line 3.                                                                                                                                                                                          
Read 12229 points.                                                                                                                                                                                                          
                                                                                                                                                                                                                            
Processing tag:2412                                                                                                                                                                                                         
Starting reading cells at line 24464.                                                                                                                                                                                       
First occurrence of element type 11 for cell 1 at line 24465                                                                                                                                                                
First occurrence of element type 41 for cell 335 at line 25467                                                                                                                                                              
First occurrence of element type 111 for cell 2583 at line 29963                                                                                                                                                            
Read 58951 cells and 8588 boundary faces.                                                                                                                                                                                   
                                                                                                                                                                                                                            
Processing tag:2467                                                                                                                                                                                                         
Starting reading patches at line 161339.                                                                                                                                                                                    
For group 1 named Inner_Walls trying to read 1394 patch face indices.                                                                                                                                                       
For group 2 named Inner_Volume trying to read 8001 patch face indices.                                                                                                                                                      
For group 3 named OuterAirWalls trying to read 6340 patch face indices.                                                                                                                                                     
For group 4 named Air_Vol trying to read 50950 patch face indices.                                                                                                                                                          

Sorting boundary faces according to group (patch)


--> FOAM FATAL ERROR: 
2583 not found in table.  Valid entries: 
8588                                     
(                                        
16384                                    
16385                                    

...

16382
16383
)


    From function HashTable<T, Key, Hash>::operator[](const Key&)
    in file /home/phi/OpenFOAM/OpenFOAM-1.6.x/src/OpenFOAM/lnInclude/HashTableI.H at line 111.

FOAM exiting
I have had a good look at the example files in the utilities folder but they seem to have exactly the same structure.. is this a bug in ideasUnvToFoam?

Any ideas?

All the best,

Chris
pizzaice is offline   Reply With Quote

Old   February 25, 2010, 08:07
Default Further description of Problem
  #2
New Member
 
Join Date: Nov 2009
Posts: 15
Rep Power: 7
pizzaice is on a distinguished road
Hi again,

I think I narrowed down the problem but still don't understand why ideasUnvToFoam won't work. Any help would be really appreciated.

I constructed a test case, consisting of a simple block. Now, in Salome, if I define only the "Walls" of the box as boundary faces, ideasUnvToFoam works fine. However, as soon as I define the volume in between the faces the converter stops with an error as printed above.
Now one might say, don't define the volume then.. In my case, I have to different volumes in a room that have different temperatures and pressures... The easiest way I could think of this was to define two different boundaries... Any other ideas?

Many thanks,

Chris
pizzaice is offline   Reply With Quote

Old   February 28, 2010, 16:12
Default
  #3
Senior Member
 
linnemann's Avatar
 
Niels Nielsen
Join Date: Mar 2009
Location: NJ - Denmark
Posts: 450
Rep Power: 15
linnemann will become famous soon enough
Hi

Could you post the Salome script? then its easier to have a look.

It sounds like you have two volumes which are connected in some way? correct me if I'm wrong. I don't think the ideasUnvToFoam converter supports multiple volumes. So export them separately and connect the BC using Ggi from 1.5-dev or stitchMesh.
__________________
Linnemann

PS. I do not do personal support, so please post in the forums.
linnemann is offline   Reply With Quote

Old   May 23, 2012, 05:48
Default ideasUnvToFoam fails too
  #4
New Member
 
Lucas Bardelli
Join Date: Mar 2011
Posts: 1
Rep Power: 0
l.bardelli is on a distinguished road
Hi,

I also have an issue with conversion using a UNV mesh generated with salome 6.4.

Funny thing is, I get different error messages using OF 2.0.1 and OF 2.1.0.

Can anyone help me understanding this problem?

Here with OF 2.0.1:
Code:
/*---------------------------------------------------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.0.1 |
| \\ / A nd | Web: www.OpenFOAM.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
Build : 2.0.1-51f1de99a4bc
Exec : ideasUnvToFoam mesh_longeron_intV11.unv
Date : May 22 2012
Time : 14:29:03
Host : deva-OptiPlex-GX620
PID : 1573
nProcs : 1
sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster
allowSystemOperations : Disallowing user-supplied system call operations
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time
Processing tag:2411
Starting reading points at line 3.
Read 344340 points.
Processing tag:2412
Starting reading cells at line 688686.
First occurrence of element type 11 for cell 1 at line 688687
First occurrence of element type 44 for cell 1801 at line 694087
First occurrence of element type 115 for cell 140817 at line 985535
Read 328020 cells and 125600 boundary faces.
Processing tag:2467
Starting reading patches at line 1641577.
For group 1 named face_avant_longeron_int trying to read 3400 patch face indices.
For group 2 named face_arriere_longeron_int trying to read 3400 patch face indices.
For group 3 named longeron_int_to_eau trying to read 26400 patch face indices.
For group 4 named longeron_int_to_air_int trying to read 63360 patch face indices.
ideasUnvToFoam: ideasUnvToFoam.C:881: int main(int, char**): Assertion `nrFaceCells[faceI] == 1 || nrFaceCells[faceI] == 2' failed.
Abandon
Now with OF 2.1.0:
Code:
/*---------------------------------------------------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.1.0 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
Build : 2.1.0-0bc225064152
Exec : ideasUnvToFoam mesh_longeron_intV11.unv
Date : May 23 2012
Time : 11:33:39
Host : "lucas-HP-xw8400-Workstation"
PID : 21919
nProcs : 1
sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster
allowSystemOperations : Disallowing user-supplied system call operations
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time
Processing tag:2411
Starting reading points at line 3.
Read 344340 points.
Processing tag:2412
Starting reading cells at line 688686.
First occurrence of element type 11 for cell 1 at line 688687
First occurrence of element type 44 for cell 1801 at line 694087
First occurrence of element type 115 for cell 140817 at line 985535
Read 328020 cells and 125600 boundary faces.
Processing tag:2467
Starting reading patches at line 1641577.
For group 1 named face_avant_longeron_int trying to read 3400 patch face indices.
For group 2 named face_arriere_longeron_int trying to read 3400 patch face indices.
For group 3 named longeron_int_to_eau trying to read 26400 patch face indices.
For group 4 named longeron_int_to_air_int trying to read 63360 patch face indices.
Of 125600 so-called boundary faces 29040 belong to two cells and are therefore internal
Sorting boundary faces according to group (patch)
0: face_avant_longeron_int is patch
1: face_arriere_longeron_int is patch
2: longeron_int_to_eau is patch
3: longeron_int_to_air_int is patch
Constructing mesh with non-default patches of size:
face_avant_longeron_int 3400
face_arriere_longeron_int 3400
longeron_int_to_eau 26400
longeron_int_to_air_int 63360
 
--> FOAM FATAL ERROR: 
Trying to specify a boundary face 4(68 560 2152 552) on the face on cell 26730 which is either an internal face or already belongs to some other patch. This is face 130 of patch 0 named face_avant_longeron_int.
From function polyMesh::setTopology
(
const cellShapeList& cellsAsShapes,
const faceListList& boundaryFaces,
const wordList& boundaryPatchNames,
labelList& patchSizes,
labelList& patchStarts,
label& defaultPatchStart,
label& nFaces,
cellList& cells
)
in file meshes/polyMesh/polyMeshFromShapeMesh.C at line 360.
FOAM aborting
#0 Foam::error::printStack(Foam::Ostream&) in "/opt/openfoam210/platforms/linux64GccDPOpt/lib/libOpenFOAM.so"
#1 Foam::error::abort() in "/opt/openfoam210/platforms/linux64GccDPOpt/lib/libOpenFOAM.so"
#2 Foam::polyMesh::setTopology(Foam::List<Foam::cellShape> const&, Foam::List<Foam::List<Foam::face> > const&, Foam::List<Foam::word> const&, Foam::List<int>&, Foam::List<int>&, int&, int&, Foam::List<Foam::cell>&) in "/opt/openfoam210/platforms/linux64GccDPOpt/lib/libOpenFOAM.so"
#3 Foam::polyMesh::polyMesh(Foam::IOobject const&, Foam::Xfer<Foam::Field<Foam::Vector<double> > > const&, Foam::List<Foam::cellShape> const&, Foam::List<Foam::List<Foam::face> > const&, Foam::List<Foam::word> const&, Foam::List<Foam::word> const&, Foam::word const&, Foam::word const&, Foam::List<Foam::word> const&, bool) in "/opt/openfoam210/platforms/linux64GccDPOpt/lib/libOpenFOAM.so"
#4 
in "/opt/openfoam210/platforms/linux64GccDPOpt/bin/ideasUnvToFoam"
#5 __libc_start_main in "/lib/x86_64-linux-gnu/libc.so.6"
#6 
in "/opt/openfoam210/platforms/linux64GccDPOpt/bin/ideasUnvToFoam"
Aborted
Thanks

Lucas
l.bardelli is offline   Reply With Quote

Old   July 19, 2013, 17:01
Default
  #5
New Member
 
Luis Fernando
Join Date: May 2013
Posts: 8
Rep Power: 4
ingarcia1703 is on a distinguished road
Hi everyone!

I'm working on a simulation too, and it appears the same mistake:

ingarcia@ingarcia-desktop:~$ cd CFD-Openfoam/prueba9/
ingarcia@ingarcia-desktop:~/CFD-Openfoam/prueba9$ ideasUnvToFoam prueba9.unv
/*---------------------------------------------------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.0.1 |
| \\ / A nd | Web: www.OpenFOAM.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
Build : 2.0.1-51f1de99a4bc
Exec : ideasUnvToFoam prueba9.unv
Date : Jul 19 2013
Time : 15:54:56
Host : ingarcia-desktop
PID : 2947
Case : /home/ingarcia/CFD-Openfoam/prueba9
nProcs : 1
sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster
allowSystemOperations : Disallowing user-supplied system call operations

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

Processing tag:2411
Starting reading points at line 3.
Read 9616 points.

Processing tag:2412
Starting reading cells at line 19238.
First occurrence of element type 11 for cell 1 at line 19239
First occurrence of element type 41 for cell 631 at line 21129
Read 0 cells and 19232 boundary faces.

Processing tag:2467
Starting reading patches at line 59595.
For group 1 named inlet trying to read 8 patch face indices.
For group 2 named outlet trying to read 6 patch face indices.
For group 3 named walls trying to read 19198 patch face indices.

ideasUnvToFoam: ideasUnvToFoam.C:881: int main(int, char**): Assertion `nrFaceCells[faceI] == 1 || nrFaceCells[faceI] == 2' failed.
Aborted

I'm defining the inlet, outlet and walls volume , but I can't find the solution of that problem yet. If anyone has solved it, I'll appreciate your help.

Thank you very much.
ingarcia1703 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
ideasUnvToFoam / anaysToFoam Errors sgelliott3 OpenFOAM Meshing & Mesh Conversion 3 December 14, 2011 05:38
Problems with ideasUnvToFoam jonmec OpenFOAM Mesh Utilities 2 March 30, 2011 16:46
UNV mesh converter fails with patch jmf OpenFOAM Bugs 14 November 13, 2009 10:52
IdeasUnvToFoam Bug amp Fix benru OpenFOAM Bugs 42 November 13, 2009 08:59
fails saying “small gaps” Neser FLUENT 2 February 2, 2004 21:16


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