how to make value stress in mid element on cylinder

2 Ansichten (letzte 30 Tage)
Nobeth Bastanta Ginting
Nobeth Bastanta Ginting am 10 Jul. 2022
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 Kommentare
Nobeth Bastanta Ginting
Nobeth Bastanta Ginting am 10 Jul. 2022
this answer in plat 2d. but how i can do it in cylinder sir?
Simson Hutagalung
Simson Hutagalung am 13 Jul. 2022
How to plot like 2D plate, sir? The colormap In element like that, sir. Thank you

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Stress and Strain finden Sie in Help Center und File Exchange

Produkte


Version

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by