You are on page 1of 11

Notes_dsolve_Beam.

m
1. Derive C-F Beam Solutions by dsolve..................................................................1
2. Derive C-C Beam Solutions by dsolve.................................................................4
3. Generation of function for C-F Beam Solutions derived by by dsolve.................7
4. Generation of function for C-C Beam Solutions derived by by dsolve................7
5. Application of generated functuins for beam solutions.......................................7
Define data.............................................................................................................. 7
5-1: C-F beam.......................................................................................................... 8
Plot solutions........................................................................................................... 8
5-2: C-C beam......................................................................................................... 9
Plot solutions........................................................................................................... 9
Alternative form of plot of bending moment & shear force...................................10
6. Exercise: Find solutions to a C-S beam by dsolve. Also generate a function or
this solution........................................................................................................... 10

1. Derive C-F Beam Solutions by dsolve


dsolve_Beam_CF

Vx =
(w*L^2*x^2)/(4*EI) - (w*L*x^3)/(6*EI) + (w*x^4)/(24*EI)

Mx =
EI*((w*L^2)/(2*EI) - (w*L*x)/EI + (w*x^2)/(2*EI))

Sx =
EI*((L*w)/EI - (w*x)/EI)

2. Derive C-C Beam Solutions by dsolve


dsolve_Beam_CC

Vx =
(w*L^2*x^2)/(24*EI) - (w*L*x^3)/(12*EI) + (w*x^4)/(24*EI)

Mx =
EI*((w*L^2)/(12*EI) - (w*L*x)/(2*EI) + (w*x^2)/(2*EI))

Sx =
EI*((L*w)/(2*EI) - (w*x)/EI)

3. Generation of function for C-F Beam Solutions derived by by


dsolve
Auto_dsolve_Beam_CF the generated function is :CF_Beam_Solutions

4. Generation of function for C-C Beam Solutions derived by by


dsolve
Auto_dsolve_Beam_CC the generated function is :CF_Beam_Solutions

5. Application of generated functuins for beam solutions


Define data
EI=1e7; L=100; w=2;
x=linspace(0,L,100);

5-1: C-F beam


[Vx,Mx,Sx] = CF_Beam_Solutions(EI,L,w,x);

Plot solutions
figure
subplot(3,1,1)
plot(x,Vx),ylabel('\bfDeflection')
subplot(3,1,2)
plot(x,Mx),ylabel('\bfBending moment')
subplot(3,1,3)
plot(x,Sx),ylabel('\bfShear force')
xlabel('\bfx')
title('\bfSolution of C-F beam, uniform load')

5-2: C-C beam


[Vx,Mx,Sx] = CC_Beam_Solutions(EI,L,w,x);

Plot solutions
figure
subplot(3,1,1)
plot(x,Vx),ylabel('\bfDeflection')
subplot(3,1,2)
plot(x,Mx),ylabel('\bfBending moment')
subplot(3,1,3)
plot(x,Sx),ylabel('\bfShear force')
xlabel('\bfx')
title('\bfSolution of C-C beam, uniform load')

Alternative form of plot of bending moment & shear force


figure
subplot(3,1,1)
plot(x,Vx),ylabel('\bfDeflection')
subplot(3,1,2)
fill(x,Mx,'r'),ylabel('\bfBending moment')
subplot(3,1,3)
xx=[x 100 0];
SS=[Sx 0 0];
fill(xx,SS,'y'),ylabel('\bfShear force')
xlabel('\bfx')
title('\bfSolution of C-C beam, uniform load')

6. Exercise: Find solutions to a C-S beam by dsolve. Also


generate a function or this solution.
disp(' all done ========================')

all done ========================