Unable to read cdb file in PyPrimeMesh.

Rajesh Meena
Rajesh Meena Moderator, Employee Posts: 128
100 Comments 25 Likes Second Anniversary 5 Answers
✭✭✭✭

I am unable to read a cdb file exported from 2023R1 Mechanical or APDL solver. The PyPrimeMesh server throws below error.


Best Answer

  • Rajesh Meena
    Rajesh Meena Moderator, Employee Posts: 128
    100 Comments 25 Likes Second Anniversary 5 Answers
    ✭✭✭✭
    Answer ✓

    You might be aware we have added a new blocked command 'ETBLOCK' in cdb for defining the Element types and keyopts starting from 2023R1.

    PyPrimeMesh Does not recognize this command and ignores this. But that leads to undefined element types. That is the reason Prime server throws that error. Commenting ETBLOCK and defining ET and keyopts would make it compatible with PyPrimeMesh. One can write a simple python script for the same.