how to make value stress in mid element on cylinder

조회 수: 2 (최근 30일)
Nobeth Bastanta Ginting
Nobeth Bastanta Ginting 2022년 7월 10일
댓글: Simson Hutagalung 2022년 7월 13일
hello sir can you help me how to make value stress in mid element on cylinder with coding reshape. i have data stress in mid element. can i do it ?. i have data coordinat is 110 data, data element is 110 data and data value stress 100 data. i want value stress in mid element. i was use coding reshape but i can not how to plot it. can you help me the coding?. thank you sir.
clear all
A = readtable('valuestress.xlsx');
t = readtable('element.xlsx');
p = readtable('nodes.xlsx');
A = table2array(A);
t = table2array(t);
p = table2array(p);
x = p(:,1); y = p(:,2); z = p(:,3);
nx = length(unique(x)) ;
ny = length(unique(y)) ;
nz = length(unique(z)) ;
X = reshape(x,nx,ny) ;
P = reshape(x,nx,nz) ;
Y = reshape(y,nx,ny) ;
Z = reshape(z,nx,ny) ;
S = reshape(A,ny-1,nz-1);
f1 = figure ;
set(f1,'name','Stress','numbertitle','off') ;
plot3 (X,Y,Z,'k');
  댓글 수: 4
Nobeth Bastanta Ginting
Nobeth Bastanta Ginting 2022년 7월 10일
this answer in plat 2d. but how i can do it in cylinder sir?
Simson Hutagalung
Simson Hutagalung 2022년 7월 13일
How to plot like 2D plate, sir? The colormap In element like that, sir. Thank you

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

답변 (0개)

카테고리

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

제품


릴리스

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by