Unable to read cdb file in PyPrimeMesh.

Options
Rajesh Meena
Rajesh Meena Moderator, Employee Posts: 67
First Anniversary Solution Developer Community of Practice Member Ansys Employee 5 Likes

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: 67
    First Anniversary Solution Developer Community of Practice Member Ansys Employee 5 Likes
    Answer ✓
    Options

    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.