-
Hi everyone I ran into a critical issue with face extraction logic failing due to bad-looking elements in mapdl.mesh.elem. [157, 199, 165, 165] These elements have, duplicated nodes, only 3–4 unique node IDs total node count ≠ expected 8 (for SOLID185) or 10 (for SOLID187), yet the original .msh file shows 'tetra' in mesh.cells_dict, which suggests a proper volume mesh. The .cdb writer is: Questions: Any help or reference implementations would be appreciated — I’m aiming to build a general face-tagging engine for structural simulations across tet and hex meshes. Thanks in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
Hi @AltoAuto I don't see where Meshio supports writing of cdb files on its site...are you using meshio or a different package based on meshio? Can you give a sample script? The two element node connectivities you show are correct for MAPDL. [157, 199, 165, 165] would be correct for a degenerate triangle shape of a 4 node plane element (182). And [195, 214, 160, 160, 241, 241, 241, 241] would be correct for the degenerate tet shape of a linear hex element (185). Is there a specific error you are running into? |
Beta Was this translation helpful? Give feedback.
-
Hi Mike, thanks again for the quick and helpful reply. We’ve been looking into PyPrimeMesh, and it definitely seems promising. That said, we’re a bit concerned about potential licensing constraints, especially when it comes to using PyPrimeMesh inside a project like ours. Specifically, we're building a lightweight FEA automation tool aimed at students and small teams. We'd love to use PyPrimeMesh for .cdb generation, but we’re unsure if it’s intended to be used only within the full Ansys ecosystem, or if there’s any way to use it externally (e.g., as part of a standalone conversion script) without running into redistribution or commercial usage issues. Would you happen to know how Ansys handles this, or if there’s any flexibility for tools like ours? |
Beta Was this translation helpful? Give feedback.
Hi @AltoAuto I don't see where Meshio supports writing of cdb files on its site...are you using meshio or a different package based on meshio? Can you give a sample script? The two element node connectivities you show are correct for MAPDL. [157, 199, 165, 165] would be correct for a degenerate triangle shape of a 4 node plane element (182). And [195, 214, 160, 160, 241, 241, 241, 241] would be correct for the degenerate tet shape of a linear hex element (185). Is there a specific error you are running into?
mike