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

22 visualizzazioni (ultimi 30 giorni)
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 Commenti
Kealana Araujo
Kealana Araujo il 3 Ago 2022
Modificato: dpb il 5 Ago 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 il 4 Ago 2022
Modificato: dpb il 4 Ago 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...

Accedi per commentare.

Risposte (1)

KSSV
KSSV il 4 Ago 2022

Categorie

Scopri di più su Stress and Strain in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by