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

Question about stresses for Linear_Elasticity demo #24

Open
peps212 opened this issue Apr 24, 2024 · 2 comments
Open

Question about stresses for Linear_Elasticity demo #24

peps212 opened this issue Apr 24, 2024 · 2 comments

Comments

@peps212
Copy link

peps212 commented Apr 24, 2024

Hi, I noticed there was a recent commit made by @xwpken to the Linear_Elasticity demo that implemented post-processing for stresses in the beam. I'm just confused on how to interpret the data that has been computed at the end of the script (Sigma and sigma_average). I don't think they get saved into the VTU file, so I can't use Paraview to display it.

Could anyone help me out on how I can visualise them? Thank you!

@xwpken
Copy link
Collaborator

xwpken commented Apr 25, 2024

Hello, sigma represents the stress tensor at quadrature points within the element, while sigma_average represents the average stress tensor obtained from sigma. For a 3D problem, the dimensions of these two variables are (num_cells, num_quad_points, 3, 3) and (num_cells, 3, 3) respectively.

In the latest commit, we have added code to calculate the Von Mises stress vm_stress from sigma_average, and its dimensions are (num_cells,). It has been saved to the VTU file using the function save_sol . You can enable the data array vm_stress in ParaView to check it.

@peps212
Copy link
Author

peps212 commented Apr 25, 2024

Thank you so much I really appreciate the help. One last question:

def get_surface_maps(self): def surface_map(u, x): return np.array([0., 0., 100.]) return [surface_map]

The value of the force applied, which in the demo is 100, is that in Newton?

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

2 participants