View Issue Details

IDProjectCategoryView StatusLast Update
0002627OpenFOAMBugpublic2017-09-09 16:50
Reporteraibrah8 Assigned Towyldckat  
PriorityhighSeveritymajorReproducibilityalways
Status closedResolutionno change required 
OSUbuntuOS Version16.04 
Summary0002627: Cell type 22 not supported in ideasUnvToFoam.C file
DescriptionDear All,
I have produced 3D (2D-3D NETGEN) mesh by Salome V_8.2.0 and exported it to OpenFoam2.4.0. However, I got the following error:-

First occurrence of element type 22 for cell 1 at line 205926
--> FOAM Warning :
    From function readCells(IFstream&, label&)
    in file ideasUnvToFoam.C at line 467
    Reading "simple_case.unv" at line 205926
    Cell type 22 not supported


--> FOAM FATAL IO ERROR:
Attempt to get back from bad stream

file: IStringStream.sourceFile at line 0.

    From function void Istream::getBack(token&)
    in file db/IOstreams/IOstreams/Istream.C at line 56.

FOAM exiting




   From one cfdonline old suggestion about similar case I knew that the solution is to find a newer version of the file ideasUnvToFoam.C in the directory (/home/xxx/OpenFOAM/OpenFOAM-2.4.0/applications/utilities/mesh/conversion/ideasUnvToFoam) and run wmake after replacing it with the older ideasUnvToFoam.C version. I have copied ideasUnvToFoam.C of OpenFoa-extend 4 and followed the procedure mentined above. However, I got the following error after typing wmake in terminal :
ideasUnvToFoam.C:37:22: fatal error: foamTime.H: No such file or directory
compilation terminated.
ideasUnvToFoam.dep:311: recipe for target 'Make/linux64GccDPOpt/ideasUnvToFoam.o' failed
make: *** [Make/linux64GccDPOpt/ideasUnvToFoam.o] Error 1

Any suggestions?
Steps To ReproduceideasUnvToFoam xxx.unv
Additional InformationThe original salome file is inserted.
TagsNo tags attached.

Relationships

related to 0002691 resolvedhenry Unable to convert UNV mesh 

Activities

wyldckat

2017-07-20 11:32

updater   ~0008423

That cell type 22 is not supported in any OpenFOAM version nor any fork or variant of OpenFOAM. Therefore, I doubt that this is even available on foam-extend 4, from where you got that "ideasUnvToFoam.C" file from.

Furthermore, cell type 22 is apparently a 2D cell, as indicated here: https://www.cfd-online.com/Forums/openfoam-meshing-open/73971-mesh-conversion-salome-openfoam.html#post305957

Which means that the problem is that you are generating the mesh on Salome as a 2D mesh. You need to extrude the mesh into 3D and then export it to UNV, in order for it to be importable into OpenFOAM.

I'm closing this report, since there isn't much to be done here and it's borderline user support. And as a possible future feature, supporting 2D import from UNV format seems to me as a redundant effort, since Salome should be able to extrude the 2D mesh into 3D with the least amount of effort.

Issue History

Date Modified Username Field Change
2017-07-20 06:54 aibrah8 New Issue
2017-07-20 11:32 wyldckat Note Added: 0008423
2017-07-20 11:32 wyldckat Assigned To => wyldckat
2017-07-20 11:32 wyldckat Status new => closed
2017-07-20 11:32 wyldckat Resolution open => no change required
2017-09-09 16:50 wyldckat Relationship added related to 0002691