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.
relationrequiredThe relation, between keys noted above.
name-calcoptional · default noneThe name the utilisation is stored under, for a line below.
name-calcoptional · default nonenoneFree text, for example:
name-calc: "eta"name-visibleoptional · default noneThe symbol the relation is printed under, as a ratio against 1.
name-visibleoptional · default nonenoneFree text, for example:
name-visible: "eta"displayoptional · default autoWhat the line of the check prints.
displayoptional · default autoautoleft to the level"none"nothing is printed"variable"the symbols"value-unit"the values"variable-value-unit"the symbols, then the valuesHover a value: its call and what it prints.
#var("F_Ed", 2.037, "kN", level: 0)
#var("R_d", 4.969, "kN", level: 0)
#verify(`F_Ed <= R_d`, display: auto)What it prints
Prints the same as "value-unit".
#var("F_Ed", 2.037, "kN", level: 0)
#var("R_d", 4.969, "kN", level: 0)
#verify(`F_Ed <= R_d`, display: "none")What it prints
Nothing is printed.
#var("F_Ed", 2.037, "kN", level: 0)
#var("R_d", 4.969, "kN", level: 0)
#verify(`F_Ed <= R_d`, display: "variable")What it prints
#var("F_Ed", 2.037, "kN", level: 0)
#var("R_d", 4.969, "kN", level: 0)
#verify(`F_Ed <= R_d`, display: "value-unit")What it prints
Prints the same as auto.
#var("F_Ed", 2.037, "kN", level: 0)
#var("R_d", 4.969, "kN", level: 0)
#verify(`F_Ed <= R_d`, display: "variable-value-unit")What it prints
Compiled once by Woodcore's engine, on the examples' frozen data.
labeloptional · default noneWhat the relation checks, in words.
labeloptional · default nonenoneFree text, for example:
label: "Zugspannung"label-positionoptional · default autoWhere the check's label goes.
label-positionoptional · default autoautoleft to the level: a footnote from level 2"none"no label"before"before the line, then «:»"after"after the line, after a dash"footnote"as a footnoteHover a value: its call and what it prints.
#var("F_Ed", 2.037, "kN", level: 0)
#var("R_d", 4.969, "kN", level: 0)
#verify(`F_Ed <= R_d`, label: "Tensile resistance", label-position: auto)What it prints
Prints the same as "footnote".
#var("F_Ed", 2.037, "kN", level: 0)
#var("R_d", 4.969, "kN", level: 0)
#verify(`F_Ed <= R_d`, label: "Tensile resistance", label-position: "none")What it prints
#var("F_Ed", 2.037, "kN", level: 0)
#var("R_d", 4.969, "kN", level: 0)
#verify(`F_Ed <= R_d`, label: "Tensile resistance", label-position: "before")What it prints
#var("F_Ed", 2.037, "kN", level: 0)
#var("R_d", 4.969, "kN", level: 0)
#verify(`F_Ed <= R_d`, label: "Tensile resistance", label-position: "after")What it prints
#var("F_Ed", 2.037, "kN", level: 0)
#var("R_d", 4.969, "kN", level: 0)
#verify(`F_Ed <= R_d`, label: "Tensile resistance", label-position: "footnote")What it prints
Prints the same as auto.
Compiled once by Woodcore's engine, on the examples' frozen data.
descroptional · default noneWhy this check.
descroptional · default nonenoneFree text, for example:
descr: "Zugstab, Nettoquerschnitt"descr-positionoptional · default autoWhere the check's description goes.
descr-positionoptional · default autoautoleft to the level: a footnote at level 3"none"no description"after"after the line, in brackets"footnote"as a footnoteHover a value: its call and what it prints.
#var("F_Ed", 2.037, "kN", level: 0)
#var("R_d", 4.969, "kN", level: 0)
#verify(`F_Ed <= R_d`, descr: "Member in tension, net section", descr-position: auto)What it prints
Prints the same as "none".
#var("F_Ed", 2.037, "kN", level: 0)
#var("R_d", 4.969, "kN", level: 0)
#verify(`F_Ed <= R_d`, descr: "Member in tension, net section", descr-position: "none")What it prints
Prints the same as auto.
#var("F_Ed", 2.037, "kN", level: 0)
#var("R_d", 4.969, "kN", level: 0)
#verify(`F_Ed <= R_d`, descr: "Member in tension, net section", descr-position: "after")What it prints
#var("F_Ed", 2.037, "kN", level: 0)
#var("R_d", 4.969, "kN", level: 0)
#verify(`F_Ed <= R_d`, descr: "Member in tension, net section", descr-position: "footnote")What it prints
Compiled once by Woodcore's engine, on the examples' frozen data.
normoptional · default noneThe check's norm.
normoptional · default nonenoneFree text, for example:
norm: "SIA 265"norm-sectionoptional · default noneThe check's clause.
norm-sectionoptional · default nonenoneFree text, for example:
norm-section: "4.2.1"norm-positionoptional · default autoWhere the check's citation goes.
norm-positionoptional · default autoautoleft to the level: a footnote at level 3"none"no citation"in-line"after the line, in grey"line-right"in the right-hand column"footnote"as a footnoteHover a value: its call and what it prints.
#var("F_Ed", 2.037, "kN", level: 0)
#var("R_d", 4.969, "kN", level: 0)
#verify(`F_Ed <= R_d`, norm: "SIA 265", norm-section: "4.2.1", norm-position: auto)What it prints
Prints the same as "none".
#var("F_Ed", 2.037, "kN", level: 0)
#var("R_d", 4.969, "kN", level: 0)
#verify(`F_Ed <= R_d`, norm: "SIA 265", norm-section: "4.2.1", norm-position: "none")What it prints
Prints the same as auto.
#var("F_Ed", 2.037, "kN", level: 0)
#var("R_d", 4.969, "kN", level: 0)
#verify(`F_Ed <= R_d`, norm: "SIA 265", norm-section: "4.2.1", norm-position: "in-line")What it prints
#var("F_Ed", 2.037, "kN", level: 0)
#var("R_d", 4.969, "kN", level: 0)
#verify(`F_Ed <= R_d`, norm: "SIA 265", norm-section: "4.2.1", norm-position: "line-right")What it prints
#var("F_Ed", 2.037, "kN", level: 0)
#var("R_d", 4.969, "kN", level: 0)
#verify(`F_Ed <= R_d`, norm: "SIA 265", norm-section: "4.2.1", norm-position: "footnote")What it prints
Compiled once by Woodcore's engine, on the examples' frozen data.
roleoptional · default autoThe role of the ratio
name-calc: stores. Default: result.roleoptional · default autoautoresult, for #verify"data"a datum"compute"an intermediate value"result"a resultHover a value: its call and what it prints.
#var("F_Ed", 2.037, "kN", level: 0)
#var("R_d", 4.969, "kN", level: 0)
#verify(`F_Ed <= R_d`, role: auto)What it prints
The role does not change the line: it tells #var-table where to file it.
#var("F_Ed", 2.037, "kN", level: 0)
#var("R_d", 4.969, "kN", level: 0)
#verify(`F_Ed <= R_d`, role: "data")What it prints
The role does not change the line: it tells #var-table where to file it.
#var("F_Ed", 2.037, "kN", level: 0)
#var("R_d", 4.969, "kN", level: 0)
#verify(`F_Ed <= R_d`, role: "compute")What it prints
The role does not change the line: it tells #var-table where to file it.
#var("F_Ed", 2.037, "kN", level: 0)
#var("R_d", 4.969, "kN", level: 0)
#verify(`F_Ed <= R_d`, role: "result")What it prints
The role does not change the line: it tells #var-table where to file it.
Compiled once by Woodcore's engine, on the examples' frozen data.
idoptional · default noneThe name Woodcore finds the check by; once per domain.
idoptional · default nonenoneFree text, for example:
id: "v-6"leveloptional · default autoThe level of detail. At 0, the relation is still checked.
leveloptional · default autoautofollows the domain, else the report0nothing printed; the value is stored1the symbols2the values and the label3all of it, the description and citation tooHover a value: its call and what it prints.
#var("F_Ed", 2.037, "kN", level: 0)
#var("R_d", 4.969, "kN", level: 0)
#verify(`F_Ed <= R_d`, label: "Tensile resistance", descr: "Member in tension, net section", norm: "SIA 265", norm-section: "4.2.1", level: auto)What it prints
Prints the same as 2.
#var("F_Ed", 2.037, "kN", level: 0)
#var("R_d", 4.969, "kN", level: 0)
#verify(`F_Ed <= R_d`, label: "Tensile resistance", descr: "Member in tension, net section", norm: "SIA 265", norm-section: "4.2.1", level: 0)What it prints
Nothing is printed.
#var("F_Ed", 2.037, "kN", level: 0)
#var("R_d", 4.969, "kN", level: 0)
#verify(`F_Ed <= R_d`, label: "Tensile resistance", descr: "Member in tension, net section", norm: "SIA 265", norm-section: "4.2.1", level: 1)What it prints
#var("F_Ed", 2.037, "kN", level: 0)
#var("R_d", 4.969, "kN", level: 0)
#verify(`F_Ed <= R_d`, label: "Tensile resistance", descr: "Member in tension, net section", norm: "SIA 265", norm-section: "4.2.1", level: 2)What it prints
Prints the same as auto.
#var("F_Ed", 2.037, "kN", level: 0)
#var("R_d", 4.969, "kN", level: 0)
#verify(`F_Ed <= R_d`, label: "Tensile resistance", descr: "Member in tension, net section", norm: "SIA 265", norm-section: "4.2.1", level: 3)What it prints
Compiled once by Woodcore's engine, on the examples' frozen data.
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 utilisation
name-calc: keeps the ratio; name-visible: prints it: η = σ/f ⩽ 1.Same dimensionsComparing kN with kNm stops the compile.
Arguments
| Argument | Status | What 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 ⩽ 1name-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 ⩽ 1display: "none"checked, nothing printed | |
| Label and description | ||
| optional | What the relation checks, in words. label: "Zugspannung"the check's labellabel: "Résistance à la traction"placed as label-position: says | |
| optional | Where the check's label goes. label-position: "before"the label, then «:» and the relationlabel-position: "footnote"in the line's footnote | |
| optional | Why this check. descr: "Zugstab, Nettoquerschnitt"what is checked, and wheredescr: "Kombination ULS 2"the load case | |
| optional | Where the check's description goes. descr-position: "after"in brackets, after the relationdescr-position: "none"kept in the file, not printed | |
| Citation | ||
| optional | The check's norm. norm: "SIA 265"a normnorm: "EN 1995-1-1"Eurocode 5 | |
| optional | The check's clause. norm-section: "4.2.1"a clausenorm-section: "Gl. (34)"an equation | |
| optional | Where the check's citation goes. norm-position: "line-right"in the right-hand columnnorm-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 resultrole: "result"listed among #var-table's results | |
| optional | The name Woodcore finds the check by; once per domain. id: "v-6"the check Woodcore rewritesid: "traction-1"found by typst query too | |
| optional | The level of detail. At 0, the relation is still checked. level: 0checked, nothing printedlevel: 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
#var("F_Ed", 2.037, "kN")
#var("R_d", 4.969, "kN")
#verify(`F_Ed <= R_d`)Level of detail
#var("F_Ed", 6.2, "kN")
#var("R_d", 4.969, "kN")
#verify(`F_Ed / R_d <= 1`)Level of detail
#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.
#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.
#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
#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
Defined in lib/formula.typ:2463