Hi, I have a formula for stress distribution around a borehole, sigtet(r,T)=(((sig1+sig2)*(1+R^2/a^2))/2)-(((sig1-sig2)*(1+(3*R^4)/a^4)*cos(T*2))/2)-sig12*(1+3*(R/a)^4)*sin(2*T)-delp*(R/a)^2
for a special depth I can enter sig1, sig2 and delp values and get the stress distribution around the wellbore by this code: R=10.5, sig1=100, sig2=35, sig12=0, delp=10,
for ii=1:500
for jj=1:201
a=R+(ii+1)/100;
T=((jj-1)/10)*pi;
sigtet(ii,jj)=(((sig1+sig2)*(1+R^2/a^2))/2)-(((sig1-sig2)*(1+(3*R^4)/a^4)*cos(T*2))/2)-sig12*(1+3*(R/a)^4)*sin(2*T)-delp*(R/a)^2;
x(ii,jj)=(a)*cos(T);
y(ii,jj)=(a)*sin(T);
end
end
pcolor(x,y,sigtet)
shading interp
but sig1 and sig2 and delp values are functions of depth (z), as u see for 2D plot we have stress values in different radius and angles, and the color shows stress intensity for a known depth, now I want to graph it in 3D plot which shows the stress distribution not only for different radius and angles but for different depths. so the new function will be:
sigtet(r,T,z)=(((sig1(z)+sig2(z))*(1+R^2/a^2))/2)-(((sig1(z)-sig2(z))*(1+(3*R^4)/a^4)*cos(T*2))/2)-sig12*(1+3*(R/a)^4)*sin(2*T)-delp(z)*(R/a)^2

 채택된 답변

David Sanchez
David Sanchez 2013년 8월 1일

0 개 추천

I am sorry to disappoint you, but the 4D plot is not yet available. You should choose 3 of your variables at a time and plot them together. Visit (type it)
doc plot3
doc mesh
doc surf
I am sure you will find a plotting function that suits your needs.

댓글 수: 1

Farid sjdclkjas
Farid sjdclkjas 2013년 8월 1일
thank you for your answer. here there are 3 variables, (a,T,z) and sigtet is a function of them, but I want to plot "sigtet" on a cylinder.is it possible?

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

추가 답변 (0개)

카테고리

도움말 센터 및 File Exchange에서 Graphics에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by