CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Meshing & Mesh Conversion (https://www.cfd-online.com/Forums/openfoam-meshing/)
-   -   [Salome] ideasUnvToFoam fails (https://www.cfd-online.com/Forums/openfoam-meshing/72848-ideasunvtofoam-fails.html)

pizzaice February 19, 2010 08:56

ideasUnvToFoam fails
 
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 February 25, 2010 07:07

Further description of Problem
 
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

linnemann February 28, 2010 15:12

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.

l.bardelli May 23, 2012 05:48

ideasUnvToFoam fails too
 
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

ingarcia1703 July 19, 2013 17:01

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.

Alosha April 27, 2021 09:23

Hi, Did you ever manage to find the cause of this error?

I am also stuck with this issue.

Thanks,
Alex

sersol May 12, 2021 06:42

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!

Alosha May 12, 2021 07:15

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.

sinsinwar February 20, 2024 00:21

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!


All times are GMT -4. The time now is 13:50.