Structural Property Calculator — Improved Dec 2019
This next portion was added on December 9, 2019.
Properties are mathematical functions; structural shapes are now delimited with two leading periods.
Leading double periods seems more natural and is more convenient on iOS keyboards.
Also implemented the usual Python attribute syntax (dot syntax) for named variables.
calc> ddet(..w8x31) # not case sensitive
# On assignment, now, the calculator
# returns __str__(object)
# the string representation of the object
# On assignment of an AISC shape the calculator
# returns __str__(shape)
# the string representation of the shape
calc > a = ..w8x31 # not case sensitive
Shape: LABEL = W8X31 W = 31.000 D = 8.000
calc > a.tf
calc > a.tf * a.bf
calc > a.twdet
calc > angle = ..2L3-1/2x3-1/2x3/8
Shape: LABEL = 2L3-1/2X3-1/2X3/8 W = 17.000 D = 3.500
calc > a.rx
calc > a.ry
calc > col = ..w12x40
Shape: LABEL = W8X40 W = 40.000 D = 11.900
calc > beam = ..w14x43
Shape: LABEL = W8X43 W = 43.000 D = 13.700
calc > area_flange_col = col.tf * col.bf
calc > area_flange_beam = beam.tf * beam.bf
calc > area_flange_col
calc > area_flange_beam