Skip to content

Instantly share code, notes, and snippets.

@ronkok
Last active December 6, 2023 16:12
Guide to Hurmet macros for civil and structural engineers

Guide to Hurmet macros for civil and structural engineers

To have these macros available in Hurmet.app, copy this text into a Hurmet calculation zone

macros = import("https://gist.githubusercontent.com/ronkok/317f8ce0f706608fa9b3e3258ecea138/raw/csMacros.txt") = !

Then, write a macro name, place the selection point after the name, and hit Alt-E.

ab

Mnemonic: Area of Bolt
Prerequisite: db, diameter of bolt

Entry:

¢` A_b = (π d_b^2) / 4 = ?? in² `, bolt area

asc

Mnemonic: Area of Steel required for Concrete beams
Prerequisites:

Name Description
fc prescribed concrete strength, psi
fc′′ ditto, psi²
b width
d depth to reinforcement
fyr yield strength of steel reinforcement
Mu strength level bending demand
ρT max reinf ratio for which ρ may be 0.9

Entry:

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

Description: Bending strength of a concrete beam.
Prerequisites:

Name Description
As area of reinforcing steel
b width
d depth to reinforcement
fc prescribed concrete strength, psi
fyr yield strength of steel reinforcement

Entry:

¢` 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