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

조회 수: 24 (최근 30일)
Kealana Araujo
Kealana Araujo 2022년 8월 3일
편집: dpb 2022년 8월 5일
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
Kealana Araujo
Kealana Araujo 2022년 8월 3일
편집: dpb 2022년 8월 5일
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 2022년 8월 4일
편집: dpb 2022년 8월 4일
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...

댓글을 달려면 로그인하십시오.

답변 (1개)

KSSV
KSSV 2022년 8월 4일

카테고리

Help CenterFile Exchange에서 Stress and Strain에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by