Exemplo n.º 1
0
    def test_AISC(self):
        xs1 = xs.AISC('W21X44')
        A = 13

        self.assertEqual(xs1.A, A)

        xs1 = xs.AISC('C15X33.9')
        A = 8.81

        xs1.A = 3
Exemplo n.º 2
0
import StructPy.cross_sections as xs
import StructPy.structural_classes as sc
import StructPy.Truss as tr
import StructPy.materials as ma
import math

# UNITS: KIPS, INCHES

# Define material
A992 = ma.Custom(E=29000,fy=46)

# Define cross section
#xs1 = xs.IBeam(2, 2, 0.1, 0.1)
#xs1 = xs.AISC("HSS8X8X5/16")
xs1 = xs.AISC("HSS6.000X0.500")
# define blank structure
# we will add to this later
s1 = tr.Truss(cross=xs1, material=A992)

# Add nodes to the structure
# bottom chord
s1.addNode(0,  0, fixity='pin')
s1.addNode(5*12, 0)
s1.addNode(10*12, 0)
s1.addNode(15*12, 0)
s1.addNode(20*12, 0)
s1.addNode(25*12, 0)
s1.addNode(30*12, 0, fixity='pin')

#top chord
s1.addNode(5*12, 12*(4))
Exemplo n.º 3
0
import StructPy.cross_sections as xs
import StructPy.structural_classes as sc
import StructPy.Truss as tr
import StructPy.materials as ma
import math

# UNITS: KIPS, INCHES

# Define material
A992 = ma.Custom(E=29000,fy=46)

# Define cross section
#xs1 = xs.IBeam(2, 2, 0.1, 0.1)
#xs1 = xs.AISC("HSS8X8X5/16")
xs1 = xs.AISC("HSS2-1/2X2-1/2X5/16")
# define blank structure
# we will add to this later
s1 = tr.Truss(cross=xs1, material=A992)

# Add nodes to the structure
# bottom chord
n1 = s1.addNode(0,  0, fixity='pin')
n2 = s1.addNode(10*12, 0)
n3 = s1.addNode(20*12, 0)
s1.addNode(30*12, 0, fixity='roller')

#top chord
s1.addNode(5*12, 12*(8+7/12))
s1.addNode(15*12, 12*(8+7/12))
s1.addNode(25*12, 12*(8+7/12))
Exemplo n.º 4
0
import StructPy.cross_sections as xs
import StructPy.structural_classes as sc
import StructPy.Truss as tr
import StructPy.materials as ma
import math
# Define material
A992 = ma.A992()

# Define cross section
#xs1 = xs.IBeam(2, 2, 0.1, 0.1)
xs1 = xs.AISC("HSS8X8X5/16")

# define blank structure
# we will add to this later
s1 = tr.Truss(cross=xs1, material=A992)

# Add nodes to the structure
# bottom chord
s1.addNode(0, 0, fixity='pin')
s1.addNode(10, 0)
s1.addNode(20, 0)
s1.addNode(30, 0, fixity='pin')

#top chord
s1.addNode(5, 8 + 7 / 12)
s1.addNode(15, 8 + 7 / 12)
s1.addNode(25, 8 + 7 / 12)

# Add members to the structure
#bottom chord
m0 = s1.addMember(0, 1)
Exemplo n.º 5
0
import StructPy.cross_sections as xs
import StructPy.structural_classes as sc
import StructPy.materials as ma

xs1 = xs.generalSection(A=30, Ix=700)

s1 = sc.Structure(xs1, ma.Steel(E=29000))

s1.addNode(0, 0)
s1.addNode(0, 144)
s1.addNode(144, 144)

s1.addMember(0, 1)
s1.addMember(1, 2)

m1 = s1.members[0]
stiff1 = m1.T.T * m1.kframe * m1.T

s1.plot()

xs1 = xs.AISC('W8X48').printProperties()