Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
qmdxcube opened this issue Apr 17, 2023 · 0 comments
Open

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

qmdxcube opened this issue Apr 17, 2023 · 0 comments

Comments

@qmdxcube
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant