Ex 2 - Finding the Von Mises Stress #1064
-
Hi @kinnala and community, I hope you are well :) First, I would like to say "thanks a lot" for this library you have shared with the world. Besides, it's really nice and easier to install/understand (in comparison with Fenics, for example). I started to use your library to understand and learn more about FEA. I am writing a Python script that calculates the deflections of a plate, with certain dimensions, material, and hydrostatic load (non-uniform load). I have found the correct deflections and validated them on Ansys (it's very accurate, with less than 1% error). However, I am facing some issues when calculating the Von Mises Stress... In example 4 this is calculated like this: for i in [0, 1]: vonmises = np.sqrt(.5 * ((s[0, 0] - s[1, 1]) ** 2 + But my first problem starts with "sym_grad(x)" giving me this error: Traceback (most recent call last): Later on, if I manually do the ".5 * (u.grad + transpose(u.grad))", using NumPy for the transpose of u.grad (otherwise it doesn't work, I don't know why), I have the shape of (2, 4096, 6), for sym_grad(x). Finally, I have the error in "dg.project(C(sym_grad(x))[i, j])" as: Really, I don't know what to do to solve this and plot the stresses. Please, Could you guide me on how to calculate it using the displacement of the plate? Thanks in advance, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
I believe the issue is the following. The formulation in ex04 is based on plane strain solid and not Kirchhoff plate. For this reason, the equation to calculate strain and stress are different. I don't right now have time to derive the corresponding equations for Kirchhoff plate, but I will try to find some time in the near future. |
Beta Was this translation helpful? Give feedback.
Here is a variant of ex02 which, I believe, calculates the different components of stress: