Change UNV pyr to type 119?

Hello Franco,

Unfortunately, OpenFoam’s UNV reader does not manage dataset 119 or 312. Here are 2 versions of the same mesh so that you can test without compiling SMESH.

Mesh_pyra.zip (26,5 Ko)

Running ideasUnvToFoam.exe on these files gives:

  • 119:
--> FOAM Warning :
    From void readCells(Foam::IFstream&, Foam::DynamicList<Foam::cellShape>&, Foam::DynamicList<int>&, Foam::DynamicList<int>&, Foam::DynamicList<Foam::face, 16>&, Foam::DynamicList<int>&, Foam::DynamicList<int>&)
    in file ideasUnvToFoam.C at line 453
    Reading "Mesh_pyra_119.unv" at line 1010
    Cell type 119 not supported

  • 312:
--> FOAM Warning :
    From void readCells(Foam::IFstream&, Foam::DynamicList<Foam::cellShape>&, Foam::DynamicList<int>&, Foam::DynamicList<int>&, Foam::DynamicList<Foam::face, 16>&, Foam::DynamicList<int>&, Foam::DynamicList<int>&)
    in file ideasUnvToFoam.C at line 453
    Reading "Mesh_pyra_312.unv" at line 1010
    Cell type 312 not supported

Indeed, we can see in ideasUnvToFoam.C (search for “feID ==”) that these datasets are not read. The reader needs to be improved in OpenFoam’s side.

Christophe

1 Like