deepmodeling / jax-fem

Differentiable Finite Element Method with JAX
GNU General Public License v3.0
290 stars 45 forks source link

issue.example.py #32

Closed leedz0210 closed 2 months ago

leedz0210 commented 2 months ago

Hello, when running the example file, the following warning was generated. Is this normal? Could you please tell me what caused this and how I can solve it? I would be very grateful. 屏幕截图 2024-09-09 160031

tianjuxue commented 2 months ago

It is normal. You are solving a 2D problem, but VTU only supports 3D points, so appending with 0 is automatically done for the the 2D points to make them 3D. Sometimes you have trouble viewing the deformation of a 2D object in Paraview, and you need to append 0 manually for your displacement solution, like here.

leedz0210 commented 2 months ago

Thank you very much. I saw in the readme that example.py visualizes as a 3D graphic, but I didn't get such a result when running it, so I thought there was an issue. Since there's no problem, I can use it with confidence. Thanks a lot.