This small project is composed of two files quad.py and naive_quad.py:
naive_quad.pyis a deliberately incorrect implementation of quadrilateral elements. It does not use a canonical representation as an intermediary between the rest quadrilateral and the deformed quadrilateral. As a result, the deformed quadrilateral reconstructed using the basis functions does not correspond to the true deformed quadrilateral (the basis function is in some cases negative).quad.pyis a correct implementation of quadrilateral elements. First, the user draws the rest pose of the quadrilateral, right-clicking on the position of its corners. Then, by closing the window, the user can now draw the deformed quadrilateral. Closing the window, the user can view the basic functions. Finally, by closing the window, the user can view the deformation gradients at 4 points on the quadrilateral.
This small project is done in Python.
![]() |
|---|
| Drawing of the rest quad - Drawing of the deformed quand - Visualization of basis functions - Visualization of deformation gradient |
