0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

(積分)例題5:等分布荷重を受ける両端固定梁 <【② 構造力学の「構造」例題】様を参考にsympyで実行した。

Last updated at Posted at 2025-01-16

オリジナル

Youtube 仮想仕事の原理の教育に関する研究会 様  
例題5:等分布荷重を受ける両端固定梁 (12:30〜14:10)
https://youtu.be/NMP0Q78Wl9Q?t=750
<目次(18:50)
https://youtu.be/NMP0Q78Wl9Q?t=1130
<フル【② 構造力学の「構造」例題】(0:00〜19:21)
https://youtu.be/NMP0Q78Wl9Q

sympyで

・ver0.2 未 差し替え
・ver0.1

# ver0.1
# (積分)例題5:等分布荷重を受ける両端固定梁 <【② 構造力学の「構造」例題】
from sympy import *
var('x,C1,C2,C3,C4,w,L,EI')
def myMujigennka(v,com):
    return ( str(com)+"*("
            +str((v/com).expand())                \
                 .replace("x**2/L**2","(x/L)**2") \
                 .replace("x**3/L**3","(x/L)**3") \
                 .replace("x**4/L**4","(x/L)**4") 
            +")").replace(" ","")
def myKakeruPw(v,Pw):
    return Pw+"*"+str(v).replace("*"+Pw,"")
EIv4=w                                     #;print(EIv4)
EIv3=integrate(EIv4,x)+w*L   *C1           #;print(EIv3)
EIv2=integrate(EIv3,x)+w*L**2*C2           #;print(EIv2)
EIv1=integrate(EIv2,x)+w*L**3*C3           #;print(EIv1)
EIv =integrate(EIv1,x)+w*L**4*C4           #;print(EIv )
sol =solve([Eq(1/EI*EIv .subs({x:0}),0),   # 幾何的境界条件
            Eq(1/EI*EIv1.subs({x:0}),0),
            Eq(1/EI*EIv .subs({x:L}),0),
            Eq(1/EI*EIv1.subs({x:L}),0)
           ],[C1,C2,C3,C4])                # ;print(sol)
v   =(1/EI*(EIv.subs({C1:sol[C1],C2:sol[C2],C3:sol[C3],C4:sol[C4]}))).factor()     #;print(v)
print("#",myKakeruPw(myMujigennka(v,w*L**4/(24*EI)) ,"w"))                   
print("#",myKakeruPw(             v.subs({x:L/2})   ,"w"))                   
print("#",myKakeruPw(        diff(v,x,2).subs({x:0}),"w"))
# w*L**4/(24*EI)*((x/L)**2-2*(x/L)**3+(x/L)**4)
# w*L**4/(384*EI)
# w*L**2/(12*EI)
#
rep={w:1,L:1,EI:1}
plot (diff(v,x,3).subs(rep),(x,0,1))
plot (diff(v,x,2).subs(rep),(x,0,1),ylim=(-0.1,0.1))

plotで作図

・値は、適当に1.0です。yscaleは、ylim=(,)で対応です。

SFD (+から-) 例題5:等分布荷重を受ける両端固定梁
111.png

BMD (-から+)上に凸,下に凸,上に凸 例題5:等分布荷重を受ける両端固定梁
222.png

sympyで(Beamで)

勉強中
https://docs.sympy.org/latest/modules/physics/continuum_mechanics/beam.html
https://docs.sympy.org/latest/modules/physics/continuum_mechanics/beam_problems.html
https://qiita.com/tags/beam

いつもの? sympyの実行環境と 参考のおすすめです。

(テンプレート)

いつもと違うおすすめです。

参考文献

>【Example 6.2】
 Fig.6.5 The beam with built-in ends subjected to the uniformly distibuted load.
 JSME p96

>【練習問題】【Example 6.2】
 図6.53 等分布荷重を受ける両端が固定されたはり
 JSME p118

>両端固定ばり 2)
 構造力学公式集 表5.4 両端固定ばりの公式 p148

>【3.14 固定端モーメントの例】
 1)等分布荷重w0が作用する場合
 図3.31 固定端モーメント
 仮想仕事の原理とエネルギ原理 p115

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?