Skip to content

Instantly share code, notes, and snippets.

@ronkok
Last active December 6, 2023 16:12
Show Gist options
  • Save ronkok/317f8ce0f706608fa9b3e3258ecea138 to your computer and use it in GitHub Desktop.
Save ronkok/317f8ce0f706608fa9b3e3258ecea138 to your computer and use it in GitHub Desktop.
Hurmet macros for civil and structural engineers
# Hurmet macros for civil and structural engineers
ab = """¢` A_b = (π d_b^2) / 4 = ?? in² `, bolt area"""
asc = """Find required reinforcing steel, ¢` A_sMin `
¢` x_c = (0.85 f_c′ b d) / f_yr = ?? in² `, parameter for next line of calculation
¢` A_1 = x_c - √(x_c² - (2 x_c M_u) / (0.9 d f_yr)) = ?? in² `, from CRSI Report 22
¢` A_2 = (b d· max(200 'psi', 3 √f_c′′)) / f_yr = ?? in² `, per ACI 10.5
¢` A_sMin = min(max(A_1, A_2), 1.33 A_1) = ? in² `
¢` A_sUsualMax = b d ρ_T = ?? in² `, maximum reinf ratio for which ¢` ϕ_b ` may be 0.9
¢` @test A_sMin < A_sUsualMax `"""
mc = """¢` a = (A_s f_yr) / (0.85 f_c′ b) = ?? in `, depth of Whitney stress block
¢` ϕM_n = 0.9 A_s f_yr (d - a//2) = ?? k·ft `, beam strength"""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment