You are on page 1of 3

function [w1,w2,w,sx,sy]=isotropic_plate;

E=200000; %MPa
v=0.3;
a=6000; %in
b=6000; %in
u=1800; %in
v=1800; %in
chi=1800;%in
nu=1800;%in
p0=0.5; %N
% p0h=2*p0;
h=50; %mm

G=E/(2*(1+v));

D=E*h^3/(12*(1-v^2));

% nd=200;dy=b/nd;X=ones(1,nd+1)*a/2;
Y=0:dy:b;w1=zeros(1,nd+1);w2=zeros(1,nd+1);
nd=48;dx=a/nd;dy=b/nd;
[X,Y]=meshgrid(0:dx:a,0:dy:b);
w1=zeros(nd+1);w2=zeros(nd+1);

d2wdx2_1=zeros(nd+1);d2wdy2_1=zeros(nd+1);
d2wdx2_2=zeros(nd+1);d2wdy2_2=zeros(nd+1);

%
% d2wdx2_1=zeros(1,nd+1);d2wdy2_1=zeros(1,nd+1);
% d2wdx2_2=zeros(1,nd+1);d2wdy2_2=zeros(1,nd+1);

for m=1:1:200
for n=1:1:200

pmn=(16*p0/(m*n*pi^2))*sin(m*pi*chi/a)*sin(m*pi*nu/b)*sin(m*pi*u/(2*a))*sin(n*
pi*v/(2*a));
wmn=pmn/(D*pi^4*((m/a)^2+(n/b)^2)^2);
w1=w1+wmn*sin(m*pi*X/a).*sin(n*pi*Y/b);
d2wdx2_1=d2wdx2_1-wmn*m^2*pi^2/a^2*sin(m*pi*X/a).*sin(n*pi*Y/b);
d2wdy2_1=d2wdy2_1-wmn*n^2*pi^2/b^2*sin(m*pi*X/a).*sin(n*pi*Y/b);
end
end

Mx1=-D*(d2wdx2_1+v*d2wdy2_1);
My1=-D*(d2wdy2_1+v*d2wdx2_1);

% for m=1:2:200
% for n=1:1:200
% pmn=8*p0h/(m*n*pi^2)*(-1)^(n+1);
% wmn=pmn/(D*pi^4*((m/a)^2+(n/b)^2)^2);
% w2=w2+wmn*sin(m*pi*X/a).*sin(n*pi*Y/b);
% d2wdx2_2=d2wdx2_2-wmn*m^2*pi^2/a^2*sin(m*pi*X/a).*sin(n*pi*Y/b);
% d2wdy2_2=d2wdy2_2-wmn*n^2*pi^2/b^2*sin(m*pi*X/a).*sin(n*pi*Y/b);
% end
% end
%
% Mx2=-D*(d2wdx2_2+v*d2wdy2_2);
% My2=-D*(d2wdy2_2+v*d2wdx2_2);
%
% w=w1+w2;Mx=Mx1+Mx2;My=My1+My2;
%
% sx=6*Mx/h^2;sy=6*My/h^2;

%
% fe_isotropic
%
%
%
figure
surf(X,Y,w1,'FaceColor','interp','EdgeColor','none','FaceLighting','phong')
view(0,90)
colorbar
%
% figure
% plot(X(1,:),w(nd/2+1,:),'LineWidth',2)
% xlabel('Position at the centerline of the plate, in')
% ylabel('Vertical displacement, in')
% hold on
% plot(x_fe,uz1_fe,'r','LineWidth',2)
% legend('Analytical','FE')
%
% figure
% plot(Y(:,1),w(:,nd/2+1),'LineWidth',2)
% xlabel('Position at the centerline of the plate, in')
% ylabel('Vertical displacement, in')
% hold on
% plot(y_fe,uz2_fe,'r','LineWidth',2)
% legend('Analytical','FE')
%
% figure
% plot(X(1,:),sx(nd/2+1,:))
% xlabel('Position at the centerline of the plate, in')
% ylabel('\sigma x, psi')
% hold on
% plot(x_fe,sx1_fe,'r','LineWidth',2)
% legend('Analytical','FE')
%
% figure
% plot(X(1,:),sy(nd/2+1,:))
% xlabel('Position at the centerline of the plate, in')
% ylabel('\sigma y, psi')
% hold on
% plot(x_fe,sy1_fe,'r','LineWidth',2)
% legend('Analytical','FE')
%
% figure
% plot(Y(:,1),sx(:,nd/2+1))
% xlabel('Position at the centerline of the plate, in')
% ylabel('\sigma x, psi')
% hold on
% plot(y_fe,sx2_fe,'r','LineWidth',2)
% legend('Analytical','FE')
%
% figure
% plot(Y(:,1),sy(:,nd/2+1))
% xlabel('Position at the centerline of the plate, in')
% ylabel('\sigma y, psi')
% hold on
% plot(y_fe,sy2_fe,'r','LineWidth',2)
% legend('Analytical','FE')
%

You might also like