question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Example 36 - Nearly Incompressible Hyperelasticity: XDMF Export (Meshio Error)

See original GitHub issue

Hi,

in Example 36, line 256, I had to transpose the mesh points to be able to export the XDMF file.

Code as is

        Mesh(mesh.p, cells={"tetra": mesh.t.T},

should be changed to

        Mesh(mesh.p.T, cells={"tetra": mesh.t.T},

Best regards, Andreas

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
kinnalacommented, Mar 17, 2021

I wonder why this example is not using Mesh.save

1reaction
kinnalacommented, Mar 17, 2021

Makes sense, meshio usually expects one point per row. Thanks for pointing it out!

Read more comments on GitHub >

github_iconTop Results From Across the Web

meshio fails when number of cells is too high #1008 - GitHub
Unfortunately I get an error when meshio is called to convert the gmsh file to XDMF. I simplified the mesh here so that...
Read more >
Transitioning from mesh.xml to mesh.xdmf, from dolfin-convert ...
I have read that the support from dolfin-convert is almost nill and will soon be deprecated. This means I have to change the...
Read more >
latest PDF - FEniCS hands-on tutorial
We leave as an exercise to add XDMF output for plotting in Paraview. Show/Hide Code. Download Code from dolfin import * import matplotlib.pyplot ......
Read more >
2.4.3 Nearly-Incompressible Hyperelasticity
A material is considered incompressible if it shows no change in volume during deformation, or otherwise stated, if J=1 holds throughout the entire...
Read more >
meshio - PyPI
meshio convert input.msh output.vtk # convert between two formats meshio info input.xdmf # show some info about the mesh meshio compress input.vtu ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found