Composite Plate Bending Analysis With Matlab Code 🎁 Full Version
%% Geometry a = 0.5; % length (m) b = 0.3; % width ply_thick = 0.125e-3; % m num_plies = 4; h = num_plies * ply_thick; % total thickness
strain_global_bot = [kxx; kyy; 2*kxy] * z_bot; stress_global_bot = Q_bar * strain_global_bot; stress_local_bot = T \ stress_global_bot; Composite Plate Bending Analysis With Matlab Code
% Central difference coefficients c1 = D(1,1)/dx^4; c2 = (2*(D(1,2)+2 D(3,3)))/(dx^2 dy^2); c3 = D(2,2)/dy^4; %% Geometry a = 0
dx2 = dx^2; dy2 = dy^2; kxx = (w(i_center-1,j_center) - 2 w(i_center,j_center) + w(i_center+1,j_center)) / dx2; kyy = (w(i_center,j_center-1) - 2 w(i_center,j_center) + w(i_center,j_center+1)) / dy2; kxy = (w(i_center-1,j_center-1) - w(i_center-1,j_center+1) - w(i_center+1,j_center-1) + w(i_center+1,j_center+1)) / (4 dx dy); %% Geometry a = 0.5
% Build coefficient matrix for D11 w,xxxx + 2(D12+2D66) w,xxyy + D22 w,yyyy = q N = Nx*Ny; K = sparse(N,N); F = zeros(N,1);
%% Compute ABD Matrix A = zeros(3,3); B = zeros(3,3); D = zeros(3,3); for k = 1:num_plies theta_k = theta(k) * pi/180; m = cos(theta_k); n = sin(theta_k); % Transformation matrix T = [m^2, n^2, 2 m n; n^2, m^2, -2 m n; -m n, m n, m^2-n^2]; % Q_bar = T * Q * T_inv Q = [Q11, Q12, 0; Q12, Q22, 0; 0, 0, Q66]; Q_bar = T * Q * T'; % Integrate through thickness A = A + Q_bar * (z(k+1)-z(k)); B = B + Q_bar * 0.5 * (z(k+1)^2 - z(k)^2); D = D + Q_bar * (1/3) * (z(k+1)^3 - z(k)^3); end % For symmetric laminate, B should be zero (numerically small) B = zeros(3,3); % enforce symmetry