Skip to content

MeshTaichi Fails when reading .mesh file generated by meshio #12

@qmdxcube

Description

@qmdxcube

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions