WoodcoreMake the numbers vibe

Commands › Calculating in the report

#verify Calculating in the report

Checks a relation between two values and prints it: green ✔ where it holds, red ✘ where not.

#verify(,
  : , : ,
  : ,
  : , : , : , : ,
  : , : , : ,
  : , : , : 
)

Hover an argument: what it does. Hover its value: every possible value. A click keeps the bubble open.

The essentials

On the full valuesThe comparison uses the full values, not the printed decimals.
The sign follows the truthWhere F_Ed ⩽ R_d fails, the line prints F_Ed > R_d, in red.
The utilisationname-calc: keeps the ratio; name-visible: prints it: η = σ/f ⩽ 1.
Same dimensionsComparing kN with kNm stops the compile.

Arguments

ArgumentStatusWhat it does, and examples
The line's arguments
required
The relation, between keys noted above.
`F_Ed <= R_d`<=, >=, <, >, =, != (or ≤, ≥, ≠)
`sigma_m_d / f_m_d <= 1`a side may be a formula
`tau_d <= (2.5 "N/mm²")`a number with its unit
optional
The name the utilisation is stored under, for a line below.
name-calc: "eta"left over right for ⩽
name-calc: "eta_t"read below with #var("eta_t")
optional
The symbol the relation is printed under, as a ratio against 1.
name-visible: "eta"η = σ/f = 0.62 ⩽ 1
name-visible: "eta_(t,d)"a ratio with its subscripts
What is printed
optional
What the line of the check prints.
display: "variable-value-unit"F_Ed / R_d = 12 kN / 24 kN = 0.5 ⩽ 1
display: "none"checked, nothing printed
Label and description
optional
What the relation checks, in words.
label: "Zugspannung"the check's label
label: "Résistance à la traction"placed as label-position: says
optional
Where the check's label goes.
label-position: "before"the label, then «:» and the relation
label-position: "footnote"in the line's footnote
optional
Why this check.
descr: "Zugstab, Nettoquerschnitt"what is checked, and where
descr: "Kombination ULS 2"the load case
optional
Where the check's description goes.
descr-position: "after"in brackets, after the relation
descr-position: "none"kept in the file, not printed
Citation
optional
The check's norm.
norm: "SIA 265"a norm
norm: "EN 1995-1-1"Eurocode 5
optional
The check's clause.
norm-section: "4.2.1"a clause
norm-section: "Gl. (34)"an equation
optional
Where the check's citation goes.
norm-position: "line-right"in the right-hand column
norm-position: "in-line"after the relation, in grey
Other
optional
The role of the ratio name-calc: stores. Default: result.
role: "compute"an intermediate ratio, not a result
role: "result"listed among #var-table's results
optional
The name Woodcore finds the check by; once per domain.
id: "v-6"the check Woodcore rewrites
id: "traction-1"found by typst query too
optional
The level of detail. At 0, the relation is still checked.
level: 0checked, nothing printed
level: 3all of it: symbols, values and citation

Lines to copy

Minimal call

#verify(`F_Ed <= R_d`)

Complete call

#verify(`F_Ed <= R_d`, name-calc: none, name-visible: none, display: auto, role: auto, label: none, label-position: auto, descr: none, descr-position: auto, norm: none, norm-section: none, norm-position: auto, id: none, level: auto)

Examples

Example 1
#var("F_Ed", 2.037, "kN")
#var("R_d", 4.969, "kN")

#verify(`F_Ed <= R_d`)
Level of detail
The page verify produces, level 2
Example 2
#var("F_Ed", 6.2, "kN")
#var("R_d", 4.969, "kN")

#verify(`F_Ed / R_d <= 1`)
Level of detail
The page verify produces, level 2
Example 3
#var("F_Ed", 12, "kN", level: 0)
#var("R_d", 24, "kN", level: 0)
#verify(`F_Ed / R_d <= 1`, display: "variable-value-unit")

The three levels print the same page.

The page verify produces, level 2
Example 4
#var("sigma_t_d", 0.893, "N/mm²", level: 0)
#var("f_t_d", 1.187, "N/mm²", level: 0)
#verify(`sigma_t_d <= f_t_d`, name-calc: "eta", name-visible: "eta", display: "variable-value-unit")
Le taux de travail vaut #var("eta").

The three levels print the same page.

The page verify produces, level 2
Example 5
#var("F_Ed", 2.037, "kN", level: 0)
#var("R_d", 4.969, "kN", level: 0)
#verify(`F_Ed <= R_d`, level: 0)
#eq("eta", `F_Ed / R_d`)
Level of detail
The page verify produces, level 2
Example 6
#var("sigma_t_0_d", 4.2, "N/mm²")
#var("f_t_0_d", 9.9, "N/mm²")
#verify(`sigma_t_0_d <= f_t_0_d`, label: "Zugspannung", norm: "SIA 265", norm-section: "4.2.1", norm-position: "line-right", id: "v-6")
Level of detail
The page verify produces, level 2

Defined in lib/formula.typ:2463