In [1]:
import pint
u = pint.UnitRegistry()
In [2]:
Aa = 50*u.mm*100*u.mm
ya = (100*u.mm+(100/2)*u.mm)
Qa = Aa*ya
print(Qa)
Qa.ito(u.m**3)
print(Qa)
In [3]:
Am = 50*u.mm*300*u.mm
ym = (200-(50/2))*u.mm
Qm = Am*ym
print(Qm)
Qm.ito(u.m**3)
print(Qm)
In [4]:
Qb = 2*Qa + Qm
Qb
Out[4]:
In [5]:
V = 12.0*1000*u.newtons
I = (1.504*(10**9))*(u.mm**4)
I.ito(u.m**4)
qa = (V*Qa)/I
qa
Out[5]:
In [6]:
qb = (V*Qb)/I
qb
Out[6]:
In [7]:
s = 50*u.mm
s.ito(u.m)
va = qa*s
va
Out[7]:
In [8]:
vb = qb*s
vb
Out[8]:
In [ ]:
In [9]:
Qa = 50*100*(200-100/2)
Qa
Out[9]:
In [10]:
Qm = (300*50)*(200-(50/2))
Qm
Out[10]:
In [11]:
Qb = 2*Qa + Qm
Qb
Out[11]:
In [12]:
V = 12000
I = 1.504e9
qa = V*Qa/I
qa
Out[12]:
In [13]:
s = 50
va = qa*s
va
Out[13]:
In [14]:
qb = V*Qb/I
qb
Out[14]:
In [15]:
vb = qb*s
vb
Out[15]:
In [16]:
h = 400*u.mm
c = h/2
ha = 100*u.mm
ba = 50*u.mm
Aa = ha*ba
ya = c-ha/2
Qa = Aa*ya
Qa
Out[16]:
In [17]:
ht = 50*u.mm
bt = 300*u.mm
At = bt*ht
yt = c-ht/2
Qt = At*yt
Qt
Out[17]:
In [18]:
Qb = 2*Qa + Qt
Qb
Out[18]:
In [19]:
V = 12.0*1000*u.newtons
I = 1.504e9*(u.mm**4)
qa = V*Qa/I
qa
Out[19]:
In [20]:
s = 50*u.mm
va = qa*s
va
Out[20]:
In [21]:
qb = (V*Qb)/I
qb
Out[21]:
In [22]:
vb = qb*s
vb
Out[22]:
In [ ]: