restart: # I beam loaded in torsion including constrained warping # The model consists of 4 parts with the same cross sections. |--1--F----2----T------3------F--4--| # A fork support F between parts 1 and 2 # A torsion moment load T between parts 2 and 3 # A fork support F between parts 3 and 4 restart; l1:=100.: l2:=3000.: l3:=4000.: l4:=100.: # mm lengths of the parts E:=2.1e5: # N/mm2 Young's modulus nu:=0.35: # Poisson's ratio h:=200: # mm beam depth b:=100: # mm beam width tw:=5.6: # mm web thickness tf:=8.5: # mm flange thickness It:=1/3*(h-tf)*tw^3+2/3*b*tf^3: # mm4 torsion constant Cw:=1/24*tf*(h-tf)^2*b^3: # mm6 warping constant mt:=0: # Nmm/mm distributed torsion moment load T:=1e6: # Nmm Torsion moment load GIt:=E/2/(1+nu)*It: ECw:=E*Cw: with(DEtools): eq1:=ECw*(D@@4)(phi1)(x)-GIt*(D@@2)(phi1)(x)=mt: eq2:=ECw*(D@@4)(phi2)(x)-GIt*(D@@2)(phi2)(x)=mt: eq3:=ECw*(D@@4)(phi3)(x)-GIt*(D@@2)(phi3)(x)=mt: eq4:=ECw*(D@@4)(phi4)(x)-GIt*(D@@2)(phi4)(x)=mt: solution:=dsolve({eq1,eq2,eq3,eq4},{phi1(x),phi2(x),phi3(x),phi4(x)}): phi1:=evalf(subs(solution,phi1(x))): phi2:=evalf(subs(solution,phi2(x))): phi3:=evalf(subs(solution,phi3(x))): phi4:=evalf(subs(solution,phi4(x))): w1:=diff(phi1,x): w2:=diff(phi2,x): w3:=diff(phi3,x): w4:=diff(phi4,x): B1:=-ECw*diff(phi1,x,x): B2:=-ECw*diff(phi2,x,x): B3:=-ECw*diff(phi3,x,x): B4:=-ECw*diff(phi4,x,x): M1:=GIt*diff(phi1,x)+diff(B1,x): M2:=GIt*diff(phi2,x)+diff(B2,x): M3:=GIt*diff(phi3,x)+diff(B3,x): M4:=GIt*diff(phi4,x)+diff(B4,x): x:=0: eq1 :=B1=0: eq2 :=M1=0: x:=l1: eq3 :=phi1=0: eq4 :=phi2=0: eq5 :=w1=w2: eq6 :=B1=B2: x:=l1+l2: eq7 :=phi2=phi3: eq8 :=w2=w3: eq9 :=B2=B3: eq10:=M2=T+M3: x:=l1+l2+l3: eq11:=phi3=0: eq12:=phi4=0: eq13:=w3=w4: eq14:=B3=B4: x:=l1+l2+l3+l4: eq15:=B4=0: eq16:=M4=0: x:='x': solution:=solve({eq1,eq2,eq3,eq4,eq5,eq6,eq7,eq8,eq9,eq10,eq11,eq12,eq13,eq14,eq15,eq16}, {_C1,_C2,_C3,_C4,_C5,_C6,_C7,_C8,_C9,_C10,_C11,_C12,_C13,_C14,_C15,_C16}): _C1:=subs(solution,_C1): _C2:=subs(solution,_C2): _C3:=subs(solution,_C3): _C4:=subs(solution,_C4): _C5:=subs(solution,_C5): _C6:=subs(solution,_C6): _C7:=subs(solution,_C7): _C8:=subs(solution,_C8): _C9:=subs(solution,_C9): _C10:=subs(solution,_C10): _C11:=subs(solution,_C11): _C12:=subs(solution,_C12): _C13:=subs(solution,_C13): _C14:=subs(solution,_C14): _C15:=subs(solution,_C15): _C16:=subs(solution,_C16): f1:=1 -Heaviside(x-l1): f2:=Heaviside(x-l1) -Heaviside(x-(l1+l2)): f3:=Heaviside(x-(l1+l2))-Heaviside(x-(l1+l2+l3)): f4:=Heaviside(x-(l1+l2+l3)): phi:=phi1*f1+phi2*f2+phi3*f3+phi4*f4: w:=w1*f1+w2*f2+w3*f3+w4*f4: B:=B1*f1+B2*f2+B3*f3+B4*f4: Mt:=M1*f1+M2*f2+M3*f3+M4*f4: plot(phi,x=0..l1+l2+l3+l4); # cross section rotation [rad] plot(w,x=0..l1+l2+l3+l4); # warping plot({Mt,GIt*diff(phi,x)},x=0..l1+l2+l3+l4); # torsion moment [Nmm] Saint-Venant part and Vlasov part plot(B,x=0..l1+l2+l3+l4); # bi-moment [Nmm2] tau:=(GIt*diff(phi,x))*tf/It: sigma:=B/(1/6*(h-tf)*tf*b^2): sigmaVM:=sqrt(sigma^2+3*tau^2): sigmaSV:=sqrt(3)*abs(Mt*tf/It): # Von Mises stress if we would have just used Saint-Venant instead of Vlasov plot({tau,sigma,sigmaVM,sigmaSV},x=0..l1+l2+l3+l4); # largest shear stress, normal stress, Von Mises stress [N/mm2]