meshtaichi
meshtaichi copied to clipboard
MeshTaichi Fails when reading .mesh file generated by meshio
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