meshtaichi icon indicating copy to clipboard operation
meshtaichi copied to clipboard

MeshTaichi Fails when reading .mesh file generated by meshio

Open qmdxcube opened this issue 1 year ago • 0 comments

This is my code. The program read an .inp file generated by Abaqus, and then transform the mesh into .mesh format. But when load the mesh by Patcher, it failed.

` import taichi as ti import meshtaichi_patcher as Patcher import meshio

ti.init(arch=ti.cpu,kernel_profiler=True)

if name == 'main': mesh = meshio.read("Job-1.inp") mesh.write("LBeam.mesh") # print(mesh.points) # print(mesh.cells) # print(mesh.cells_dict) mesh = meshio.read("LBeam.mesh") mesh = Patcher.load_mesh("LBeam.mesh", relations=["CV"]) `

Here is the error

screenshot

qmdxcube avatar Apr 17 '23 09:04 qmdxcube