Skip to content

Instantly share code, notes, and snippets.

@jsb2505
jsb2505 / Concrete.txt
Last active February 4, 2026 12:39
A gist of concrete lambda functions to BS EN 1992-1-1 and UK National Annex (Eurocode 2)
/**Poisson's ratio of concrete.
Ref: EC2 §3.1.3(4).
Args:
isCracked: type:Bool (default: FALSE)
*/
get_poissons_ratio = LAMBDA([isCracked],
LET(
_isCracked, IF(ISOMITTED(isCracked), FALSE, isCracked),
IF(_isCracked,