Skip to main content

Implementation of the ASCE 7 building code.

Project description

ASCE 7

This project is not intended to fully replicate the entire ASCE 7 buildling code, only the parts I find useful.

Proposed, example API (not yet implemented):

# Example calculation module

from asce7.v2016 import Risk, importance_factor
import asce7.v2016.chapter7 as ch7
from asce7.v2016.chapter2 import ASD, Strength

risk = Risk["II"]  # or
risk = Risk(2)  # or
risk = Risk.II

# Snow importance factor
I_s = ch7.I_s(risk)

# Ground snow load
p_g = ch7.p_g(20)

# Surface roughness
rgh = ch7.roughness("B")  # or
rgh = ch7.roughness.B

# Roof exposure
exp = ch7.roof_exposure("Fully")  # or
exp = ch7.roof_exposure.fully

# Snow exposure factor
C_e = ch7.C_e(rgh, exp)

# Snow thermal condition
thrml = ch7.thermal_condition("unheated open air")  # or
thrml = ch7.thermal_condition.unheated_open_air

# Snow thermal factor
C_t = ch7.C_t(thrml)

# Flat roof snow load
p_f = ch7.p_f(C_e, C_t, I_s, p_g)

# Some load combinations including snow
strn2 = Strength[2](S=p_f)
strn3 = Strength[3](S=p_f)
asd3 = Strength[3](S=p_f)
asd6 = Strength[6](S=p_f)

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

asce7-0.1.tar.gz (8.6 kB view hashes)

Uploaded Source

Built Distribution

asce7-0.1-py3-none-any.whl (8.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page