Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Program for narrow beam program matlab
1. PROGRAM FOR NARROW BEAM
format long; %Entering the properties of the material of the plate fprintf('Properties of the material:n') E=input('Modulus of Elasticity, E(N/m^2): '); nu=input('Poisson Ratio: '); mu=E/(2*(1+nu)); lambda=0.5*((((2*nu+1)/(1-2*nu))*mu)-mu); %Entering the dimensions of the plate fprintf('nDimensions:n'); a=input('a = '); h=input('h = '); %Entering the boundary conditions of the plate fprintf('nBoundary conditions:n'); po=input('Enter the Top load(kN/m^2): '); sigmaz_bottom=input('Enter the Bottom load(kN/m^2): '); tauzx_bottom=input('Enter the shear stress along zx on the Bottom of the plate (kN/m^2): '); tauzx_top=input('Enter the shear stress along zx on the Top of the plate (kN/m^2): '); global po po = -1000; deq = @(z,u) D2_diffeqtn(z,u,nu,l,E); z0 = linspace(-h/2,h/2,10); yinit = [0 0 0 0]; initial_values = bvpinit(z0, yinit); solutn = bvp4c(deq,@bcdnts,initial_values); soln = deval(solutn,z0); z0' soln'
2. Function specifying boundary conditions function bdry = bcdnts( u0,u1 ) global po bdry = [ u0(4) ; u1(4)-po ; u0(3) ; u1(3) ]; end
Differential equation function function f = D2_diffeqtn( z,u,nu,l,E ) f = zeros(4,1); f(1) = u(3)*2*(1+nu)/E - u(2)*pi/l; f(2) = u(4)*(1-nu^2)/E + pi*nu/l*u(1); f(3) = u(1)*pi^2*E/l^2 - nu*pi*u(4)/l; f(4) = u(3)*pi/l; end
3. EXECUTION
E = 2.000000000000000e+11 ans = -3.000000000000000 -2.333333333333334 -1.666666666666667 -1.000000000000000 -0.333333333333333 0.333333333333333 1.000000000000000 1.666666666666667 2.333333333333333 3.000000000000000