How to plote the stress for each element in the mesh with a color map.

24 vues (au cours des 30 derniers jours)
Kealana Araujo
Kealana Araujo le 3 Août 2022
Modifié(e) : dpb le 5 Août 2022
Hello, I have one code in matlab thats calculates the stress values in each element​​(stressxx, stressyy and stressxy , for each column respectively). I want to plot a stress field in the mesh for each element. Does anyone know how to do this? I have one mesh with 296 elements and 161 nodes. I tried to use the function pcolor but i can't use the reshape in this problem.
  3 commentaires
Kealana Araujo
Kealana Araujo le 3 Août 2022
Modifié(e) : dpb le 5 Août 2022
My input file for the mesh it's a text document. I provide the quantities of the elements, quantities of the nodes, the conectivites in elements and the contour conditions. The code calculates the stress in the elements and give me a matrix 296x3 withe the sigmaxx in the first column, the sigmayy in the second column and the sigmaxy in the third column. I want to plot a color map with the sigmayy to evaluate the stress concentration at a point. Can you help me?
For this case, this is my input file:
296
171
1 0.00000000000 0.00000000000
2 50.0000000000 0.00000000000
....
Truncated humonguous amount of undocumented text as too large for forum viewer...--dpb
dpb
dpb le 4 Août 2022
Modifié(e) : dpb le 4 Août 2022
Don't attach that much text in line; it's too much for the forum interface to handle. Attach it as a text file (user the paperclip icon) instead...I'll not delete this yet, but will in the AM (or when next get back; have other commitments tomorrow that may/probably will prevent me from looking in.
Don't know that that really helps much in MATLAB or not; would have to know first of all what am looking at besides just numbers.
I'm sure there's probably a way but I've not investigated FEM modeling via MATLAB; not sure what tools exist w/o looking...

Connectez-vous pour commenter.

Réponses (1)

KSSV
KSSV le 4 Août 2022

Catégories

En savoir plus sur Stress and Strain dans Help Center et File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by