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

[Salome] ideasUnvToFoam fails

Register Blogs Community New Posts Updated Threads Search

Like Tree6Likes
  • 5 Post By sersol
  • 1 Post By Alosha

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 19, 2010, 09:56
Default ideasUnvToFoam fails
  #1
New Member
 
Join Date: Nov 2009
Posts: 15
Rep Power: 16
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: 16
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: 556
Rep Power: 27
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, 06: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, 18:01
Default
  #5
New Member
 
Luis Fernando
Join Date: May 2013
Posts: 14
Rep Power: 13
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

Old   April 27, 2021, 10:23
Default
  #6
New Member
 
Alosha Lovett
Join Date: Apr 2021
Posts: 4
Rep Power: 5
Alosha is on a distinguished road
Hi, Did you ever manage to find the cause of this error?

I am also stuck with this issue.

Thanks,
Alex
Alosha is offline   Reply With Quote

Old   May 12, 2021, 07:42
Default
  #7
New Member
 
Serkan
Join Date: Jun 2017
Location: Belgium
Posts: 6
Rep Power: 9
sersol is on a distinguished road
Hey all,

After making some trial-and-error cycles between Salome and OpenFOAM, I have solved this problem by simply deleting existent "groups of faces" and recreating new groups under the same mesh (Mesh_1 for example). Some faces must have been misaligned whilst processing in Salome. It's certainly worth trying this out, thereby narrowing your troubleshooting down. Cheers!
sersol is offline   Reply With Quote

Old   May 12, 2021, 08:15
Default
  #8
New Member
 
Alosha Lovett
Join Date: Apr 2021
Posts: 4
Rep Power: 5
Alosha is on a distinguished road
Hi again,

Similarly to the reply above. I solved the issue by deleting some edges from groups in the Salome mesh. For me this causes a bug where Salome refuses to export the mesh as a UNV but I get around this by saving the case and reopening.

Openfoam incorrectly identified points on Z directional edges assigned to a geom group, as face zones.
Raphael_Santos likes this.
Alosha is offline   Reply With Quote

Old   February 20, 2024, 01:21
Default
  #9
New Member
 
Ashish Singh
Join Date: Feb 2024
Posts: 3
Rep Power: 2
sinsinwar is on a distinguished road
Quote:
After making some trial-and-error cycles between Salome and OpenFOAM, I have solved this problem by simply deleting existent "groups of faces" and recreating new groups under the same mesh (Mesh_1 for example). Some faces must have been misaligned whilst processing in Salome. It's certainly worth trying this out, thereby narrowing your troubleshooting down.
This worked! I was also facing the "FOAM exiting" error, so I went back to Salome and deleted a group of edges in the mesh (it was the only one). Now, the OpenFOAM mesh is generated successfully. Thanks a lot!
sinsinwar is offline   Reply With Quote

Reply


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
[Netgen] ideasUnvToFoam with inner parts anton_lias OpenFOAM Meshing & Mesh Conversion 31 September 6, 2019 10:36
[Salome] ideasUnvToFoam Error: Assertion `nouveau > -1' failed GerhardHolzinger OpenFOAM Meshing & Mesh Conversion 0 January 29, 2019 11:23
[Salome] ideasUnvToFoam error Matt_h OpenFOAM Meshing & Mesh Conversion 3 October 5, 2015 11:05
[Salome] Problem with ideasUnvToFoam mpalacz_sut OpenFOAM Meshing & Mesh Conversion 1 July 28, 2013 15:48
[Salome] ideasUnvToFoam problem with internal groups s.marcocalero OpenFOAM Meshing & Mesh Conversion 0 May 31, 2013 12:48


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