sdutil2

Eventually will document sdutil2 - for now just some examples.

NOTE: The slope-deflection sign convention may seem strange to those used to matirx stiffness analysis, but it makes sense. None of the slope deflection equations explicitly state a member 'direction' and it doesn't matter. For example, whether you consider the column AB as going from A to B or as going from B to A, a +ive shear at end A is still directed toward the left. In matrix analysis, that direction matters.


In [1]:
import sys
m = 'sdutil2'
if m in sys.modules:
    del sys.modules[m]   # so we can easily re-import the library if it changes during debugging
import sdutil2 as sd

In [2]:
sd.FEF.udl(4,72)


Out[2]:
EF(4,-96.0,96.0,144.0,-144.0)

In [3]:
x = sd.FEF.lvl(4,72,0)
x


Out[3]:
EF(4,-57.6,38.4,100.8,-43.2)

In [4]:
y = sd.FEF.lvl(4,0,72)
y


Out[4]:
EF(4,-38.4,57.6,43.19999999999999,-100.80000000000001)

In [5]:
x+y


Out[5]:
EF(4,-96.0,96.0,144.0,-144.0)

In [6]:
(x+y)*10


Out[6]:
EF(4,-960.0,960.0,1440.0,-1440.0)

In [7]:
10*x + y


Out[7]:
EF(4,-614.4,441.6,1051.2,-532.8)

In [8]:
s1 = sd.FEF.lvl(4,72,0,a=0,b=2.5)
s2 = sd.FEF.lvl(4,0,72,a=0,b=2.5)
s3 = sd.FEF.lvl(4,72,0,a=2.5,b=1.5)
s4 = sd.FEF.lvl(4,0,72,a=2.5,b=1.5)
s1+s2+s3+s4


Out[8]:
EF(4,-96.0,96.0,144.0,-144.0)

In [9]:
s1 = sd.FEF.lvl(4,72,0,a=0,b=1.5)
s2 = sd.FEF.lvl(4,0,72,a=0,b=1.5)
s3 = sd.FEF.lvl(4,62,10,a=1.5,b=1)
s4 = sd.FEF.lvl(4,10,62,a=1.5,b=1)
s5 = sd.FEF.lvl(4,72,0,a=2.5,b=1.5)
s6 = sd.FEF.lvl(4,0,72,a=2.5,b=1.5)
s1+s2+s3+s4+s5+s6


Out[9]:
EF(4,-96.0,96.0,144.0,-144.0)

In [10]:
sd.FEF.lvl(10,15,a=0,b=8)


Out[10]:
EF(10,-121.6,102.4,73.92,-46.08)

In [11]:
sd.FEF.lvl(10,15,a=0,c=2)


Out[11]:
EF(10,-121.6,102.4,73.92,-46.08)

In [12]:
sd.FEF.lvl(10,15,b=8,c=2)


Out[12]:
EF(10,-121.6,102.4,73.92,-46.08)

In [13]:
sd.FEF.lvl(10,15,a=0,b=8,c=2)


Out[13]:
EF(10,-121.6,102.4,73.92,-46.08)

In [14]:
try:
    sd.FEF.lvl(10,15,a=0,b=8,c=3)
except Exception as e:
    print('***** Error:',str(e))


***** Error: Cannot specify all of a, b & c

In [ ]:


In [ ]: