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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file asce7-0.1.tar.gz.

File metadata

  • Download URL: asce7-0.1.tar.gz
  • Upload date:
  • Size: 8.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.26.0

File hashes

Hashes for asce7-0.1.tar.gz
Algorithm Hash digest
SHA256 4a1f43a30935014fe076dde0c978fa0a07d6fb3951b94bbb9d6a6bb7734f3b3a
MD5 7ea1aaf7f6bb764a208d714c136cad5c
BLAKE2b-256 b607928b40a4c84b81fce15b3d4e811979300e646a26ccec4ead7c0da175b94e

See more details on using hashes here.

File details

Details for the file asce7-0.1-py3-none-any.whl.

File metadata

  • Download URL: asce7-0.1-py3-none-any.whl
  • Upload date:
  • Size: 8.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.26.0

File hashes

Hashes for asce7-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8a917283296de091dbfc4aea04bd61ba1de48a0c28e82996e1cbf2eb3688690e
MD5 830efd011b54a6953f8aaeaefdb5b42a
BLAKE2b-256 8503af1e4413ad883c5381dea23353a7ca017407bafbf7310bc964c712764cf6

See more details on using hashes here.

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