ENGR213 2019Q3 Ch 5 and Ch 6 Quiz


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)


750000.0 millimeter ** 3
0.00075 meter ** 3

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)


2625000.0 millimeter ** 3
0.002625 meter ** 3

In [4]:
Qb = 2*Qa + Qm
Qb


Out[4]:
0.004125 meter3

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]:
5984.042553191488 newton/meter

In [6]:
qb = (V*Qb)/I
qb


Out[6]:
32912.23404255319 newton/meter

In [7]:
s = 50*u.mm
s.ito(u.m)
va = qa*s
va


Out[7]:
299.2021276595744 newton

In [8]:
vb = qb*s
vb


Out[8]:
1645.6117021276596 newton

In [ ]:


In [9]:
Qa = 50*100*(200-100/2)
Qa


Out[9]:
750000.0

In [10]:
Qm = (300*50)*(200-(50/2))
Qm


Out[10]:
2625000.0

In [11]:
Qb = 2*Qa + Qm
Qb


Out[11]:
4125000.0

In [12]:
V = 12000
I = 1.504e9
qa = V*Qa/I
qa


Out[12]:
5.98404255319149

In [13]:
s = 50
va = qa*s
va


Out[13]:
299.2021276595745

In [14]:
qb = V*Qb/I
qb


Out[14]:
32.912234042553195

In [15]:
vb = qb*s
vb


Out[15]:
1645.6117021276598

starting all over again


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]:
750000.0 millimeter3

In [17]:
ht = 50*u.mm
bt = 300*u.mm
At = bt*ht
yt = c-ht/2
Qt = At*yt
Qt


Out[17]:
2625000.0 millimeter3

In [18]:
Qb = 2*Qa + Qt
Qb


Out[18]:
4125000.0 millimeter3

In [19]:
V = 12.0*1000*u.newtons
I = 1.504e9*(u.mm**4)
qa = V*Qa/I
qa


Out[19]:
5.98404255319149 newton/millimeter

In [20]:
s = 50*u.mm
va = qa*s
va


Out[20]:
299.2021276595745 newton

In [21]:
qb = (V*Qb)/I
qb


Out[21]:
32.912234042553195 newton/millimeter

In [22]:
vb = qb*s
vb


Out[22]:
1645.6117021276598 newton

In [ ]: