03.06.2013 Views

5003 Lectures - Faculty of Engineering and Applied Science

5003 Lectures - Faculty of Engineering and Applied Science

5003 Lectures - Faculty of Engineering and Applied Science

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

E<strong>5003</strong> - Ship Structures I 94<br />

© C.G. Daley<br />

Example 3 using MAPLE 14 to solve differential equations for beam<br />

by: Claude Daley<br />

> restart;<br />

The following aliases simplify the definition <strong>of</strong> loads.<br />

> dist_load := (w,a,b) -> w*Heaviside(x-a)- w*Heaviside(x-b): # distributed force<br />

Length, Stiffness, Load at "a", Load at end, Location <strong>of</strong> "a"<br />

> L := 10: EI := 10^6:<br />

> wa:=5:we:=5:a:=2: b:=6:<br />

> loads := -dist_load(wa,a,b)-(x-a)/(b-a)*dist_load(we-wa,a,b);<br />

> plot(loads,x=0..L,title=`LOADS`, color=blue);<br />

> supports := {y(0)=0, D(y)(0) = 0, D(y)(L) =0, D(D(D(y)))(L)=0}:<br />

> de := EI*diff(y(x),x$4) = loads; # Form differential equation<br />

> dsolve({de}union supports ,y(x)): # Solve boundary value problem<br />

> yy := rhs(%): # Extract deflection<br />

> th := diff(yy,x): # Extract slope<br />

> m := EI*diff(yy,x$2): # Extract moment<br />

> v := EI*diff(yy,x$3): # Extract shear<br />

> plot(v,x=0..L,title=`Shear`, color=blue);<br />

> plot(m,x=0..L,title=`Bending Moment`, color=blue);<br />

> plot(th,x=0..L,title=`Beam Slope`, color=blue);

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!