{"id":6152,"date":"2026-11-28T17:58:09","date_gmt":"2026-11-28T17:58:09","guid":{"rendered":"https:\/\/f7vent.ee\/calculators\/air-duct-calculator\/"},"modified":"2026-11-28T18:02:42","modified_gmt":"2026-11-28T18:02:42","slug":"air-duct-calculator","status":"publish","type":"page","link":"https:\/\/f7vent.ee\/en\/calculators\/air-duct-calculator\/","title":{"rendered":"Air duct calculator"},"content":{"rendered":"<div class=\"fusion-fullwidth fullwidth-box fusion-builder-row-1 fusion-flex-container hundred-percent-fullwidth non-hundred-percent-height-scrolling\" style=\"--awb-border-radius-top-left:0px;--awb-border-radius-top-right:0px;--awb-border-radius-bottom-right:0px;--awb-border-radius-bottom-left:0px;--awb-padding-top:0px;--awb-padding-right:0px;--awb-padding-bottom:0px;--awb-padding-left:0px;--awb-margin-top:0px;--awb-margin-bottom:0px;--awb-flex-wrap:wrap;\" ><div class=\"fusion-builder-row fusion-row fusion-flex-align-items-flex-start fusion-flex-content-wrap\" style=\"width:104% !important;max-width:104% !important;margin-left: calc(-4% \/ 2 );margin-right: calc(-4% \/ 2 );\"><div class=\"fusion-layout-column fusion_builder_column fusion-builder-column-0 fusion_builder_column_1_1 1_1 fusion-flex-column\" style=\"--awb-bg-size:cover;--awb-width-large:100%;--awb-margin-top-large:0px;--awb-spacing-right-large:1.92%;--awb-margin-bottom-large:0px;--awb-spacing-left-large:1.92%;--awb-width-medium:100%;--awb-spacing-right-medium:1.92%;--awb-spacing-left-medium:1.92%;--awb-width-small:100%;--awb-spacing-right-small:1.92%;--awb-spacing-left-small:1.92%;\"><div class=\"fusion-column-wrapper fusion-flex-justify-content-flex-start fusion-content-layout-column\"><!-- F7 \u00d5hukanalite kalkulaator (et) \u2013 build 2026-11-25 \u2013 kalkulaatorid\/build\/site.mjs -->\n<style id=\"f7p-css\">\n\/* Kalkulaatorilehtede sisuosa (H1, juhend, meetod, KKK). Nimeruum .f7p \u2013 Avada stiile ei muuda. *\/\n.f7p { box-sizing: border-box; width: 100%; max-width: 1192px; margin: 0 auto; padding: 16px 16px 40px; font-family: Barlow, system-ui, sans-serif; color: #32373C; font-size: 16px; line-height: 1.55; }\n.f7p *, .f7p *::before, .f7p *::after { box-sizing: border-box; }\n\/* .f7k (kubu) ploki oma k\u00fclgvahe asendub lehe k\u00fclgvahega (kokku sama 16 px). *\/\n.f7p > .f7k > .wrap { padding-left: 0; padding-right: 0; }\n.f7p > h1 { margin: 0 0 6px; font: 700 28px\/1.15 Barlow, system-ui, sans-serif; color: #1C3765; letter-spacing: 0; }\n.f7p__lead { margin: 0 0 16px; font-size: 17px; max-width: 760px; }\n.f7p__text { max-width: 760px; margin-top: 32px; }\n.f7p__text h2 { margin: 28px 0 8px; font: 700 21px\/1.25 Barlow, system-ui, sans-serif; color: #1C3765; }\n.f7p__text h3 { margin: 18px 0 6px; font: 600 17px\/1.3 Barlow, system-ui, sans-serif; color: #1C3765; }\n.f7p__text p, .f7p__text ul, .f7p__text ol { margin: 0 0 10px; }\n.f7p__text ul, .f7p__text ol { padding-left: 22px; }\n.f7p__text li { margin-bottom: 4px; }\n.f7p__text a { color: #1C3765; text-decoration: underline; text-underline-offset: 2px; }\n.f7p__text code { font-family: inherit; font-weight: 600; }\n.f7p__note { font-size: 15px; color: #5A6472; }\n.f7p__table { width: 100%; max-width: 420px; border-collapse: collapse; margin: 6px 0 12px; font-variant-numeric: tabular-nums; }\n.f7p__table th, .f7p__table td { padding: 8px 10px; border-bottom: 1px solid #DCE1E8; text-align: right; }\n.f7p__table th:first-child, .f7p__table td:first-child { text-align: left; }\n.f7p__table thead th { color: #1C3765; font-weight: 600; border-bottom-width: 2px; }\n.f7p__faq details { border-bottom: 1px solid #DCE1E8; }\n.f7p__faq summary { min-height: 44px; padding: 10px 28px 10px 0; cursor: pointer; font-weight: 600; color: #1C3765; list-style: none; position: relative; }\n.f7p__faq summary::-webkit-details-marker { display: none; }\n.f7p__faq summary::after { content: \"+\"; position: absolute; right: 4px; top: 8px; font-size: 22px; line-height: 1; }\n.f7p__faq details[open] summary::after { content: \"\u2013\"; }\n.f7p__faq details > div { padding: 0 0 12px; }\n.f7p__links { list-style: none; padding: 0 !important; display: grid; gap: 8px; }\n.f7p__links a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }\n@media (min-width: 900px) {\n  .f7p { padding: 28px 20px 48px; }\n  .f7p > h1 { font-size: 36px; }\n  .f7p__lead { font-size: 18px; margin-bottom: 22px; }\n}\n<\/style>\n<style id=\"f7c-duct-css\">\n\/* F7 kalkulaatorite \u00fchised stiilid. K\u00f5ik on nimeruumis .f7c, et Avada stiilid ei segaks\n   ega kalkulaator m\u00f5jutaks saidi \u00fclej\u00e4\u00e4nud osa. Allikas: 02-brand\/brandijuhis.md. *\/\n.f7c {\n  --f7c-navy: #1C3765;\n  --f7c-red: #EB1543;          \/* ainult p\u00f5hi-CTA *\/\n  --f7c-text: #32373C;\n  --f7c-muted: #5A6472;\n  --f7c-line: #B9C6D8;\n  --f7c-light: #D8E8F5;\n  --f7c-panel: #F2F7FC;\n  --f7c-white: #FFFFFF;\n  --f7c-error: #A4262C;        \/* veateade, mitte br\u00e4ndipunane *\/\n  --f7c-focus: 0 0 0 3px rgba(28, 55, 101, .35);\n  --f7c-radius: 8px;\n  box-sizing: border-box;\n  font-family: Barlow, system-ui, -apple-system, \"Segoe UI\", Roboto, Arial, sans-serif;\n  font-size: 16px;\n  line-height: 1.4;\n  color: var(--f7c-text);\n}\n\/* border-box otse, mitte `inherit`: <details> sisu on brauseri sisemises slot'is ja `inherit` annaks seal content-box. *\/\n.f7c *, .f7c *::before, .f7c *::after { box-sizing: border-box; }\n\n.f7c .f7c-sr {\n  position: absolute !important;\n  width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;\n  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;\n}\n\n.f7c .f7c-btn {\n  font: 600 16px\/1.2 Barlow, system-ui, sans-serif;\n  min-height: 44px;\n  padding: 10px 18px;\n  border: 2px solid var(--f7c-navy);\n  border-radius: var(--f7c-radius);\n  background: var(--f7c-white);\n  color: var(--f7c-navy);\n  cursor: pointer;\n  text-transform: none;\n  letter-spacing: 0;\n}\n.f7c .f7c-btn:hover { background: var(--f7c-light); }\n.f7c .f7c-btn:focus-visible { outline: none; box-shadow: var(--f7c-focus); }\n.f7c .f7c-btn:disabled { opacity: .45; cursor: default; background: var(--f7c-white); }\n\n\/* Segmenteeritud valik (raadionupud) *\/\n.f7c .f7c-seg { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }\n.f7c .f7c-seg__legend { float: left; margin: 0 4px 0 0; padding: 0; font-weight: 500; color: var(--f7c-muted); font-size: 15px; }\n.f7c .f7c-seg__opts { display: inline-flex; border: 1px solid var(--f7c-line); border-radius: var(--f7c-radius); overflow: hidden; background: var(--f7c-white); }\n.f7c .f7c-seg__opt { position: relative; margin: 0; }\n.f7c .f7c-seg__opt input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }\n.f7c .f7c-seg__opt span {\n  display: inline-flex; align-items: center; justify-content: center;\n  min-width: 44px; min-height: 44px; padding: 0 10px;\n  font-weight: 600; color: var(--f7c-navy); cursor: pointer;\n  border-left: 1px solid var(--f7c-line);\n}\n.f7c .f7c-seg__opt:first-child span { border-left: 0; }\n.f7c .f7c-seg__opt input:checked + span { background: var(--f7c-navy); color: var(--f7c-white); }\n.f7c .f7c-seg__opt input:focus-visible + span { box-shadow: inset var(--f7c-focus); }\n\n\/* \u00d5hukanalite kalkulaator \u2013 MOBILE FIRST (omanik 2026-11-24).\n   Alus: telefon, \u00fcks veerg, puutealad \u2265 44 px. Laiemad vaated lisatakse min-width p\u00e4ringutega. *\/\n.f7c-duct { max-width: 1120px; margin: 0 auto; }\n.f7c-duct [hidden] { display: none !important; }\n\n\/* Vahelehed: telefonis 2 \u00d7 2 *\/\n.f7c .f7c-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 0 0 12px; }\n.f7c .f7c-tab {\n  min-height: 48px; padding: 6px 8px; margin: 0;\n  border: 2px solid var(--f7c-line); border-radius: var(--f7c-radius);\n  background: var(--f7c-white); color: var(--f7c-navy);\n  font: 600 16px\/1.15 Barlow, system-ui, sans-serif; text-transform: none; letter-spacing: 0;\n  cursor: pointer;\n}\n.f7c .f7c-tab[aria-selected=\"true\"] { background: var(--f7c-navy); border-color: var(--f7c-navy); color: var(--f7c-white); }\n.f7c .f7c-tab:focus-visible { outline: none; box-shadow: var(--f7c-focus); }\n\n.f7c .f7c-duct__layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }\n.f7c .f7c-duct__inputs {\n  margin: 0; padding: 14px; background: var(--f7c-panel);\n  border: 1px solid var(--f7c-light); border-radius: 12px;\n  display: grid; gap: 10px;\n}\n\n\/* V\u00e4ljad *\/\n.f7c .f7c-field2 { display: grid; gap: 4px; min-width: 0; }\n.f7c .f7c-lbl { margin: 0; font-weight: 600; font-size: 16px; color: var(--f7c-navy); }\n.f7c .f7c-lbl--sm { font-size: 15px; font-weight: 500; color: var(--f7c-text); }\n.f7c .f7c-opt { font-weight: 400; color: var(--f7c-muted); font-size: 14px; }\n.f7c .f7c-fs { margin: 0; padding: 0; border: 0; min-width: 0; display: grid; gap: 6px; }\n.f7c .f7c-fs > legend { padding: 0; margin-bottom: 6px; }\n.f7c .f7c-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; align-items: end; }\n\n.f7c .f7c-input, .f7c .f7c-select {\n  width: 100%; min-width: 0; height: 48px; margin: 0; padding: 0 12px;\n  border: 2px solid var(--f7c-line); border-radius: var(--f7c-radius);\n  background: var(--f7c-white); color: var(--f7c-navy);\n  font: 600 18px\/1 Barlow, system-ui, sans-serif; font-variant-numeric: tabular-nums;\n  box-shadow: none; outline: none;\n}\n.f7c .f7c-select {\n  -webkit-appearance: none; appearance: none; padding-right: 32px; cursor: pointer;\n  background: var(--f7c-white) url(\"data:image\/svg+xml,%3Csvg xmlns='http:\/\/www.w3.org\/2000\/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231C3765' stroke-width='2'\/%3E%3C\/svg%3E\") no-repeat right 10px center;\n}\n.f7c .f7c-input:focus, .f7c .f7c-select:focus { border-color: var(--f7c-navy); box-shadow: var(--f7c-focus); }\n.f7c .f7c-input[aria-invalid=\"true\"] { border-color: var(--f7c-error); }\n.f7c .f7c-input--big { height: 56px; font-size: 26px; }\n.f7c .f7c-combo { display: grid; grid-template-columns: minmax(0, 1fr) 112px; gap: 6px; }\n.f7c .f7c-combo__unit { height: 56px; }\n.f7c .f7c-suffix { position: relative; display: block; min-width: 0; }\n.f7c .f7c-suffix .f7c-input { padding-right: 52px; }\n.f7c .f7c-suffix > span {\n  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);\n  font-size: 14px; color: var(--f7c-muted); pointer-events: none;\n}\n.f7c .f7c-err { margin: 0; font-size: 14px; color: var(--f7c-error); }\n.f7c .f7c-err:empty { display: none; }\n.f7c .f7c-inline { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; }\n\n\/* Kaheosaline valik (raadionupud) *\/\n.f7c .f7c-seg2 { display: grid; grid-template-columns: 1fr 1fr; border: 2px solid var(--f7c-line); border-radius: var(--f7c-radius); overflow: hidden; background: var(--f7c-white); }\n.f7c .f7c-seg2 label { position: relative; margin: 0; }\n.f7c .f7c-seg2 input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }\n.f7c .f7c-seg2 span { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 44px; padding: 2px 8px; font-weight: 600; line-height: 1.15; text-align: center; color: var(--f7c-navy); cursor: pointer; }\n.f7c .f7c-seg2__val { font-size: 14px; font-weight: 500; font-variant-numeric: tabular-nums; }\n.f7c .f7c-seg2__val:empty { display: none; }\n.f7c .f7c-seg2 label + label span { border-left: 1px solid var(--f7c-line); }\n.f7c .f7c-seg2 input:checked + span { background: var(--f7c-navy); color: var(--f7c-white); }\n.f7c .f7c-seg2 input:focus-visible + span { box-shadow: inset var(--f7c-focus); }\n\n.f7c .f7c-check { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 16px; cursor: pointer; }\n.f7c .f7c-check input { width: 22px; height: 22px; margin: 0; accent-color: var(--f7c-navy); }\n\n.f7c .f7c-linkbtn {\n  justify-self: start; min-height: 44px; padding: 0 4px; margin: 0;\n  border: 0; background: none; color: var(--f7c-navy);\n  font: 600 15px\/1.2 Barlow, system-ui, sans-serif; text-decoration: underline; text-underline-offset: 3px; text-transform: none;\n  cursor: pointer;\n}\n.f7c .f7c-linkbtn:focus-visible { outline: none; box-shadow: var(--f7c-focus); border-radius: 4px; }\n.f7c .f7c-btnrow { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; margin-top: 8px; }\n.f7c .f7c-iconbtn {\n  width: 44px; height: 44px; margin: 0; padding: 0; border: 0; border-radius: 50%;\n  background: transparent; color: var(--f7c-muted); font-size: 20px; cursor: pointer;\n}\n.f7c .f7c-iconbtn:hover { background: var(--f7c-light); color: var(--f7c-navy); }\n.f7c .f7c-iconbtn:focus-visible { outline: none; box-shadow: var(--f7c-focus); }\n\n\/* Kiirtulemus (telefon\/tahvel): \u00fches reas sisendite all, vajutus viib t\u00e4ieliku tulemuseni *\/\n.f7c .f7c-quick {\n  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px;\n  width: 100%; min-height: 48px; margin: 0; padding: 10px 12px;\n  border: 2px solid var(--f7c-navy); border-radius: var(--f7c-radius);\n  background: var(--f7c-white); color: var(--f7c-navy);\n  font: 500 16px\/1.3 Barlow, system-ui, sans-serif; text-align: left; text-transform: none; letter-spacing: 0;\n  cursor: pointer; font-variant-numeric: tabular-nums;\n}\n.f7c .f7c-quick b { font-weight: 700; font-size: 20px; }\n.f7c .f7c-quick .f7c-quick__size { font-size: 22px; }\n.f7c .f7c-quick__ok { color: #1B5E33; font-weight: 700; }\n.f7c .f7c-quick__fail { color: var(--f7c-error); font-weight: 700; }\n.f7c .f7c-quick__go { margin-left: auto; font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }\n.f7c .f7c-quick:focus-visible { outline: none; box-shadow: var(--f7c-focus); }\n.f7c .f7c-pair__full { grid-column: 1 \/ -1; }\n\n\/* Raadionuppude loend (kareduse eeldus) *\/\n.f7c .f7c-radios { display: grid; gap: 4px; }\n.f7c .f7c-radio { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 4px 8px; border-radius: var(--f7c-radius); cursor: pointer; font-size: 15px; }\n.f7c .f7c-radio:hover { background: var(--f7c-light); }\n.f7c .f7c-radio input { flex: 0 0 auto; width: 22px; height: 22px; margin: 0; accent-color: var(--f7c-navy); }\n.f7c .f7c-radio b { color: var(--f7c-navy); }\n\n\/* V\u00f5rdlusridade redaktor *\/\n.f7c .f7c-crow { padding: 10px; margin: 0 0 8px; background: var(--f7c-white); border: 1px solid var(--f7c-line); border-radius: var(--f7c-radius); display: grid; gap: 6px; }\n.f7c .f7c-crow__head { display: grid; grid-template-columns: auto minmax(0, 1fr) 44px; gap: 8px; align-items: center; }\n.f7c .f7c-crow__head .f7c-select { height: 44px; font-size: 16px; }\n\n\/* T\u00e4psemad seaded *\/\n.f7c .f7c-adv { border-top: 1px solid var(--f7c-light); padding-top: 4px; }\n.f7c .f7c-adv > summary {\n  min-height: 44px; display: flex; align-items: center; gap: 8px; cursor: pointer;\n  font-weight: 600; color: var(--f7c-navy); list-style: none;\n}\n.f7c .f7c-adv > summary::-webkit-details-marker { display: none; }\n.f7c .f7c-adv > summary::before { content: \"+\"; display: inline-flex; width: 22px; justify-content: center; font-size: 20px; }\n.f7c .f7c-adv[open] > summary::before { content: \"\u2013\"; }\n.f7c .f7c-adv__body { display: grid; gap: 10px; padding: 4px 0 6px; }\n\n\/* Tulemused *\/\n.f7c .f7c-duct__results { container-type: inline-size; min-width: 0; }\n.f7c .f7c-hint { padding: 16px; border: 2px dashed var(--f7c-line); border-radius: 12px; color: var(--f7c-muted); display: grid; gap: 10px; }\n.f7c .f7c-hint p { margin: 0; font-size: 16px; }\n.f7c .f7c-hint .f7c-btn { justify-self: start; }\n.f7c .f7c-res { padding: 16px; background: var(--f7c-white); border: 2px solid var(--f7c-navy); border-radius: 12px; display: grid; gap: 10px; }\n.f7c .f7c-res.is-warn, .f7c .f7c-res.is-none { border-color: var(--f7c-error); }\n.f7c .f7c-res__label { margin: 0; font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--f7c-muted); }\n.f7c .f7c-res__size { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font: 700 34px\/1.1 Barlow, system-ui, sans-serif; color: var(--f7c-navy); font-variant-numeric: tabular-nums; }\n.f7c .f7c-res__unit { font-size: 18px; font-weight: 600; }\n.f7c .f7c-res__verdict { margin: 0; }\n.f7c .f7c-badge { display: inline-block; padding: 3px 8px; border-radius: 999px; background: var(--f7c-light); color: var(--f7c-navy); font: 600 13px\/1.3 Barlow, system-ui, sans-serif; letter-spacing: 0; text-transform: none; }\n.f7c .f7c-badge.is-muted { background: #ECEEF1; color: var(--f7c-text); }\n.f7c .f7c-kpis { margin: 0; display: grid; gap: 8px; }\n.f7c .f7c-kpi { display: grid; gap: 2px; padding: 10px 12px; background: var(--f7c-panel); border-radius: var(--f7c-radius); }\n.f7c .f7c-kpi dt { font-size: 14px; color: var(--f7c-muted); }\n.f7c .f7c-kpi dd { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }\n.f7c .f7c-kpi__val { font: 700 26px\/1.1 Barlow, system-ui, sans-serif; color: var(--f7c-navy); font-variant-numeric: tabular-nums; }\n.f7c .f7c-kpi__unit { font-weight: 600; color: var(--f7c-navy); }\n.f7c .f7c-kpi__lim { font-size: 14px; color: var(--f7c-muted); }\n.f7c .f7c-chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; font: 600 14px\/1.4 Barlow, system-ui, sans-serif; white-space: nowrap; }\n.f7c .f7c-chip.is-ok { background: #E3F1E7; color: #1B5E33; }\n.f7c .f7c-chip.is-fail { background: #FBE6E7; color: var(--f7c-error); }\n.f7c .f7c-note { margin: 0; font-size: 15px; color: var(--f7c-text); }\n.f7c .f7c-note--small { font-size: 14px; color: var(--f7c-muted); }\n.f7c .f7c-alert { margin: 0; padding: 10px 12px; border-radius: var(--f7c-radius); background: #FBE6E7; color: var(--f7c-error); font-weight: 600; }\n.f7c .f7c-warn { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }\n.f7c .f7c-warn li { padding: 8px 10px; border-left: 4px solid #C98A00; background: #FFF6E0; border-radius: 4px; font-size: 15px; }\n.f7c .f7c-h3 { margin: 6px 0 0; font: 700 18px\/1.2 Barlow, system-ui, sans-serif; color: var(--f7c-navy); text-transform: none; letter-spacing: 0; }\n\/* Asendus: informatiivne v\u00e4ikseim piirv\u00e4\u00e4rtustele vastav kanal (eraldi samav\u00e4\u00e4rsete loendist, omanik 2026-11-25). *\/\n.f7c .f7c-min { display: grid; gap: 10px; margin-top: 4px; padding: 14px; border: 1px dashed var(--f7c-line); border-radius: 12px; background: var(--f7c-panel); }\n.f7c .f7c-min .f7c-h3 { margin: 0; }\n.f7c .f7c-min__size { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font: 700 26px\/1.1 Barlow, system-ui, sans-serif; color: var(--f7c-navy); font-variant-numeric: tabular-nums; }\n.f7c .f7c-min__noeq { margin: 0; padding: 8px 10px; border-left: 4px solid #C98A00; background: #FFF6E0; border-radius: 4px; color: var(--f7c-text); font-weight: 600; font-size: 15px; }\n.f7c .f7c-details { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; }\n.f7c .f7c-details div { min-width: 0; }\n.f7c .f7c-details dt { font-size: 13px; color: var(--f7c-muted); }\n.f7c .f7c-details dd { margin: 0; font-weight: 600; color: var(--f7c-navy); font-variant-numeric: tabular-nums; }\n.f7c .f7c-role { display: block; font-size: 13px; font-weight: 500; color: var(--f7c-muted); }\n.f7c .f7c-foot { margin: 0; font-size: 13px; color: var(--f7c-muted); }\n\n\/* Tabel: kitsas konteineris kaardid (ei kerita k\u00fclgsuunas), laias tavaline tabel *\/\n.f7c .f7c-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 15px; }\n.f7c .f7c-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }\n.f7c .f7c-table tr { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; padding: 10px 12px; margin: 0 0 8px; border: 1px solid var(--f7c-line); border-radius: var(--f7c-radius); background: var(--f7c-white); }\n.f7c .f7c-table tr.is-rec { border: 2px solid var(--f7c-navy); background: var(--f7c-panel); }\n.f7c .f7c-table th, .f7c .f7c-table td { display: block; padding: 0; border: 0; text-align: left; font-weight: 400; color: var(--f7c-text); background: none; }\n.f7c .f7c-table th[scope=\"row\"] { grid-column: 1 \/ -1; font-weight: 700; font-size: 17px; color: var(--f7c-navy); }\n.f7c .f7c-table td::before { content: attr(data-label); display: block; font-size: 12px; color: var(--f7c-muted); }\n\n.f7c .f7c-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }\n.f7c .f7c-actions .f7c-btn { flex: 1 1 140px; padding-left: 10px; padding-right: 10px; white-space: nowrap; }\n.f7c .f7c-actions--links { gap: 6px 16px; }\n.f7c .f7c-actions__status { flex-basis: 100%; font-size: 14px; color: var(--f7c-muted); }\n.f7c .f7c-actions__status:empty { display: none; }\n.f7c a.f7c-btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }\n.f7c .f7c-btn--cta { background: var(--f7c-red); border-color: var(--f7c-red); color: var(--f7c-white); font-size: 17px; }\n.f7c .f7c-btn--cta:hover { background: #C90F37; border-color: #C90F37; color: var(--f7c-white); }\n.f7c .f7c-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; color: var(--f7c-navy); text-decoration: underline; text-underline-offset: 3px; }\n\n@container (min-width: 560px) {\n  .f7c .f7c-kpis { grid-template-columns: 1fr 1fr; }\n  .f7c .f7c-details { grid-template-columns: repeat(4, minmax(0, 1fr)); }\n  .f7c .f7c-table thead { position: static; width: auto; height: auto; overflow: visible; clip: auto; }\n  .f7c .f7c-table tr { display: table-row; padding: 0; margin: 0; border: 0; border-radius: 0; background: none; }\n  .f7c .f7c-table tr.is-rec { border: 0; background: var(--f7c-panel); }\n  .f7c .f7c-table th, .f7c .f7c-table td { display: table-cell; padding: 8px 10px; border-bottom: 1px solid var(--f7c-light); vertical-align: middle; }\n  .f7c .f7c-table thead th { font-size: 13px; font-weight: 600; color: var(--f7c-muted); }\n  .f7c .f7c-table th[scope=\"row\"] { font-size: 16px; }\n  .f7c .f7c-table td::before { content: none; }\n  .f7c .f7c-actions .f7c-btn { flex: 0 0 auto; }\n}\n\n\/* Tahvel ja lauaarvuti. Vahekaardid j\u00e4\u00e4vad k\u00f5igil laiustel 2\u00d72 (omanik 2026-11-25). *\/\n@media (min-width: 900px) {\n  \/* Arvutis kompaktne 2\u00d72 plokk sisestusveeru laiuses (omanik 2026-11-25: mitte laiali venitatud). *\/\n  .f7c .f7c-tabs { max-width: 380px; }\n  .f7c .f7c-quick { display: none !important; } \/* tulemus on k\u00f5rval n\u00e4htav *\/\n  .f7c .f7c-duct__layout { grid-template-columns: minmax(320px, 380px) minmax(0, 1fr); align-items: start; gap: 20px; }\n  \/* Kui tulemust veel pole (ainult juhis, nt \u201eSisesta \u00f5huhulk.\u201c), on juhiskast vasakul nuppude all ja\n     sisestusv\u00e4ljad selle all (omanik 2026-11-25). Tulemus ise j\u00e4\u00e4b paremale sisestuse k\u00f5rvale. *\/\n  .f7c .f7c-duct__layout:has(> .f7c-duct__results > .f7c-hint:only-child) { grid-template-columns: minmax(320px, 380px); }\n  .f7c .f7c-duct__layout:has(> .f7c-duct__results > .f7c-hint:only-child) > .f7c-duct__results { order: -1; }\n}\n<\/style>\n<div class=\"f7p\">\n<h1>Air duct calculator<\/h1>\n<p class=\"f7p__lead\">Enter the air volume and the calculator suggests a suitable circular or rectangular duct size. You immediately see the air velocity and the friction pressure drop per metre.<\/p>\n<div class=\"f7c f7c-duct\" data-f7c=\"duct-calculator\" lang=\"en\">\r\n  <div class=\"f7c-tabs\" role=\"tablist\" aria-label=\"Mode\">\r\n    <button type=\"button\" role=\"tab\" class=\"f7c-tab\" data-mode=\"round\" aria-selected=\"true\">Circular duct<\/button>\r\n    <button type=\"button\" role=\"tab\" class=\"f7c-tab\" data-mode=\"rect\" aria-selected=\"false\" tabindex=\"-1\">Rectangular duct<\/button>\r\n    <button type=\"button\" role=\"tab\" class=\"f7c-tab\" data-mode=\"check\" aria-selected=\"false\" tabindex=\"-1\">Check duct \u00d8<\/button>\r\n    <button type=\"button\" role=\"tab\" class=\"f7c-tab\" data-mode=\"subst\" aria-selected=\"false\" tabindex=\"-1\">Replacement<\/button>\r\n  <\/div>\r\n\r\n  <div class=\"f7c-duct__layout\">\r\n    <form class=\"f7c-duct__inputs\" novalidate>\r\n      <div class=\"f7c-field2\">\r\n        <label class=\"f7c-lbl\" for=\"f7c-dc-flow\">Air flow<\/label>\r\n        <div class=\"f7c-combo\">\r\n          <input id=\"f7c-dc-flow\" class=\"f7c-input f7c-input--big\" data-field=\"flow\" type=\"text\" inputmode=\"decimal\" enterkeyhint=\"next\" autocomplete=\"off\" spellcheck=\"false\" placeholder=\"e.g. 1200\" aria-describedby=\"f7c-dc-flow-err\">\r\n          <select class=\"f7c-select f7c-combo__unit\" data-field=\"flowUnit\" aria-label=\"Air volume unit\"><option value=\"m3h\" title=\"cubic metres per hour\" selected>m\u00b3\/h<\/option><option value=\"ls\" title=\"litres per second\">L\/s<\/option><option value=\"m3s\" title=\"cubic metres per second\">m\u00b3\/s<\/option><option value=\"lmin\" title=\"litres per minute\">L\/min<\/option><option value=\"cfm\" title=\"cubic feet per minute\">CFM<\/option><option value=\"m3min\" title=\"cubic metres per minute\">m\u00b3\/min<\/option><\/select>\r\n        <\/div>\r\n        <p class=\"f7c-err\" id=\"f7c-dc-flow-err\" data-err=\"flow\" aria-live=\"polite\"><\/p>\r\n      <\/div>\r\n\r\n      <!-- Kiirtulemus kohe \u00f5huhulga all: j\u00e4\u00e4b mobiiliklaviatuuri kasutamise ajal aktiivse v\u00e4lja kohale n\u00e4htavaks -->\r\n      <button type=\"button\" class=\"f7c-quick\" data-quick data-action=\"to-results\" hidden aria-label=\"Quick result. Open the full result.\"><\/button>\r\n\r\n      <div data-show=\"rect\">\r\n        <p class=\"f7c-lbl\">Duct dimensions<\/p>\r\n        <div class=\"f7c-pair\">\r\n          <div class=\"f7c-field2\">\r\n            <label class=\"f7c-lbl f7c-lbl--sm\" for=\"f7c-dc-rwi\">Width<\/label>\r\n            <span class=\"f7c-suffix\"><input id=\"f7c-dc-rwi\" class=\"f7c-input\" data-field=\"rectWidth\" data-ph=\"nt 600\" type=\"text\" inputmode=\"decimal\" enterkeyhint=\"next\" autocomplete=\"off\" placeholder=\"e.g. 600\"><span>mm<\/span><\/span>\r\n            <p class=\"f7c-err\" data-err=\"rectWidth\" aria-live=\"polite\"><\/p>\r\n          <\/div>\r\n          <div class=\"f7c-field2\">\r\n            <label class=\"f7c-lbl f7c-lbl--sm\" for=\"f7c-dc-rhe\">Height<\/label>\r\n            <span class=\"f7c-suffix\"><input id=\"f7c-dc-rhe\" class=\"f7c-input\" data-field=\"rectHeight\" data-ph=\"nt 300\" type=\"text\" inputmode=\"decimal\" enterkeyhint=\"next\" autocomplete=\"off\" placeholder=\"e.g. 300\"><span>mm<\/span><\/span>\r\n            <p class=\"f7c-err\" data-err=\"rectHeight\" aria-live=\"polite\"><\/p>\r\n          <\/div>\r\n        <\/div>\r\n        <p class=\"f7c-note f7c-note--small\">Enter one side \u2013 the calculator finds the other. Enter both to check a specific size.<\/p>\r\n      <\/div>\r\n\r\n      <div data-show=\"check\">\r\n        <fieldset class=\"f7c-fs\">\r\n          <legend class=\"f7c-lbl\">Duct shape<\/legend>\r\n          <div class=\"f7c-seg2\">\r\n            <label><input type=\"radio\" name=\"f7c-dc-cs\" data-field=\"checkShape\" value=\"round\" checked><span>Circular<\/span><\/label>\r\n            <label><input type=\"radio\" name=\"f7c-dc-cs\" data-field=\"checkShape\" value=\"rect\"><span>Rectangular<\/span><\/label>\r\n          <\/div>\r\n        <\/fieldset>\r\n        <div class=\"f7c-pair\" data-show-shape=\"round\">\r\n          <div class=\"f7c-field2\">\r\n            <label class=\"f7c-lbl\" for=\"f7c-dc-cds\">F7 standard size<\/label>\r\n            <select id=\"f7c-dc-cds\" class=\"f7c-select\" data-size-pick=\"checkDiameter\"><option value=\"\">Choose \u00d8<\/option><option value=\"80\">\u00d8 80<\/option><option value=\"100\">\u00d8 100<\/option><option value=\"125\">\u00d8 125<\/option><option value=\"160\">\u00d8 160<\/option><option value=\"200\">\u00d8 200<\/option><option value=\"250\">\u00d8 250<\/option><option value=\"315\">\u00d8 315<\/option><option value=\"400\">\u00d8 400<\/option><option value=\"500\">\u00d8 500<\/option><option value=\"630\">\u00d8 630<\/option><option value=\"800\">\u00d8 800<\/option><option value=\"1000\">\u00d8 1000<\/option><option value=\"1250\">\u00d8 1250<\/option><option value=\"1600\">\u00d8 1600<\/option><option value=\"other\">Other size<\/option><\/select>\r\n          <\/div>\r\n          <div class=\"f7c-field2\">\r\n            <label class=\"f7c-lbl\" for=\"f7c-dc-cd\">or diameter<\/label>\r\n            <span class=\"f7c-suffix\"><input id=\"f7c-dc-cd\" class=\"f7c-input\" data-field=\"checkDiameter\" data-ph=\"nt 315\" type=\"text\" inputmode=\"decimal\" enterkeyhint=\"next\" autocomplete=\"off\" placeholder=\"e.g. 315\"><span>mm<\/span><\/span>\r\n          <\/div>\r\n          <p class=\"f7c-err f7c-pair__full\" data-err=\"checkDiameter\" aria-live=\"polite\"><\/p>\r\n        <\/div>\r\n        <div class=\"f7c-pair\" data-show-shape=\"rect\" hidden>\r\n          <div class=\"f7c-field2\">\r\n            <label class=\"f7c-lbl\" for=\"f7c-dc-cw\">Width<\/label>\r\n            <span class=\"f7c-suffix\"><input id=\"f7c-dc-cw\" class=\"f7c-input\" data-field=\"checkWidth\" data-ph=\"nt 600\" type=\"text\" inputmode=\"decimal\" enterkeyhint=\"next\" autocomplete=\"off\" placeholder=\"e.g. 600\"><span>mm<\/span><\/span>\r\n            <p class=\"f7c-err\" data-err=\"checkWidth\" aria-live=\"polite\"><\/p>\r\n          <\/div>\r\n          <div class=\"f7c-field2\">\r\n            <label class=\"f7c-lbl\" for=\"f7c-dc-ch\">Height<\/label>\r\n            <span class=\"f7c-suffix\"><input id=\"f7c-dc-ch\" class=\"f7c-input\" data-field=\"checkHeight\" data-ph=\"nt 300\" type=\"text\" inputmode=\"decimal\" enterkeyhint=\"next\" autocomplete=\"off\" placeholder=\"e.g. 300\"><span>mm<\/span><\/span>\r\n            <p class=\"f7c-err\" data-err=\"checkHeight\" aria-live=\"polite\"><\/p>\r\n          <\/div>\r\n        <\/div>\r\n        <div class=\"f7c-field2\">\r\n          <label class=\"f7c-lbl\" for=\"f7c-dc-cl\">Duct length (optional)<\/label>\r\n          <span class=\"f7c-suffix\"><input id=\"f7c-dc-cl\" class=\"f7c-input\" data-field=\"checkLength\" type=\"text\" inputmode=\"decimal\" enterkeyhint=\"next\" autocomplete=\"off\"><span>m<\/span><\/span>\r\n          <p class=\"f7c-err\" data-err=\"checkLength\" aria-live=\"polite\"><\/p>\r\n        <\/div>\r\n      <\/div>\r\n\r\n      <fieldset class=\"f7c-fs\" data-show=\"round rect check\">\r\n        <legend class=\"f7c-lbl\">Limit values <span class=\"f7c-opt\" data-show=\"check\" hidden>(optional)<\/span><\/legend>\r\n        <div class=\"f7c-pair\">\r\n          <div class=\"f7c-field2\">\r\n            <label class=\"f7c-lbl f7c-lbl--sm\" for=\"f7c-dc-v\">Air velocity up to<\/label>\r\n            <span class=\"f7c-suffix\"><input id=\"f7c-dc-v\" class=\"f7c-input\" data-field=\"maxVelocity\" type=\"text\" inputmode=\"decimal\" enterkeyhint=\"next\" autocomplete=\"off\" placeholder=\"e.g. 5\"><span>m\/s<\/span><\/span>\r\n            <p class=\"f7c-err\" data-err=\"maxVelocity\" aria-live=\"polite\"><\/p>\r\n          <\/div>\r\n          <div class=\"f7c-field2\">\r\n            <label class=\"f7c-lbl f7c-lbl--sm\" for=\"f7c-dc-dp\">Pressure drop up to<\/label>\r\n            <span class=\"f7c-suffix\"><input id=\"f7c-dc-dp\" class=\"f7c-input\" data-field=\"maxPressureGradient\" type=\"text\" inputmode=\"decimal\" enterkeyhint=\"done\" autocomplete=\"off\" placeholder=\"e.g. 1.0\"><span>Pa\/m<\/span><\/span>\r\n            <p class=\"f7c-err\" data-err=\"maxPressureGradient\" aria-live=\"polite\"><\/p>\r\n          <\/div>\r\n        <\/div>\r\n        <p class=\"f7c-note f7c-note--small\">A higher air velocity means a smaller duct, but more noise and pressure drop. 5 m\/s is a common starting point for main ducts. Near living spaces, choose a lower velocity. The exact value is given by the design.<\/p>\r\n        <button type=\"button\" class=\"f7c-linkbtn\" data-action=\"example\">Restore defaults: 5 m\/s and 1.0 Pa\/m<\/button>\r\n      <\/fieldset>\r\n\r\n\r\n      <div data-show=\"subst\" hidden>\r\n        <fieldset class=\"f7c-fs\">\r\n          <legend class=\"f7c-lbl\">The design specifies<\/legend>\r\n          <div class=\"f7c-seg2\">\r\n            <label><input type=\"radio\" name=\"f7c-dc-ss\" data-field=\"substShape\" value=\"round\" checked><span>Circular duct<small class=\"f7c-seg2__val\" data-sslabel=\"round\"><\/small><\/span><\/label>\r\n            <label><input type=\"radio\" name=\"f7c-dc-ss\" data-field=\"substShape\" value=\"rect\"><span>Rectangular duct<small class=\"f7c-seg2__val\" data-sslabel=\"rect\"><\/small><\/span><\/label>\r\n          <\/div>\r\n        <\/fieldset>\r\n        <div class=\"f7c-pair\" data-show-sshape=\"round\">\r\n          <div class=\"f7c-field2\">\r\n            <label class=\"f7c-lbl\" for=\"f7c-dc-sds\">F7 standard size<\/label>\r\n            <select id=\"f7c-dc-sds\" class=\"f7c-select\" data-size-pick=\"substDiameter\"><option value=\"\">Choose \u00d8<\/option><option value=\"80\">\u00d8 80<\/option><option value=\"100\">\u00d8 100<\/option><option value=\"125\">\u00d8 125<\/option><option value=\"160\">\u00d8 160<\/option><option value=\"200\">\u00d8 200<\/option><option value=\"250\">\u00d8 250<\/option><option value=\"315\">\u00d8 315<\/option><option value=\"400\">\u00d8 400<\/option><option value=\"500\">\u00d8 500<\/option><option value=\"630\">\u00d8 630<\/option><option value=\"800\">\u00d8 800<\/option><option value=\"1000\">\u00d8 1000<\/option><option value=\"1250\">\u00d8 1250<\/option><option value=\"1600\">\u00d8 1600<\/option><option value=\"other\">Other size<\/option><\/select>\r\n          <\/div>\r\n          <div class=\"f7c-field2\">\r\n            <label class=\"f7c-lbl\" for=\"f7c-dc-sd\">or diameter<\/label>\r\n            <span class=\"f7c-suffix\"><input id=\"f7c-dc-sd\" class=\"f7c-input\" data-field=\"substDiameter\" type=\"text\" inputmode=\"decimal\" enterkeyhint=\"next\" autocomplete=\"off\" placeholder=\"e.g. 315\"><span>mm<\/span><\/span>\r\n          <\/div>\r\n          <p class=\"f7c-err f7c-pair__full\" data-err=\"substDiameter\" aria-live=\"polite\"><\/p>\r\n        <\/div>\r\n        <div class=\"f7c-field2\" data-show-sshape=\"round\">\r\n          <label class=\"f7c-lbl f7c-lbl--sm\" for=\"f7c-dc-sm\">Maximum height (e.g. under the ceiling, optional)<\/label>\r\n          <span class=\"f7c-suffix\"><input id=\"f7c-dc-sm\" class=\"f7c-input\" data-field=\"substMaxHeight\" type=\"text\" inputmode=\"decimal\" enterkeyhint=\"done\" autocomplete=\"off\" placeholder=\"e.g. 250\"><span>mm<\/span><\/span>\r\n          <p class=\"f7c-err\" data-err=\"substMaxHeight\" aria-live=\"polite\"><\/p>\r\n        <\/div>\r\n        <div class=\"f7c-pair\" data-show-sshape=\"rect\" hidden>\r\n          <div class=\"f7c-field2\">\r\n            <label class=\"f7c-lbl\" for=\"f7c-dc-sw\">Width<\/label>\r\n            <span class=\"f7c-suffix\"><input id=\"f7c-dc-sw\" class=\"f7c-input\" data-field=\"substWidth\" type=\"text\" inputmode=\"decimal\" enterkeyhint=\"next\" autocomplete=\"off\" placeholder=\"e.g. 600\"><span>mm<\/span><\/span>\r\n            <p class=\"f7c-err\" data-err=\"substWidth\" aria-live=\"polite\"><\/p>\r\n          <\/div>\r\n          <div class=\"f7c-field2\">\r\n            <label class=\"f7c-lbl\" for=\"f7c-dc-sh\">Height<\/label>\r\n            <span class=\"f7c-suffix\"><input id=\"f7c-dc-sh\" class=\"f7c-input\" data-field=\"substHeight\" type=\"text\" inputmode=\"decimal\" enterkeyhint=\"done\" autocomplete=\"off\" placeholder=\"e.g. 300\"><span>mm<\/span><\/span>\r\n            <p class=\"f7c-err\" data-err=\"substHeight\" aria-live=\"polite\"><\/p>\r\n          <\/div>\r\n        <\/div>\r\n        <p class=\"f7c-note f7c-note--small\">The air volume is optional: the replacement depends only on the dimensions. Enter the air volume to also see the air velocity and pressure drop.<\/p>\r\n      <\/div>\r\n\r\n      <details class=\"f7c-adv\">\r\n        <summary>Advanced settings<\/summary>\r\n        <div class=\"f7c-adv__body\">\r\n          <p class=\"f7c-lbl f7c-lbl--sm\">Material: <b>galvanised sheet steel<\/b><\/p>\r\n          <fieldset class=\"f7c-fs\">\r\n            <legend class=\"f7c-lbl f7c-lbl--sm\">Absolute roughness \u03b5<\/legend>\r\n            <div class=\"f7c-radios\">\r\n              <label class=\"f7c-radio\"><input type=\"radio\" name=\"f7c-dc-er\" data-field=\"roughnessMode\" value=\"default\" checked><span><b>0,09 mm<\/b> \u2013 default calculation assumption for a galvanised steel duct<\/span><\/label>\r\n              <label class=\"f7c-radio\"><input type=\"radio\" name=\"f7c-dc-er\" data-field=\"roughnessMode\" value=\"conservative\"><span><b>0,15 mm<\/b> \u2013 more conservative assumption<\/span><\/label>\r\n              <label class=\"f7c-radio\"><input type=\"radio\" name=\"f7c-dc-er\" data-field=\"roughnessMode\" value=\"custom\"><span>Own value<\/span><\/label>\r\n            <\/div>\r\n            <div class=\"f7c-field2\" data-show-rough=\"custom\" hidden>\r\n              <label class=\"f7c-lbl f7c-lbl--sm\" for=\"f7c-dc-e\">Absolute roughness \u03b5<\/label>\r\n              <span class=\"f7c-suffix\"><input id=\"f7c-dc-e\" class=\"f7c-input\" data-field=\"roughness\" type=\"text\" inputmode=\"decimal\" enterkeyhint=\"done\" autocomplete=\"off\" placeholder=\"e.g. 0.05\"><span>mm<\/span><\/span>\r\n              <p class=\"f7c-err\" data-err=\"roughness\" aria-live=\"polite\"><\/p>\r\n            <\/div>\r\n            <p class=\"f7c-note f7c-note--small\">Neither value has been confirmed by measurements of F7 spiral ducts. 0.15 mm gives about 2\u20136% higher pressure drop at normal velocities.<\/p>\r\n          <\/fieldset>\r\n          <div data-show=\"rect\" hidden>\r\n            <div class=\"f7c-pair\">\r\n              <div class=\"f7c-field2\">\r\n                <label class=\"f7c-lbl f7c-lbl--sm\" for=\"f7c-dc-rw\">Maximum width<\/label>\r\n                <span class=\"f7c-suffix\"><input id=\"f7c-dc-rw\" class=\"f7c-input\" data-field=\"rectMaxWidth\" type=\"text\" inputmode=\"decimal\" enterkeyhint=\"next\" autocomplete=\"off\"><span>mm<\/span><\/span>\r\n                <p class=\"f7c-err\" data-err=\"rectMaxWidth\" aria-live=\"polite\"><\/p>\r\n              <\/div>\r\n              <div class=\"f7c-field2\">\r\n                <label class=\"f7c-lbl f7c-lbl--sm\" for=\"f7c-dc-rh\">Maximum height<\/label>\r\n                <span class=\"f7c-suffix\"><input id=\"f7c-dc-rh\" class=\"f7c-input\" data-field=\"rectMaxHeight\" type=\"text\" inputmode=\"decimal\" enterkeyhint=\"done\" autocomplete=\"off\"><span>mm<\/span><\/span>\r\n                <p class=\"f7c-err\" data-err=\"rectMaxHeight\" aria-live=\"polite\"><\/p>\r\n              <\/div>\r\n            <\/div>\r\n            <p class=\"f7c-note f7c-note--small\">Space limit on site (optional). This is not an F7 production limit.<\/p>\r\n            <label class=\"f7c-check\"><input type=\"checkbox\" data-field=\"rectFree\"><span>Free size \u2013 do not round to 50 mm<\/span><\/label>\r\n          <\/div>\r\n          <p class=\"f7c-note f7c-note--small\">The calculation assumes dry air at 20 \u00b0C and a pressure of 101.3 kPa.<\/p>\r\n        <\/div>\r\n      <\/details>\r\n    <\/form>\r\n\r\n    <section class=\"f7c-duct__results\" data-results aria-live=\"polite\" aria-label=\"Calculation result\">\r\n      <div class=\"f7c-hint\"><p>Enter the air volume.<\/p><\/div>\r\n    <\/section>\r\n  <\/div>\r\n<\/div>\r\n\n<div class=\"f7p__text\">\n<h2>How to use the calculator<\/h2>\n<ol>\n<li><strong>Circular duct.<\/strong> Enter the air volume. The calculator suggests the smallest F7 standard diameter that stays within the air velocity and pressure drop limits, and for comparison also shows one smaller size.<\/li>\n<li><strong>Rectangular duct.<\/strong> Enter the air volume and the duct width and height. If you do not have a size yet, the calculator suggests suitable round sizes (e.g. 300 \u00d7 600).<\/li>\n<li><strong>Check duct \u00d8.<\/strong> Choose the diameter of an existing or designed duct and see its air velocity and pressure drop at the given air volume.<\/li>\n<li><strong>Replacement.<\/strong> If the design has a circular duct but a rectangular one suits the site better (or vice versa), the calculator shows the equivalent size. The air volume is optional here.<\/li>\n<\/ol>\n<p>You can change the limit values (5 m\/s and 1 Pa\/m by default). With the \"Copy result\" button you can send the result to a colleague or add it to your enquiry. The \"Copy link\" button gives a link that opens the calculator with the same values.<\/p>\n\n<h2>Calculation method<\/h2>\n<ul>\n<li>The friction pressure drop is calculated with the Darcy\u2013Weisbach equation. The friction factor is found from the Colebrook\u2013White equation (64\/Re in the laminar range).<\/li>\n<li>Air properties: 20 \u00b0C and normal pressure 101 325 Pa.<\/li>\n<li>The absolute roughness of the duct is \u03b5 = 0.09 mm by default (galvanised steel duct). Under \"Advanced settings\" you can choose the more conservative assumption of 0.15 mm or enter your own value. Neither value has been measured for F7 spiral duct.<\/li>\n<li>The pressure drop of a rectangular duct is calculated via the hydraulic diameter Dh = 2ab \/ (a + b). For replacement, the equivalent diameter De = 1.30 \u00b7 (ab)<sup>0,625<\/sup> \/ (a + b)<sup>0,25<\/sup> (Huebscher \/ ASHRAE).<\/li>\n<li>The calculation covers only straight duct. Bends, branches, grilles, silencers and other fittings are not included in the result. The designer adds them to the total pressure drop of the system.<\/li>\n<\/ul>\n<p class=\"f7p__note\">The result helps you choose a size. The final size is determined by the ventilation design.<\/p>\n\n<h2>Frequently asked questions<\/h2>\n<div class=\"f7p__faq\">\n<details><summary>Why is the default air velocity 5 m\/s?<\/summary><div><p>A higher air velocity means a smaller duct, but more noise and pressure drop. 5 m\/s is a common starting point for main ducts. Near living spaces, choose a lower velocity. The exact value is given by the design.<\/p><\/div><\/details>\n<details><summary>What is the difference between hydraulic diameter and equivalent diameter?<\/summary><div><p>The hydraulic diameter Dh is an auxiliary quantity used to find the pressure drop of a rectangular duct. The equivalent diameter De shows which circular duct gives the same pressure drop at the same air volume. That is why De is used when replacing circular and rectangular ducts.<\/p><\/div><\/details>\n<details><summary>Is the recommended size in stock?<\/summary><div><p>The calculator suggests F7 spiral duct standard diameters \u00d880\u20131600 mm. F7 will confirm availability and delivery time.<\/p><\/div><\/details>\n<details><summary>Why does the calculator not suggest a rectangular duct side of 100 mm?<\/summary><div><p>A narrow duct increases the pressure drop and is impractical on site. Suggestions are in 100 mm steps, with the shortest side at least 200 mm and an aspect ratio of up to 2 : 1. You can always enter your own size.<\/p><\/div><\/details>\n<details><summary>Does the calculation take bends and branches into account?<\/summary><div><p>No. The calculator calculates the friction pressure drop per metre of straight duct. The designer accounts for the pressure drops of fittings separately.<\/p><\/div><\/details>\n<\/div>\n\n<h2>Related pages<\/h2>\n<ul class=\"f7p__links\">\n<li><a href=\"https:\/\/f7vent.ee\/en\/circular-ductwork\/spiral-duct\/\">Spiral duct (circular duct)<\/a><\/li>\n<li><a href=\"https:\/\/f7vent.ee\/en\/fs-rect-rectangular-ductwork\/\">FS Rect rectangular ventilation ductwork<\/a><\/li>\n<li><a href=\"https:\/\/f7vent.ee\/en\/calculators\/air-flow-converter\/\">Air flow converter (m\u00b3\/h \u2194 L\/s)<\/a><\/li>\n<li><a href=\"https:\/\/f7vent.ee\/en\/calculators\/\">All calculators<\/a><\/li>\n<\/ul>\n<\/div>\n<\/div>\n\n<script>\n(function () {\n'use strict';\nconst __m = Object.create(null);\n\/\/ --- shared\/units\/flow-units.js\n__m[\"shared\/units\/flow-units.js\"] = (function () {\n\/\/ \u00d5huhulga \u00fchikud. Iga \u00fchiku suurus m\u00b3\/s-des on t\u00e4isarvude suhe num\/den,\n\/\/ et teisendus oleks t\u00e4pne ja korduv teisendamine ei koguks \u00fcmardusviga.\n\/\/ CFM: 1 ft = 0,3048 m (rahvusvaheline jalg, 1959) \u2192 1 ft\u00b3 = 0,028316846592 m\u00b3 t\u00e4pselt.\nconst FLOW_UNITS = Object.freeze({\n  m3h: Object.freeze({ symbol: 'm\u00b3\/h', num: 1, den: 3600 }),\n  ls: Object.freeze({ symbol: 'L\/s', num: 1, den: 1000 }),\n  m3s: Object.freeze({ symbol: 'm\u00b3\/s', num: 1, den: 1 }),\n  lmin: Object.freeze({ symbol: 'L\/min', num: 1, den: 60000 }),\n  cfm: Object.freeze({ symbol: 'CFM', num: 28316846592, den: 60e12 }),\n  m3min: Object.freeze({ symbol: 'm\u00b3\/min', num: 1, den: 60 }),\n});\n\n\/\/ J\u00e4rjekord rippmen\u00fc\u00fcs. Vaikimisi paar on m\u00b3\/h \u2194 L\/s.\nconst FLOW_UNIT_IDS = Object.freeze(['m3h', 'ls', 'm3s', 'lmin', 'cfm', 'm3min']);\nconst DEFAULT_FLOW_UNITS = Object.freeze({ left: 'm3h', right: 'ls' });\n\nfunction isFlowUnit(id) {\n  return Object.prototype.hasOwnProperty.call(FLOW_UNITS, id);\n}\n\nfunction unitOrThrow(id) {\n  if (!isFlowUnit(id)) throw new RangeError('Unknown flow unit: ' + id);\n  return FLOW_UNITS[id];\n}\n\n\/\/ Teisendab v\u00e4\u00e4rtuse \u00fchikust `from` \u00fchikusse `to`.\n\/\/ Arvutus: value \u00b7 (a.num \u00b7 b.den) \/ (a.den \u00b7 b.num). K\u00f5ik korrutised on t\u00e4isarvud < 2^53,\n\/\/ seega on tegurid t\u00e4psed ja tulemuses on ainult kaks \u00fcmardust.\nfunction convertFlow(value, from, to) {\n  const a = unitOrThrow(from);\n  const b = unitOrThrow(to);\n  if (from === to) return value;\n  return (value * (a.num * b.den)) \/ (a.den * b.num);\n}\nreturn { FLOW_UNITS, FLOW_UNIT_IDS, DEFAULT_FLOW_UNITS, isFlowUnit, convertFlow };\n})();\n\n\/\/ --- shared\/units\/parse.js\n__m[\"shared\/units\/parse.js\"] = (function () {\n\/\/ Kasutaja sisestatud arvu parsimine.\n\/\/ - K\u00fcmnenderaldaja: koma v\u00f5i punkt. \u00dcks eraldaja on alati k\u00fcmnenderaldaja (\"1.234\" = 1,234).\n\/\/ - Tuhandelised: ainult t\u00fchik (ka kitsas ja siset\u00fchik), mis eemaldatakse.\n\/\/ - T\u00fchi sisend ei ole null: tagastab { status: 'empty' }.\n\/\/ - Negatiivne arv on viga, kui allowNegative ei ole true. \"-0\" loetakse nulliks.\n\/\/ Tulemus: { status: 'ok', value } | { status: 'empty' } | { status: 'error', code }\n\nconst WHITESPACE = \/[\\s\u00a0\u2007\u2009\u202f]\/g;\nconst NUMBER_RE = \/^(\\d+\\.?\\d*|\\.\\d+)$\/;\nconst MAX_INPUT = 1e15;\n\nfunction parseNumberInput(raw, { allowNegative = false } = {}) {\n  if (raw === null || raw === undefined) return { status: 'empty' };\n  let s = String(raw).replace(WHITESPACE, '');\n  if (s === '') return { status: 'empty' };\n\n  let negative = false;\n  if (s[0] === '-' || s[0] === '\u2212') {\n    negative = true;\n    s = s.slice(1);\n  } else if (s[0] === '+') {\n    s = s.slice(1);\n  }\n\n  if (s.includes(',') && s.includes('.')) return { status: 'error', code: 'MIXED_SEPARATORS' };\n  s = s.replace(',', '.');\n  if (!NUMBER_RE.test(s)) return { status: 'error', code: 'INVALID' };\n\n  const value = Number(s);\n  if (!Number.isFinite(value) || value > MAX_INPUT) return { status: 'error', code: 'TOO_LARGE' };\n  if (value === 0) return { status: 'ok', value: 0 };\n  if (negative && !allowNegative) return { status: 'error', code: 'NEGATIVE' };\n  return { status: 'ok', value: negative ? -value : value };\n}\nreturn { MAX_INPUT, parseNumberInput };\n})();\n\n\/\/ --- shared\/units\/format.js\n__m[\"shared\/units\/format.js\"] = (function () {\n\/\/ Arvu kuvamine.\n\/\/ - Kuni `decimals` komakohta, l\u00f5punullid j\u00e4etakse \u00e4ra (100, mitte 100,00).\n\/\/ - Mittenulline v\u00e4\u00e4rtus, mis \u00fcmarduks nulliks, kuvatakse 3 t\u00fcvenumbriga (nt 0,000278).\n\/\/ - Lokaadi j\u00e4rgi k\u00fcmnenderaldaja ja tuhandeliste r\u00fchmitus. Teaduskuju ei kasutata.\n\nconst MAX_FRACTION_DIGITS = 20;\nconst formatterCache = new Map();\n\nfunction formatter(locale, digits) {\n  const key = locale + '|' + digits;\n  let f = formatterCache.get(key);\n  if (!f) {\n    f = new Intl.NumberFormat(locale, {\n      minimumFractionDigits: 0,\n      maximumFractionDigits: digits,\n      useGrouping: true,\n    });\n    formatterCache.set(key, f);\n  }\n  return f;\n}\n\n\/\/ Mitu komakohta tegelikult kuvatakse (v\u00e4ikese v\u00e4\u00e4rtuse kaitse).\nfunction displayDecimals(value, decimals) {\n  const abs = Math.abs(value);\n  if (abs === 0 || !Number.isFinite(abs)) return decimals;\n  if (Number(abs.toFixed(decimals)) !== 0) return decimals;\n  return Math.min(MAX_FRACTION_DIGITS, Math.ceil(-Math.log10(abs)) + 2);\n}\n\nfunction formatNumber(value, { decimals = 2, locale = 'et-EE' } = {}) {\n  if (typeof value !== 'number' || !Number.isFinite(value)) return '';\n  if (value === 0) return '0';\n  return formatter(locale, displayDecimals(value, decimals)).format(value);\n}\nreturn { displayDecimals, formatNumber };\n})();\n\n\/\/ --- duct-calculator\/engine\/air.js\n__m[\"duct-calculator\/engine\/air.js\"] = (function () {\n\/\/ Kuiva \u00f5hu omadused.\n\/\/  - Tihedus: ideaalgaasi v\u00f5rrand \u03c1 = p \/ (R\u00b7T), R = 287,05 J\/(kg\u00b7K).\n\/\/  - D\u00fcnaamiline viskoossus: Sutherlandi valem \u03bc = \u03bc0\u00b7(T\/T0)^1,5\u00b7(T0 + S)\/(T + S),\n\/\/    \u03bc0 = 1,716\u00b710\u207b\u2075 Pa\u00b7s, T0 = 273,15 K, S = 110,4 K (White, Viscous Fluid Flow).\n\/\/  - Kinemaatiline viskoossus \u03bd = \u03bc\/\u03c1.\n\/\/ Vaikimisi 20 \u00b0C ja 101 325 Pa \u2192 \u03c1 \u2248 1,204 kg\/m\u00b3, \u03bc \u2248 1,813\u00b710\u207b\u2075 Pa\u00b7s, \u03bd \u2248 1,506\u00b710\u207b\u2075 m\u00b2\/s.\n\/\/ Niiskust ei arvestata (m\u00f5ju tihedusele tavatingimustes < 1 %).\n\nconst AIR_GAS_CONSTANT = 287.05;\nconst SUTHERLAND_AIR = Object.freeze({ mu0: 1.716e-5, T0: 273.15, S: 110.4 });\nconst AIR_DEFAULTS = Object.freeze({ temperatureC: 20, pressurePa: 101325 });\nconst AIR_LIMITS = Object.freeze({ minC: -40, maxC: 100, minPa: 70000, maxPa: 110000 });\n\nfunction airIsInRange({ temperatureC, pressurePa }) {\n  return Number.isFinite(temperatureC) && Number.isFinite(pressurePa) &&\n    temperatureC >= AIR_LIMITS.minC && temperatureC <= AIR_LIMITS.maxC &&\n    pressurePa >= AIR_LIMITS.minPa && pressurePa <= AIR_LIMITS.maxPa;\n}\n\nfunction airProperties({ temperatureC = AIR_DEFAULTS.temperatureC, pressurePa = AIR_DEFAULTS.pressurePa } = {}) {\n  if (!airIsInRange({ temperatureC, pressurePa })) {\n    throw new RangeError(`Air state out of range: ${temperatureC} \u00b0C, ${pressurePa} Pa`);\n  }\n  const T = temperatureC + 273.15;\n  const { mu0, T0, S } = SUTHERLAND_AIR;\n  const density = pressurePa \/ (AIR_GAS_CONSTANT * T);\n  const dynamicViscosity = mu0 * Math.pow(T \/ T0, 1.5) * ((T0 + S) \/ (T + S));\n  return {\n    temperatureC,\n    pressurePa,\n    density,\n    dynamicViscosity,\n    kinematicViscosity: dynamicViscosity \/ density,\n  };\n}\nreturn { AIR_GAS_CONSTANT, SUTHERLAND_AIR, AIR_DEFAULTS, AIR_LIMITS, airIsInRange, airProperties };\n})();\n\n\/\/ --- duct-calculator\/engine\/friction.js\n__m[\"duct-calculator\/engine\/friction.js\"] = (function () {\n\/\/ Reynoldsi arv, h\u00f5\u00f5rdetegur ja Darcy\u2013Weisbachi h\u00f5\u00f5rder\u00f5hukadu.\n\/\/\n\/\/ Darcy\u2013Weisbach:  \u0394p\/L = \u03bb \/ D \u00b7 \u03c1\u00b7v\u00b2\/2        [Pa\/m]\n\/\/ Reynolds:        Re = v\u00b7D \/ \u03bd\n\/\/ Colebrook\u2013White: 1\/\u221a\u03bb = \u22122\u00b7log10( (\u03b5\/D)\/3,7 + 2,51\/(Re\u00b7\u221a\u03bb) )   (turbulentne, Re \u2265 4000)\n\/\/ Laminaarne:      \u03bb = C\/Re, \u00fcmartoru C = 64; kandilise kanali C = Shah & London (1978)\n\/\/ \u00dcleminek:        2300 \u2264 Re < 4000 \u2192 \u03bb = max(Colebrook, laminaarne), m\u00e4rgitakse hoiatusega\n\/\/\n\/\/ \u03bb on Darcy h\u00f5\u00f5rdetegur (= 4 \u00d7 Fanningi tegur).\n\nconst RE_LAMINAR_MAX = 2300;\nconst RE_TURBULENT_MIN = 4000;\nconst LN10 = Math.LN10;\n\nfunction reynoldsNumber(velocity, diameter, kinematicViscosity) {\n  return (velocity * diameter) \/ kinematicViscosity;\n}\n\nfunction dynamicPressure(density, velocity) {\n  return (density * velocity * velocity) \/ 2;\n}\n\n\/\/ Darcy\u2013Weisbach: h\u00f5\u00f5rder\u00f5hukadu meetri kohta [Pa\/m].\nfunction darcyPressureGradient(frictionFactor, diameter, density, velocity) {\n  return (frictionFactor \/ diameter) * dynamicPressure(density, velocity);\n}\n\n\/\/ Shah & London (1978), t\u00e4ielikult arenenud laminaarne vool ristk\u00fclikkanalis:\n\/\/ \u03bb\u00b7Re = 96\u00b7(1 \u2212 1,3553\u03b1 + 1,9467\u03b1\u00b2 \u2212 1,7012\u03b1\u00b3 + 0,9564\u03b1\u2074 \u2212 0,2537\u03b1\u2075), \u03b1 = l\u00fchem\/pikem k\u00fclg.\n\/\/ \u03b1 = 1 (ruut) \u2192 56,91; \u03b1 \u2192 0 (lame pilu) \u2192 96.\nfunction shahLondonFRe(alpha) {\n  if (!(alpha > 0 && alpha <= 1)) throw new RangeError('alpha must be in (0, 1]');\n  const a = alpha;\n  return 96 * (1 - 1.3553 * a + 1.9467 * a ** 2 - 1.7012 * a ** 3 + 0.9564 * a ** 4 - 0.2537 * a ** 5);\n}\n\n\/\/ Ilmutatud l\u00e4hendid. Kasutatakse ainult Colebrooki algv\u00e4\u00e4rtuseks ja ristkontrolliks.\nfunction frictionHaaland(Re, relRoughness) {\n  const x = -1.8 * Math.log10(Math.pow(relRoughness \/ 3.7, 1.11) + 6.9 \/ Re);\n  return 1 \/ (x * x);\n}\n\nfunction frictionSwameeJain(Re, relRoughness) {\n  const l = Math.log10(relRoughness \/ 3.7 + 5.74 \/ Math.pow(Re, 0.9));\n  return 0.25 \/ (l * l);\n}\n\n\/\/ Colebrook\u2013White, lahendatakse Newtoni meetodiga muutujas x = 1\/\u221a\u03bb.\n\/\/ F(x) = x + 2\u00b7log10(a + b\u00b7x) = 0, a = (\u03b5\/D)\/3,7, b = 2,51\/Re.\nfunction frictionColebrook(Re, relRoughness, { tol = 1e-13, maxIter = 50 } = {}) {\n  if (!(Re > 0) || !Number.isFinite(Re)) throw new RangeError('Re must be positive');\n  if (!(relRoughness >= 0) || !Number.isFinite(relRoughness)) throw new RangeError('relRoughness must be \u2265 0');\n  const a = relRoughness \/ 3.7;\n  const b = 2.51 \/ Re;\n  let x = 1 \/ Math.sqrt(frictionSwameeJain(Math.max(Re, 2000), relRoughness));\n  for (let i = 0; i < maxIter; i++) {\n    const inner = a + b * x;\n    const F = x + 2 * Math.log10(inner);\n    const dF = 1 + (2 \/ LN10) * (b \/ inner);\n    const dx = F \/ dF;\n    x -= dx;\n    if (Math.abs(dx) <= tol * Math.abs(x)) return 1 \/ (x * x);\n  }\n  throw new Error('Colebrook did not converge');\n}\n\n\/\/ Colebrooki v\u00f5rrandi j\u00e4\u00e4k (testide jaoks).\nfunction colebrookResidual(lambda, Re, relRoughness) {\n  const x = 1 \/ Math.sqrt(lambda);\n  return x + 2 * Math.log10(relRoughness \/ 3.7 + 2.51 \/ (Re * Math.sqrt(lambda)));\n}\n\n\/\/ H\u00f5\u00f5rdetegur koos voolure\u017eiimiga.\n\/\/ laminarFRe: \u03bb\u00b7Re laminaarses re\u017eiimis (\u00fcmartoru 64, kandiline Shah & London).\nfunction frictionFactor(Re, relRoughness, { laminarFRe = 64 } = {}) {\n  if (!(Re > 0) || !Number.isFinite(Re)) throw new RangeError('Re must be positive');\n  const laminar = laminarFRe \/ Re;\n  if (Re < RE_LAMINAR_MAX) return { lambda: laminar, regime: 'laminar', method: 'laminar' };\n  const turbulent = frictionColebrook(Re, relRoughness);\n  if (Re < RE_TURBULENT_MIN) {\n    return { lambda: Math.max(turbulent, laminar), regime: 'transitional', method: 'colebrook-max' };\n  }\n  return { lambda: turbulent, regime: 'turbulent', method: 'colebrook' };\n}\nreturn { RE_LAMINAR_MAX, RE_TURBULENT_MIN, reynoldsNumber, dynamicPressure, darcyPressureGradient, shahLondonFRe, frictionHaaland, frictionSwameeJain, frictionColebrook, colebrookResidual, frictionFactor };\n})();\n\n\/\/ --- duct-calculator\/engine\/geometry.js\n__m[\"duct-calculator\/engine\/geometry.js\"] = (function () {\n\/\/ Kanali geomeetria. K\u00f5ik pikkused meetrites.\r\n\/\/\r\n\/\/ \u00dcmar:        A = \u03c0\u00b7D\u00b2\/4, Dh = D, De = D\r\n\/\/ Kandiline:   A = a\u00b7b\r\n\/\/              Dh = 4A\/P = 2ab\/(a + b)                      h\u00fcdrauliline l\u00e4bim\u00f5\u00f5t\r\n\/\/              De = 1,30\u00b7(ab)^0,625 \/ (a + b)^0,25          v\u00f5rdse \u00f5huhulga ja v\u00f5rdse h\u00f5\u00f5rder\u00f5hukaoga\r\n\/\/                                                           \u00fcmarkanali l\u00e4bim\u00f5\u00f5t (Huebscher 1948,\r\n\/\/                                                           ASHRAE Fundamentals Ch. 21)\r\n\/\/ Dh ja De on erinevad suurused: Dh-d kasutatakse Re ja Darcy\u2013Weisbachi arvutuses koos kanali\r\n\/\/ tegeliku kiirusega; De \u00fctleb, milline \u00fcmarkanal annab sama \u00f5huhulga juures sama Pa\/m.\r\n\r\nconst { shahLondonFRe } = __m[\"duct-calculator\/engine\/friction.js\"];\r\n\r\nconst ASPECT_RATIO_ADVISORY = 4; \/\/ tavap\u00e4rane projekteerimissoovitus, MITTE F7 tootmispiir (K-2)\r\n\/\/ Arvutusmeetodi (Dh) piisavalt kontrollitud rakendusala \u00fclempiir: omanik V-1 (2026-11-24), etapi 4 alusel.\r\n\/\/ Jones (1976) m\u00f5\u00f5tmised: k\u00fclgede suhtel 1\u201310 viga \u2248 \u00b11,5 %; 10\u201325 andmed puuduvad (docs\/VALIDATION.md).\r\n\/\/ Arvutust ei blokeerita \u2013 ainult hoiatus.\r\nconst ASPECT_RATIO_METHOD_LIMIT = 10;\r\n\r\nfunction circleArea(diameter) {\r\n  return (Math.PI * diameter * diameter) \/ 4;\r\n}\r\n\r\nfunction rectArea(width, height) {\r\n  return width * height;\r\n}\r\n\r\nfunction hydraulicDiameterRect(width, height) {\r\n  return (2 * width * height) \/ (width + height);\r\n}\r\n\r\nfunction equivalentDiameterHuebscher(width, height) {\r\n  return (1.3 * Math.pow(width * height, 0.625)) \/ Math.pow(width + height, 0.25);\r\n}\r\n\r\nfunction aspectRatio(width, height) {\r\n  return Math.max(width, height) \/ Math.min(width, height);\r\n}\r\n\r\nfunction positive(x) {\r\n  return typeof x === 'number' && Number.isFinite(x) && x > 0;\r\n}\r\n\r\n\/\/ Tagastab kanali geomeetria kirjelduse v\u00f5i null, kui m\u00f5\u00f5dud ei sobi.\r\n\/\/ shape: { shape: 'round', diameter } | { shape: 'rect', width, height }\r\nfunction ductGeometry(shape) {\r\n  if (!shape) return null;\r\n  if (shape.shape === 'round') {\r\n    if (!positive(shape.diameter)) return null;\r\n    const D = shape.diameter;\r\n    return {\r\n      shape: 'round',\r\n      diameter: D,\r\n      area: circleArea(D),\r\n      perimeter: Math.PI * D,\r\n      hydraulicDiameter: D,\r\n      equivalentDiameter: D,\r\n      aspectRatio: 1,\r\n      laminarFRe: 64,\r\n    };\r\n  }\r\n  if (shape.shape === 'rect') {\r\n    if (!positive(shape.width) || !positive(shape.height)) return null;\r\n    const { width: a, height: b } = shape;\r\n    const ar = aspectRatio(a, b);\r\n    return {\r\n      shape: 'rect',\r\n      width: a,\r\n      height: b,\r\n      area: rectArea(a, b),\r\n      perimeter: 2 * (a + b),\r\n      hydraulicDiameter: hydraulicDiameterRect(a, b),\r\n      equivalentDiameter: equivalentDiameterHuebscher(a, b),\r\n      aspectRatio: ar,\r\n      laminarFRe: shahLondonFRe(1 \/ ar),\r\n    };\r\n  }\r\n  return null;\r\n}\nreturn { ASPECT_RATIO_ADVISORY, ASPECT_RATIO_METHOD_LIMIT, circleArea, rectArea, hydraulicDiameterRect, equivalentDiameterHuebscher, aspectRatio, ductGeometry };\n})();\n\n\/\/ --- duct-calculator\/engine\/check.js\n__m[\"duct-calculator\/engine\/check.js\"] = (function () {\n\/\/ C. Olemasoleva (v\u00f5i antud m\u00f5\u00f5duga) kanali kontroll.\n\/\/\n\/\/ Sisend SI-\u00fchikutes:\n\/\/ {\n\/\/   geometry:  { shape: 'round', diameter } | { shape: 'rect', width, height }   [m]\n\/\/   flowRate:  m\u00b3\/s (> 0)\n\/\/   length:    m (valikuline, \u2265 0) \u2192 sirge kanali r\u00f5hukadu Pa\n\/\/   roughness: m (valikuline, vaikimisi 0,09 mm, \u2265 0)\n\/\/   air:       { temperatureC, pressurePa } (valikuline, vaikimisi 20 \u00b0C \/ 101 325 Pa)\n\/\/   limits:    { maxVelocity [m\/s], maxPressureGradient [Pa\/m] } (valikulised)\n\/\/ }\n\/\/ V\u00e4ljund: { ok: false, errors: [kood] } v\u00f5i { ok: true, ...tulemused, warnings: [kood] }.\n\/\/ Kasutajaliidese tekste siin ei ole, ainult koodid.\n\nconst { airProperties, airIsInRange, AIR_DEFAULTS } = __m[\"duct-calculator\/engine\/air.js\"];\nconst { reynoldsNumber, frictionFactor, darcyPressureGradient, dynamicPressure } = __m[\"duct-calculator\/engine\/friction.js\"];\nconst { ductGeometry, circleArea, ASPECT_RATIO_ADVISORY, ASPECT_RATIO_METHOD_LIMIT } = __m[\"duct-calculator\/engine\/geometry.js\"];\n\nconst DEFAULT_ROUGHNESS_M = 0.09e-3; \/\/ K-3: esialgne arvutuseeldus, tsingitud teras\nconst RELATIVE_ROUGHNESS_MAX = 0.05; \/\/ Moody diagrammi \/ Colebrooki tavap\u00e4rane kehtivusala\n\nconst isNum = (x) => typeof x === 'number' && Number.isFinite(x);\n\n\/\/ \u00dcmarkanali h\u00f5\u00f5rder\u00f5hukadu antud l\u00e4bim\u00f5\u00f5du, \u00f5huhulga ja \u00f5hu omadustega (abifunktsioon).\nfunction roundPressureGradient(diameter, flowRate, roughness, air, laminarFRe = 64) {\n  const v = flowRate \/ circleArea(diameter);\n  const Re = reynoldsNumber(v, diameter, air.kinematicViscosity);\n  const ff = frictionFactor(Re, roughness \/ diameter, { laminarFRe });\n  return { velocity: v, reynolds: Re, ...ff, pressureGradient: darcyPressureGradient(ff.lambda, diameter, air.density, v) };\n}\n\nfunction validateCheckInput(input) {\n  const errors = [];\n  const { geometry, flowRate, length, roughness, air, limits } = input || {};\n  if (!ductGeometry(geometry)) errors.push('ERR_DIMENSIONS');\n  if (!isNum(flowRate) || flowRate <= 0) errors.push('ERR_FLOW_RATE');\n  if (length !== undefined && length !== null && (!isNum(length) || length < 0)) errors.push('ERR_LENGTH');\n  if (roughness !== undefined && roughness !== null && (!isNum(roughness) || roughness < 0)) errors.push('ERR_ROUGHNESS');\n  if (air && !airIsInRange({ ...AIR_DEFAULTS, ...air })) errors.push('ERR_AIR_STATE');\n  if (limits) {\n    for (const k of ['maxVelocity', 'maxPressureGradient']) {\n      const v = limits[k];\n      if (v !== undefined && v !== null && (!isNum(v) || v <= 0)) errors.push('ERR_LIMIT_' + k);\n    }\n  }\n  return errors;\n}\n\nfunction checkDuct(input) {\n  const errors = validateCheckInput(input);\n  if (errors.length) return { ok: false, errors };\n\n  const geom = ductGeometry(input.geometry);\n  const roughness = input.roughness ?? DEFAULT_ROUGHNESS_M;\n  const air = airProperties({ ...AIR_DEFAULTS, ...(input.air || {}) });\n  const Q = input.flowRate;\n  const Dh = geom.hydraulicDiameter;\n\n  const velocity = Q \/ geom.area;\n  const reynolds = reynoldsNumber(velocity, Dh, air.kinematicViscosity);\n  const relativeRoughness = roughness \/ Dh;\n  const ff = frictionFactor(reynolds, relativeRoughness, { laminarFRe: geom.laminarFRe });\n  const pressureGradient = darcyPressureGradient(ff.lambda, Dh, air.density, velocity);\n  const length = input.length ?? null;\n\n  const warnings = [];\n  if (ff.regime === 'laminar') warnings.push('WARN_LAMINAR');\n  if (ff.regime === 'transitional') warnings.push('WARN_TRANSITIONAL');\n  if (relativeRoughness > RELATIVE_ROUGHNESS_MAX) warnings.push('WARN_RELATIVE_ROUGHNESS_HIGH');\n  if (geom.shape === 'rect' && geom.aspectRatio > ASPECT_RATIO_ADVISORY) warnings.push('WARN_ASPECT_RATIO');\n  if (geom.shape === 'rect' && geom.aspectRatio > ASPECT_RATIO_METHOD_LIMIT) warnings.push('WARN_ASPECT_METHOD_LIMIT');\n\n  const limits = input.limits || {};\n  const limitResult = {};\n  if (isNum(limits.maxVelocity)) {\n    const ok = velocity <= limits.maxVelocity;\n    limitResult.velocity = { limit: limits.maxVelocity, value: velocity, ok };\n    if (!ok) warnings.push('WARN_VELOCITY_LIMIT');\n  }\n  if (isNum(limits.maxPressureGradient)) {\n    const ok = pressureGradient <= limits.maxPressureGradient;\n    limitResult.pressureGradient = { limit: limits.maxPressureGradient, value: pressureGradient, ok };\n    if (!ok) warnings.push('WARN_PRESSURE_GRADIENT_LIMIT');\n  }\n\n  \/\/ Kandilise kanali ristkontroll: sama Pa\/m v\u00f5rdse h\u00f5\u00f5rdega \u00fcmarkanali (Huebscher De) kaudu.\n  let crossCheck = null;\n  if (geom.shape === 'rect') {\n    const viaDe = roundPressureGradient(geom.equivalentDiameter, Q, roughness, air);\n    crossCheck = {\n      method: 'huebscher-equivalent-diameter',\n      equivalentDiameter: geom.equivalentDiameter,\n      pressureGradient: viaDe.pressureGradient,\n      relativeDifference: (viaDe.pressureGradient - pressureGradient) \/ pressureGradient,\n    };\n  }\n\n  return {\n    ok: true,\n    geometry: geom,\n    flowRate: Q,\n    velocity,\n    reynolds,\n    regime: ff.regime,\n    frictionFactor: ff.lambda,\n    frictionMethod: ff.method,\n    relativeRoughness,\n    dynamicPressure: dynamicPressure(air.density, velocity),\n    pressureGradient,\n    length,\n    pressureDrop: length === null ? null : pressureGradient * length,\n    limits: limitResult,\n    crossCheck,\n    warnings,\n    assumptions: {\n      air,\n      roughness,\n      roughnessStatus: input.roughness == null ? 'preliminary-default' : 'user',\n      method: geom.shape === 'rect' ? 'darcy-weisbach-hydraulic-diameter' : 'darcy-weisbach',\n      scope: 'straight-duct-friction-only',\n    },\n  };\n}\nreturn { DEFAULT_ROUGHNESS_M, RELATIVE_ROUGHNESS_MAX, roundPressureGradient, validateCheckInput, checkDuct };\n})();\n\n\/\/ --- duct-calculator\/engine\/free-size.js\n__m[\"duct-calculator\/engine\/free-size.js\"] = (function () {\n\/\/ Vabam\u00f5\u00f5du arvutus: v\u00e4ikseim kanalim\u00f5\u00f5t, mis vastab antud piiridele.\n\/\/ Tootep\u00f5hist valikut (F7 standardm\u00f5\u00f5dud, laoseis, P\u00e4ringukorv) siin EI tehta \u2013 see on j\u00e4rgmine etapp.\n\/\/\n\/\/ \u00dcmar:      D_v  = \u221a(4Q \/ (\u03c0\u00b7v_max))\n\/\/            D_\u0394p = lahend v\u00f5rrandile \u0394p\/L(D) = (\u0394p\/L)_max (\u0394p\/L kahaneb D kasvades \u2192 poolitusmeetod)\n\/\/            D_min = max(D_v, D_\u0394p)\n\/\/ Kandiline: \u00fcks k\u00fclg antud (a), teine k\u00fclg b samamoodi:\n\/\/            b_v = Q \/ (v_max\u00b7a), b_\u0394p poolitusmeetodiga; b_min = max(b_v, b_\u0394p)\n\/\/            Valikuliselt \u00fcmardatakse b \u00fcles sammu j\u00e4rgi (K-2: esialgne samm 50 mm).\n\nconst { airProperties, AIR_DEFAULTS } = __m[\"duct-calculator\/engine\/air.js\"];\nconst { roundPressureGradient, DEFAULT_ROUGHNESS_M } = __m[\"duct-calculator\/engine\/check.js\"];\nconst { ductGeometry } = __m[\"duct-calculator\/engine\/geometry.js\"];\nconst { reynoldsNumber, frictionFactor, darcyPressureGradient } = __m[\"duct-calculator\/engine\/friction.js\"];\n\nconst DEFAULT_RECT_STEP_M = 0.05; \/\/ K-2 (2026-11-24): esialgne soovituslik samm, mitte tootmispiir\nconst SIZE_MIN_M = 1e-3;\nconst SIZE_MAX_M = 20;\n\nconst isPos = (x) => typeof x === 'number' && Number.isFinite(x) && x > 0;\n\n\/\/ Poolitusmeetod kahaneval funktsioonil g(x): leiab v\u00e4ikseima x, mille korral g(x) \u2264 target.\nfunction solveDecreasing(g, target, lo = SIZE_MIN_M, hi = SIZE_MAX_M) {\n  if (g(hi) > target) return null; \/\/ isegi suurim m\u00f5\u00f5t ei vasta\n  if (g(lo) <= target) return lo;\n  for (let i = 0; i < 200; i++) {\n    const mid = Math.sqrt(lo * hi); \/\/ geomeetriline keskpunkt, m\u00f5\u00f5dud on mitmes suurusj\u00e4rgus\n    if (g(mid) > target) lo = mid; else hi = mid;\n    if (hi \/ lo - 1 < 1e-12) break;\n  }\n  return hi;\n}\n\n\/\/ \u00dcmardab \u00fcles sammu t\u00e4iskordseks; ujukomaviga ei tohi t\u00f5sta juba t\u00e4pset kordset j\u00e4rgmisele sammule.\nfunction roundUpToStep(x, step) {\n  if (!isPos(step)) throw new RangeError('step must be positive');\n  const n = x \/ step;\n  return Math.ceil(n - 1e-9) * step;\n}\n\nfunction commonInputs(input) {\n  const errors = [];\n  const { flowRate, maxVelocity, maxPressureGradient, roughness } = input || {};\n  if (!isPos(flowRate)) errors.push('ERR_FLOW_RATE');\n  if (maxVelocity != null && !isPos(maxVelocity)) errors.push('ERR_LIMIT_maxVelocity');\n  if (maxPressureGradient != null && !isPos(maxPressureGradient)) errors.push('ERR_LIMIT_maxPressureGradient');\n  if (maxVelocity == null && maxPressureGradient == null) errors.push('ERR_NO_LIMIT');\n  if (roughness != null && !(typeof roughness === 'number' && roughness >= 0)) errors.push('ERR_ROUGHNESS');\n  return errors;\n}\n\nfunction requiredRoundDiameter(input) {\n  const errors = commonInputs(input);\n  if (errors.length) return { ok: false, errors };\n  const { flowRate: Q, maxVelocity, maxPressureGradient } = input;\n  const roughness = input.roughness ?? DEFAULT_ROUGHNESS_M;\n  const air = airProperties({ ...AIR_DEFAULTS, ...(input.air || {}) });\n\n  const byVelocity = maxVelocity != null ? Math.sqrt((4 * Q) \/ (Math.PI * maxVelocity)) : null;\n  const byPressure = maxPressureGradient != null\n    ? solveDecreasing((D) => roundPressureGradient(D, Q, roughness, air).pressureGradient, maxPressureGradient)\n    : null;\n  if (maxPressureGradient != null && byPressure === null) return { ok: false, errors: ['ERR_OUT_OF_RANGE'] };\n\n  const candidates = [byVelocity, byPressure].filter((x) => x !== null);\n  const diameter = Math.max(...candidates);\n  return {\n    ok: true,\n    diameter,\n    byVelocity,\n    byPressure,\n    governing: byPressure !== null && (byVelocity === null || byPressure >= byVelocity) ? 'pressure' : 'velocity',\n    assumptions: { air, roughness },\n  };\n}\n\nfunction rectGradient(a, b, Q, roughness, air) {\n  const g = ductGeometry({ shape: 'rect', width: a, height: b });\n  const v = Q \/ g.area;\n  const Re = reynoldsNumber(v, g.hydraulicDiameter, air.kinematicViscosity);\n  const ff = frictionFactor(Re, roughness \/ g.hydraulicDiameter, { laminarFRe: g.laminarFRe });\n  return darcyPressureGradient(ff.lambda, g.hydraulicDiameter, air.density, v);\n}\n\n\/\/ fixedSide: antud k\u00fclg [m] (k\u00f5rgus v\u00f5i laius \u2013 arvutuse jaoks s\u00fcmmeetriline).\n\/\/ step: valikuline \u00fcmardussamm [m]; null = ainult vabam\u00f5\u00f5t.\nfunction requiredRectSide(input) {\n  const errors = commonInputs(input);\n  if (!isPos(input?.fixedSide)) errors.push('ERR_DIMENSIONS');\n  if (input?.step != null && !isPos(input.step)) errors.push('ERR_STEP');\n  if (errors.length) return { ok: false, errors };\n  const { flowRate: Q, fixedSide: a, maxVelocity, maxPressureGradient } = input;\n  const roughness = input.roughness ?? DEFAULT_ROUGHNESS_M;\n  const air = airProperties({ ...AIR_DEFAULTS, ...(input.air || {}) });\n\n  const byVelocity = maxVelocity != null ? Q \/ (maxVelocity * a) : null;\n  const byPressure = maxPressureGradient != null\n    ? solveDecreasing((b) => rectGradient(a, b, Q, roughness, air), maxPressureGradient)\n    : null;\n  if (maxPressureGradient != null && byPressure === null) return { ok: false, errors: ['ERR_OUT_OF_RANGE'] };\n\n  const side = Math.max(...[byVelocity, byPressure].filter((x) => x !== null));\n  const step = input.step === undefined ? DEFAULT_RECT_STEP_M : input.step;\n  return {\n    ok: true,\n    fixedSide: a,\n    side,\n    byVelocity,\n    byPressure,\n    governing: byPressure !== null && (byVelocity === null || byPressure >= byVelocity) ? 'pressure' : 'velocity',\n    step,\n    sideRounded: step === null ? null : roundUpToStep(side, step),\n    assumptions: { air, roughness },\n  };\n}\nreturn { DEFAULT_RECT_STEP_M, roundUpToStep, requiredRoundDiameter, requiredRectSide };\n})();\n\n\/\/ --- duct-calculator\/select\/round-select.js\n__m[\"duct-calculator\/select\/round-select.js\"] = (function () {\n\/\/ \u00dcmarkanali tootevalik F7 standardl\u00e4bim\u00f5\u00f5tude hulgast (omanik K-1, 2026-11-24).\n\/\/  - Soovitus: v\u00e4ikseim F7 standardm\u00f5\u00f5t, mis vastab K\u00d5IGILE antud piiridele (kontrollitakse tegelike arvudega).\n\/\/  - V\u00f5rdlus: eelmine v\u00e4iksem standardm\u00f5\u00f5t (ei vasta v\u00e4hemalt \u00fchele piirile) ja j\u00e4rgmine suurem.\n\/\/  - Vahem\u00f5\u00f5t ei ole kunagi soovitus. Laoseisu ei garanteerita (seda moodul ei k\u00e4sitle).\n\/\/ M\u00f5\u00f5dud: sisend m \/ m\u00b3\/s, standardm\u00f5\u00f5dud mm-des (andmefailist).\n\nconst { requiredRoundDiameter } = __m[\"duct-calculator\/engine\/free-size.js\"];\nconst { checkDuct } = __m[\"duct-calculator\/engine\/check.js\"];\n\nconst ROUND_STATUS = Object.freeze({ OK: 'OK', NO_STANDARD_SIZE: 'NO_STANDARD_SIZE' });\n\nfunction sortedSizesMm(standardSizesMm) {\n  return [...new Set(standardSizesMm)].filter((x) => Number.isFinite(x) && x > 0).sort((a, b) => a - b);\n}\n\nfunction isStandardRoundMm(diameterMm, standardSizesMm) {\n  return standardSizesMm.some((s) => Math.abs(s - diameterMm) < 1e-6);\n}\n\nfunction limitsFit(limits) {\n  return Object.values(limits).every((l) => l.ok);\n}\n\nfunction evaluateRoundMm(diameterMm, input, role, standardSizesMm) {\n  const r = checkDuct({\n    geometry: { shape: 'round', diameter: diameterMm \/ 1000 },\n    flowRate: input.flowRate,\n    roughness: input.roughness,\n    air: input.air,\n    length: input.length ?? null,\n    limits: { maxVelocity: input.maxVelocity ?? undefined, maxPressureGradient: input.maxPressureGradient ?? undefined },\n  });\n  if (!r.ok) return { role, ok: false, errors: r.errors };\n  return {\n    role,\n    ok: true,\n    shape: 'round',\n    diameterMm,\n    isStandard: standardSizesMm ? isStandardRoundMm(diameterMm, standardSizesMm) : false,\n    area: r.geometry.area,\n    velocity: r.velocity,\n    pressureGradient: r.pressureGradient,\n    pressureDrop: r.pressureDrop,\n    reynolds: r.reynolds,\n    regime: r.regime,\n    hydraulicDiameter: r.geometry.hydraulicDiameter,\n    equivalentDiameter: r.geometry.equivalentDiameter,\n    aspectRatio: 1,\n    limits: r.limits,\n    fits: limitsFit(r.limits),\n    warnings: r.warnings,\n  };\n}\n\n\/\/ input: { flowRate, maxVelocity?, maxPressureGradient?, roughness?, air? }\nfunction selectRound(input, standardSizesMm) {\n  const req = requiredRoundDiameter(input);\n  if (!req.ok) return req;\n  const sizes = sortedSizesMm(standardSizesMm);\n  const base = {\n    ok: true,\n    requiredDiameter: req.diameter,\n    byVelocity: req.byVelocity,\n    byPressure: req.byPressure,\n    governing: req.governing,\n    assumptions: req.assumptions,\n  };\n\n  \/\/ Esimene standardm\u00f5\u00f5t \u2265 D_min; kontroll tegelike arvudega (ujukoma piiril liigutakse vajadusel \u00fcles).\n  let i = sizes.findIndex((mm) => mm \/ 1000 >= req.diameter * (1 - 1e-9));\n  let recommended = null;\n  while (i !== -1 && i < sizes.length) {\n    const e = evaluateRoundMm(sizes[i], input, 'recommended', sizes);\n    if (e.fits) { recommended = e; break; }\n    i++;\n  }\n  if (!recommended) {\n    const largest = evaluateRoundMm(sizes[sizes.length - 1], input, 'largest', sizes);\n    return { ...base, status: ROUND_STATUS.NO_STANDARD_SIZE, recommended: null, smaller: null, larger: null, rows: [largest] };\n  }\n  const smaller = i > 0 ? evaluateRoundMm(sizes[i - 1], input, 'smaller', sizes) : null;\n  const larger = i + 1 < sizes.length ? evaluateRoundMm(sizes[i + 1], input, 'larger', sizes) : null;\n  return {\n    ...base,\n    status: ROUND_STATUS.OK,\n    isSmallestStandard: i === 0,\n    recommended,\n    smaller,\n    larger,\n    rows: [smaller, recommended, larger].filter(Boolean),\n  };\n}\nreturn { ROUND_STATUS, sortedSizesMm, isStandardRoundMm, evaluateRoundMm, selectRound };\n})();\n\n\/\/ --- duct-calculator\/select\/rect-select.js\n__m[\"duct-calculator\/select\/rect-select.js\"] = (function () {\n\/\/ Kandilise kanali m\u00f5\u00f5du valik (FS Rect, valmistatakse m\u00f5\u00f5du j\u00e4rgi; omanik K-2, 2026-11-24).\r\n\/\/  - \u00dcks k\u00fclg on antud (k\u00f5rgus v\u00f5i laius), teine leitakse piiride j\u00e4rgi.\r\n\/\/  - Vaikimisi \u00fcmardatakse teine k\u00fclg \u00fcles 50 mm sammuga; vabam\u00f5\u00f5du re\u017eiimis ei \u00fcmardata.\r\n\/\/  - Suurim k\u00fclg ja k\u00fclgede suhe EI OLE tootmispiirangud: ainult hoiatused (mootor: > 4 ja > 10).\r\n\/\/  - maxWidth \/ maxHeight on kasutaja ruumipiirang (valikuline), mitte tootmispiir.\r\n\/\/ M\u00f5\u00f5dud meetrites.\r\n\r\nconst { requiredRectSide, roundUpToStep, DEFAULT_RECT_STEP_M } = __m[\"duct-calculator\/engine\/free-size.js\"];\r\nconst { checkDuct } = __m[\"duct-calculator\/engine\/check.js\"];\r\n\r\nconst RECT_STATUS = Object.freeze({ OK: 'OK', EXCEEDS_SPACE: 'EXCEEDS_SPACE' });\r\nconst RECT_EPS = 1e-9;\r\nconst RECT_MAX_ALTERNATIVES = 4;\r\n\r\nfunction rectFits(limits) {\r\n  return Object.values(limits).every((l) => l.ok);\r\n}\r\n\r\nfunction onGrid(x, step) {\r\n  const n = x \/ step;\r\n  return Math.abs(n - Math.round(n)) < 1e-6;\r\n}\r\n\r\nfunction evaluateRect(widthM, heightM, input, role, step = DEFAULT_RECT_STEP_M) {\r\n  const r = checkDuct({\r\n    geometry: { shape: 'rect', width: widthM, height: heightM },\r\n    flowRate: input.flowRate,\r\n    roughness: input.roughness,\r\n    air: input.air,\r\n    length: input.length ?? null,\r\n    limits: { maxVelocity: input.maxVelocity ?? undefined, maxPressureGradient: input.maxPressureGradient ?? undefined },\r\n  });\r\n  if (!r.ok) return { role, ok: false, errors: r.errors };\r\n  const g = r.geometry;\r\n  const space = withinSpace(widthM, heightM, input);\r\n  return {\r\n    role,\r\n    ok: true,\r\n    shape: 'rect',\r\n    widthMm: widthM * 1000,\r\n    heightMm: heightM * 1000,\r\n    onGrid: onGrid(widthM, step || DEFAULT_RECT_STEP_M) && onGrid(heightM, step || DEFAULT_RECT_STEP_M),\r\n    area: g.area,\r\n    velocity: r.velocity,\r\n    pressureGradient: r.pressureGradient,\r\n    pressureDrop: r.pressureDrop,\r\n    reynolds: r.reynolds,\r\n    regime: r.regime,\r\n    hydraulicDiameter: g.hydraulicDiameter,\r\n    equivalentDiameter: g.equivalentDiameter,\r\n    aspectRatio: g.aspectRatio,\r\n    limits: r.limits,\r\n    fits: rectFits(r.limits),\r\n    fitsSpace: space,\r\n    warnings: r.warnings,\r\n  };\r\n}\r\n\r\nfunction withinSpace(widthM, heightM, input) {\r\n  if (input.maxWidth != null && widthM > input.maxWidth * (1 + RECT_EPS)) return false;\r\n  if (input.maxHeight != null && heightM > input.maxHeight * (1 + RECT_EPS)) return false;\r\n  return true;\r\n}\r\n\r\nfunction dims(fixedIs, fixed, other) {\r\n  return fixedIs === 'width' ? { width: fixed, height: other } : { width: other, height: fixed };\r\n}\r\n\r\n\/\/ Soovitatud \u201e\u00fcmarad\u201c m\u00f5\u00f5dud (omaniku tagasiside 2026-11-24: pigem 200 \u00d7 400, 300 \u00d7 600; 100 mm k\u00fclg on halb).\r\n\/\/  - m\u00f5lemad k\u00fcljed 100 mm sammuga, v\u00e4ikseim k\u00fclg 200 mm;\r\n\/\/  - laius \u2265 k\u00f5rgus, k\u00fclgede suhe kuni 2 : 1;\r\n\/\/  - iga k\u00f5rguse jaoks v\u00e4ikseim sobiv laius; vastab piiridele ja ruumipiirangule;\r\n\/\/  - j\u00e4rjestus ristl\u00f5ike j\u00e4rgi (v\u00e4iksem materjalikulu ja ruum ees).\r\nconst SUGGEST_STEP_M = 0.1;\r\nconst SUGGEST_MIN_SIDE_M = 0.2;\r\nconst SUGGEST_MAX_ASPECT = 2;\r\nconst SUGGEST_MAX_AREA_FACTOR = 1.5;\r\nconst SUGGEST_MAX_SIDE_M = 3.0;\r\n\r\nfunction suggestRectSizes(input, { exclude = [], max = RECT_MAX_ALTERNATIVES } = {}) {\r\n  const out = [];\r\n  const same = (a, b) => Math.abs(a - b) < 1e-6;\r\n  const steps = Math.round((SUGGEST_MAX_SIDE_M - SUGGEST_MIN_SIDE_M) \/ SUGGEST_STEP_M);\r\n  for (let i = 0; i <= steps; i++) {\r\n    const h = Math.round((SUGGEST_MIN_SIDE_M + i * SUGGEST_STEP_M) * 1000) \/ 1000;\r\n    if (input.maxHeight != null && h > input.maxHeight * (1 + RECT_EPS)) break;\r\n    const r = requiredRectSide({ ...input, fixedSide: h, step: SUGGEST_STEP_M });\r\n    if (!r.ok) continue;\r\n    const w = Math.round(Math.max(r.sideRounded, h) * 1000) \/ 1000; \/\/ laius \u2265 k\u00f5rgus\r\n    if (w \/ h > SUGGEST_MAX_ASPECT + RECT_EPS) continue;\r\n    if (exclude.some(([ew, eh]) => same(ew, w) && same(eh, h))) continue;\r\n    const e = evaluateRect(w, h, input, 'alternative', SUGGEST_STEP_M);\r\n    if (e.ok && e.fits && e.fitsSpace) out.push(e);\r\n  }\r\n  out.sort((a, b) => a.area - b.area || a.aspectRatio - b.aspectRatio);\r\n  \/\/ Ainult m\u00f5istlikult v\u00e4ikesed: ristl\u00f5ige kuni 1,5 \u00d7 v\u00e4ikseima sobiva soovituse oma (ilma liigsuurte ruutudeta).\r\n  const limit = out.length ? out[0].area * SUGGEST_MAX_AREA_FACTOR : 0;\r\n  return out.filter((e) => e.area <= limit * (1 + RECT_EPS)).slice(0, max);\r\n}\r\n\r\n\/\/ input: { flowRate, fixedSide, fixedIs: 'height'|'width', maxWidth?, maxHeight?, free?: boolean,\r\n\/\/          maxVelocity?, maxPressureGradient?, roughness?, air? }\r\nfunction selectRect(input) {\r\n  const fixedIs = input.fixedIs === 'width' ? 'width' : 'height';\r\n  const step = input.free ? null : DEFAULT_RECT_STEP_M;\r\n  const req = requiredRectSide({ ...input, step });\r\n  if (!req.ok) return req;\r\n\r\n  const other = step === null ? req.side : req.sideRounded;\r\n  const d = dims(fixedIs, input.fixedSide, other);\r\n  const free = dims(fixedIs, input.fixedSide, req.side);\r\n  const recommended = evaluateRect(d.width, d.height, input, 'recommended', step);\r\n\r\n  const alternatives = suggestRectSizes(input, { exclude: [[d.width, d.height]] });\r\n\r\n  return {\r\n    ok: true,\r\n    status: recommended.fitsSpace ? RECT_STATUS.OK : RECT_STATUS.EXCEEDS_SPACE,\r\n    fixedIs,\r\n    step,\r\n    freeWidthMm: free.width * 1000,\r\n    freeHeightMm: free.height * 1000,\r\n    byVelocity: req.byVelocity,\r\n    byPressure: req.byPressure,\r\n    governing: req.governing,\r\n    recommended,\r\n    alternatives: alternatives.slice(0, RECT_MAX_ALTERNATIVES),\r\n    assumptions: req.assumptions,\r\n  };\r\n}\nreturn { RECT_STATUS, evaluateRect, SUGGEST_STEP_M, SUGGEST_MIN_SIDE_M, SUGGEST_MAX_ASPECT, SUGGEST_MAX_AREA_FACTOR, suggestRectSizes, selectRect };\n})();\n\n\/\/ --- duct-calculator\/select\/substitute.js\n__m[\"duct-calculator\/select\/substitute.js\"] = (function () {\n\/\/ Asendus: \u00fcmar \u2194 kandiline (omanik 2026-11-24: \u201eV\u00f5rdle\u201c asemele; nagu objektil kasutatud prinditud tabel).\n\/\/\n\/\/ Samav\u00e4\u00e4rne = sama \u00f5huhulga juures sama v\u00f5i v\u00e4iksem h\u00f5\u00f5rder\u00f5hukadu ekvivalentl\u00e4bim\u00f5\u00f5du j\u00e4rgi:\n\/\/   De = 1,30\u00b7(a\u00b7b)^0,625 \/ (a + b)^0,25   (Huebscher 1948, ASHRAE; kontrollitud avaldatud mm-tabeliga,\n\/\/   vt reference\/external-cases.json \u2192 equivalentDiameterTable).\n\/\/ V\u00f5rdlus s\u00f5ltub ainult m\u00f5\u00f5tudest; \u00f5huhulk on valikuline. Kui \u00f5huhulk on antud, arvutatakse lisaks\n\/\/ m\u00f5lema kanali \u00f5hukiirus ja h\u00f5\u00f5rder\u00f5hukadu (mootor: Darcy\u2013Weisbach, kandiline Dh kaudu).\n\/\/\n\/\/ \u00dcmar \u2192 kandiline: m\u00f5\u00f5dud 100 mm sammuga, v\u00e4ikseim k\u00fclg 200 mm, laius \u2265 k\u00f5rgus, k\u00fclgede suhe \u2264 4\n\/\/   (ruumipiirangu korral kuni 10, m\u00e4rgitakse), ristl\u00f5ige \u2264 1,5 \u00d7 v\u00e4ikseima sobiva oma.\n\/\/ Kandiline \u2192 \u00fcmar: v\u00e4ikseim F7 standardl\u00e4bim\u00f5\u00f5t, mille D \u2265 De (r\u00f5hukadu ei suurene) + \u00fcks v\u00e4iksem v\u00f5rdluseks.\n\nconst { equivalentDiameterHuebscher } = __m[\"duct-calculator\/engine\/geometry.js\"];\nconst { evaluateRoundMm, sortedSizesMm, isStandardRoundMm } = __m[\"duct-calculator\/select\/round-select.js\"];\nconst { evaluateRect, suggestRectSizes } = __m[\"duct-calculator\/select\/rect-select.js\"];\n\nconst SUBST_STEP_MM = 100;\nconst SUBST_MIN_SIDE_MM = 200;\nconst SUBST_MAX_SIDE_MM = 3000;\nconst SUBST_MAX_ASPECT = 4;\nconst SUBST_MAX_ASPECT_CONSTRAINED = 10;\nconst SUBST_MAX_AREA_FACTOR = 1.5;\nconst SUBST_MAX_OPTIONS = 6;\nconst SUBST_EPS = 1e-9;\n\n\/\/ Ekvivalentl\u00e4bim\u00f5\u00f5t mm-des (valem on \u00fchikust s\u00f5ltumatu).\nfunction equivalentDiameterMm(widthMm, heightMm) {\n  return equivalentDiameterHuebscher(widthMm, heightMm);\n}\n\nfunction flowInput(opts) {\n  return { flowRate: opts.flowRate, roughness: opts.roughness, air: opts.air };\n}\n\nfunction evalRound(dMm, opts, sizesMm) {\n  if (!(opts.flowRate > 0)) return null;\n  const e = evaluateRoundMm(dMm, flowInput(opts), 'subst', sizesMm);\n  return e.ok ? { velocity: e.velocity, pressureGradient: e.pressureGradient, warnings: e.warnings } : null;\n}\n\nfunction evalRect(wMm, hMm, opts) {\n  if (!(opts.flowRate > 0)) return null;\n  const e = evaluateRect(wMm \/ 1000, hMm \/ 1000, flowInput(opts), 'subst');\n  return e.ok ? { velocity: e.velocity, pressureGradient: e.pressureGradient, warnings: e.warnings } : null;\n}\n\nfunction withDelta(ev, base) {\n  if (!ev || !base) return ev;\n  return {\n    ...ev,\n    velocityChange: ev.velocity \/ base.velocity - 1,\n    pressureGradientChange: ev.pressureGradient \/ base.pressureGradient - 1,\n  };\n}\n\nfunction rectCandidates(diameterMm, maxAspect, opts) {\n  const out = [];\n  for (let h = SUBST_MIN_SIDE_MM; h <= SUBST_MAX_SIDE_MM; h += SUBST_STEP_MM) {\n    if (opts.maxHeightMm != null && h > opts.maxHeightMm + SUBST_EPS) break;\n    let w = h;\n    const wMax = Math.min(SUBST_MAX_SIDE_MM, h * maxAspect);\n    while (w <= wMax && equivalentDiameterMm(w, h) < diameterMm - SUBST_EPS) w += SUBST_STEP_MM;\n    if (w > wMax) continue;\n    if (opts.maxWidthMm != null && w > opts.maxWidthMm + SUBST_EPS) continue;\n    out.push({ widthMm: w, heightMm: h });\n  }\n  return out;\n}\n\n\/\/ opts: { flowRate?, roughness?, air?, maxHeightMm?, maxWidthMm? }\nfunction roundToRect(diameterMm, sizesMm, opts = {}) {\n  if (!(diameterMm > 0)) return { ok: false, errors: ['ERR_DIMENSIONS'] };\n  const roundArea = (Math.PI * diameterMm * diameterMm) \/ 4;\n  let constrained = false;\n  let cands = rectCandidates(diameterMm, SUBST_MAX_ASPECT, opts);\n  if (!cands.length && (opts.maxHeightMm != null || opts.maxWidthMm != null)) {\n    cands = rectCandidates(diameterMm, SUBST_MAX_ASPECT_CONSTRAINED, opts);\n    constrained = cands.length > 0;\n  }\n  cands.sort((a, b) => a.widthMm * a.heightMm - b.widthMm * b.heightMm || a.widthMm \/ a.heightMm - b.widthMm \/ b.heightMm);\n  const minArea = cands.length ? cands[0].widthMm * cands[0].heightMm : 0;\n  const base = evalRound(diameterMm, opts, sizesMm);\n  const options = cands\n    .filter((c) => c.widthMm * c.heightMm <= minArea * SUBST_MAX_AREA_FACTOR * (1 + SUBST_EPS))\n    .slice(0, SUBST_MAX_OPTIONS)\n    .map((c) => ({\n      shape: 'rect',\n      widthMm: c.widthMm,\n      heightMm: c.heightMm,\n      equivalentDiameterMm: equivalentDiameterMm(c.widthMm, c.heightMm),\n      aspectRatio: c.widthMm \/ c.heightMm,\n      areaChange: (c.widthMm * c.heightMm) \/ roundArea - 1,\n      eval: withDelta(evalRect(c.widthMm, c.heightMm, opts), base),\n    }));\n  return {\n    ok: true,\n    direction: 'round-to-rect',\n    from: {\n      shape: 'round',\n      diameterMm,\n      isStandard: isStandardRoundMm(diameterMm, sizesMm),\n      eval: base,\n    },\n    options,\n    constrained,\n    none: options.length === 0,\n  };\n}\n\nfunction rectToRound(widthMm, heightMm, sizesMm, opts = {}) {\n  if (!(widthMm > 0) || !(heightMm > 0)) return { ok: false, errors: ['ERR_DIMENSIONS'] };\n  const sizes = sortedSizesMm(sizesMm);\n  const de = equivalentDiameterMm(widthMm, heightMm);\n  const rectArea = widthMm * heightMm;\n  const base = evalRect(widthMm, heightMm, opts);\n  const idx = sizes.findIndex((d) => d >= de - SUBST_EPS);\n  const mk = (d, role) => ({\n    shape: 'round',\n    role,\n    diameterMm: d,\n    isStandard: true,\n    equivalentDiameterMm: d,\n    areaChange: (Math.PI * d * d) \/ 4 \/ rectArea - 1,\n    eval: withDelta(evalRound(d, opts, sizes), base),\n  });\n  let options;\n  if (idx === -1) options = [mk(sizes[sizes.length - 1], 'largest')];\n  else options = [mk(sizes[idx], 'equivalent')].concat(idx > 0 ? [mk(sizes[idx - 1], 'smaller')] : []);\n  return {\n    ok: true,\n    direction: 'rect-to-round',\n    from: {\n      shape: 'rect',\n      widthMm,\n      heightMm,\n      equivalentDiameterMm: de,\n      aspectRatio: Math.max(widthMm, heightMm) \/ Math.min(widthMm, heightMm),\n      eval: base,\n    },\n    equivalentDiameterMm: de,\n    options,\n    none: idx === -1,\n  };\n}\n\n\/\/ Informatiivne (omanik 2026-11-25): v\u00e4ikseim piirv\u00e4\u00e4rtustele vastav kandiline kanal Asenduse vaates.\n\/\/ Kasutab sama loogikat kui vaade \u201eKandiline kanal\u201c (suggestRectSizes: 100 mm samm, k\u00fclg \u2265 200 mm,\n\/\/ laius \u2265 k\u00f5rgus, suhe \u2264 2 : 1, kasutaja piirid ja k\u00f5rguse piirang). Samav\u00e4\u00e4rsuse kriteeriume (De) see ei\n\/\/ muuda ega lisa tulemust samav\u00e4\u00e4rsete loendisse. V\u00f5rdlus algse \u00fcmarkanaliga sama \u00f5huhulga juures.\n\/\/ input: { flowRate, maxVelocity?, maxPressureGradient?, roughness, air?, maxHeight? (m) }, fromEval: { velocity, pressureGradient }\nfunction smallestAllowedRect(input, fromEval) {\n  if (!(input.flowRate > 0) || (input.maxVelocity == null && input.maxPressureGradient == null)) return null;\n  const sugg = suggestRectSizes(input, { max: 1 });\n  if (!sugg.length) return { none: true };\n  const row = sugg[0];\n  const pressureGradientChange = fromEval ? row.pressureGradient \/ fromEval.pressureGradient - 1 : null;\n  return {\n    none: false,\n    row,\n    velocityChange: fromEval ? row.velocity \/ fromEval.velocity - 1 : null,\n    pressureGradientChange,\n    \/\/ H\u00fcdrauliliselt samav\u00e4\u00e4rne ainult siis, kui r\u00f5hukadu ei ole suurem kui algsel \u00fcmarkanalil.\n    notEquivalent: pressureGradientChange != null && pressureGradientChange > 1e-9,\n  };\n}\nreturn { SUBST_STEP_MM, SUBST_MIN_SIDE_MM, SUBST_MAX_SIDE_MM, SUBST_MAX_ASPECT, SUBST_MAX_ASPECT_CONSTRAINED, SUBST_MAX_AREA_FACTOR, SUBST_MAX_OPTIONS, equivalentDiameterMm, roundToRect, rectToRound, smallestAllowedRect };\n})();\n\n\/\/ --- shared\/ui\/clipboard.js\n__m[\"shared\/ui\/clipboard.js\"] = (function () {\n\/\/ Teksti kopeerimine: k\u00f5igepealt Clipboard API; kui see puudub V\u00d5I l\u00fckkab tagasi (nt \u00f5igus puudub,\n\/\/ manustatud vaade), siis varulahendus document.execCommand('copy') ajutise tekstiv\u00e4ljaga.\nfunction copyViaTextarea(text) {\n  const ta = document.createElement('textarea');\n  ta.value = text;\n  ta.setAttribute('readonly', '');\n  ta.style.position = 'fixed';\n  ta.style.top = '0';\n  ta.style.left = '0';\n  ta.style.opacity = '0';\n  document.body.appendChild(ta);\n  ta.focus();\n  ta.select();\n  ta.setSelectionRange(0, text.length); \/\/ iOS Safari\n  let ok = false;\n  try { ok = document.execCommand('copy'); } catch (e) { ok = false; }\n  document.body.removeChild(ta);\n  return ok;\n}\n\nasync function copyText(text) {\n  if (navigator.clipboard && window.isSecureContext) {\n    try {\n      await navigator.clipboard.writeText(text);\n      return true;\n    } catch (e) { \/* proovi varulahendust *\/ }\n  }\n  if (copyViaTextarea(text)) return true;\n  throw new Error('copy failed');\n}\nreturn { copyText };\n})();\n\n\/\/ --- duct-calculator\/ui\/state.js\n__m[\"duct-calculator\/ui\/state.js\"] = (function () {\n\/\/ \u00d5hukanalite kalkulaatori olek ja arvutus (ilma DOM-ita, testitav).\n\/\/ Olek hoiab kasutaja toorsisendeid (stringid). computeDuct() parsib need, teisendab SI-\u00fchikutesse\n\/\/ ja kutsub tootevaliku \/ kontrolli mooduleid. Tulemuses on ainult arvud ja koodid.\n\nconst { parseNumberInput } = __m[\"shared\/units\/parse.js\"];\nconst { convertFlow, isFlowUnit } = __m[\"shared\/units\/flow-units.js\"];\nconst { selectRound, evaluateRoundMm } = __m[\"duct-calculator\/select\/round-select.js\"];\nconst { selectRect, evaluateRect, suggestRectSizes } = __m[\"duct-calculator\/select\/rect-select.js\"];\nconst { roundToRect, rectToRound, smallestAllowedRect } = __m[\"duct-calculator\/select\/substitute.js\"];\nconst { DEFAULT_ROUGHNESS_M } = __m[\"duct-calculator\/engine\/check.js\"];\n\n\/\/ 'subst' = Asendus (\u00fcmar \u2194 kandiline), asendas 2026-11-24 re\u017eiimi 'compare' (V\u00f5rdle).\nconst DUCT_MODES = Object.freeze(['round', 'rect', 'check', 'subst']);\n\/\/ N\u00e4ide nupule \u201eKasuta n\u00e4idet\u201c (omanik P-1). See ei ole F7 projekteerimisnorm.\nconst DUCT_EXAMPLE_LIMITS = Object.freeze({ maxVelocity: '5', maxPressureGradient: '1' });\nconst DEFAULT_ROUGHNESS_TEXT = '0,09';\n\/\/ Kareduse eeldused (omanik V-2, 2026-11-24). Kumbki ei ole F7 spiraaltorude m\u00f5\u00f5tmisega kinnitatud.\nconst ROUGHNESS_PRESETS_MM = Object.freeze({ default: 0.09, conservative: 0.15 });\nconst ROUGHNESS_MODES = Object.freeze(['default', 'conservative', 'custom']);\nconst FIELD_LIMITS = Object.freeze({\n  flow: { positive: true },\n  maxVelocity: { positive: true, max: 100 },\n  maxPressureGradient: { positive: true, max: 1000 },\n  roughness: { max: 10 },\n  rectWidth: { positive: true, max: 10000 },\n  rectHeight: { positive: true, max: 10000 },\n  rectMaxWidth: { positive: true, max: 10000 },\n  rectMaxHeight: { positive: true, max: 10000 },\n  checkDiameter: { positive: true, max: 10000 },\n  checkWidth: { positive: true, max: 10000 },\n  checkHeight: { positive: true, max: 10000 },\n  checkLength: { max: 100000 },\n  substDiameter: { positive: true, max: 10000 },\n  substWidth: { positive: true, max: 10000 },\n  substHeight: { positive: true, max: 10000 },\n  substMaxHeight: { positive: true, max: 10000 },\n});\n\nfunction createDuctState() {\n  return {\n    mode: 'round',\n    flow: '',\n    flowUnit: 'm3h',\n    \/\/ Omanik 2026-11-24 (iPhone'i test): soovitus kohe p\u00e4rast \u00f5huhulga sisestamist \u2192 vaikimisi piirv\u00e4\u00e4rtused.\n    \/\/ Need on n\u00e4idisv\u00e4\u00e4rtused (mitte F7 n\u00f5ue), kasutaja saab muuta v\u00f5i kustutada.\n    maxVelocity: DUCT_EXAMPLE_LIMITS.maxVelocity,\n    maxPressureGradient: DUCT_EXAMPLE_LIMITS.maxPressureGradient,\n    roughnessMode: 'default', \/\/ 'default' 0,09 | 'conservative' 0,15 | 'custom' (v\u00e4li roughness)\n    roughness: '',\n    rectWidth: '', \/\/ kandiline: t\u00e4ida \u00fcks k\u00fclg \u2192 teine arvutatakse; m\u00f5lemad \u2192 kontrollitakse seda m\u00f5\u00f5tu\n    rectHeight: '',\n    rectMaxWidth: '',\n    rectMaxHeight: '',\n    rectFree: false,\n    checkShape: 'round',\n    checkDiameter: '',\n    checkWidth: '',\n    checkHeight: '',\n    checkLength: '',\n    substShape: 'round', \/\/ Asendus: projektis olev kanal\n    substDiameter: '',\n    substWidth: '',\n    substHeight: '',\n    substMaxHeight: '', \/\/ ruumipiirang (nt lae all), valikuline\n  };\n}\n\n\/\/ Tagastab: number | null (t\u00fchi) | undefined (viga, kood kirjutatakse errors[errKey]).\nfunction readNumber(raw, kind, errors, errKey) {\n  const p = parseNumberInput(raw);\n  if (p.status === 'empty') return null;\n  if (p.status === 'error') { errors[errKey] = p.code; return undefined; }\n  const lim = FIELD_LIMITS[kind] || {};\n  if (lim.positive && p.value <= 0) { errors[errKey] = 'NOT_POSITIVE'; return undefined; }\n  if (lim.max != null && p.value > lim.max) { errors[errKey] = 'OUT_OF_RANGE'; return undefined; }\n  return p.value;\n}\n\n\/\/ P\u00f5hiarvutus. sizesMm = F7 standardl\u00e4bim\u00f5\u00f5dud (andmefailist).\nfunction computeDuct(state, sizesMm) {\n  const mode = DUCT_MODES.includes(state.mode) ? state.mode : 'round';\n  const errors = {};\n  const num = (key) => readNumber(state[key], key, errors, key);\n\n  const flow = num('flow');\n  const maxVelocity = num('maxVelocity');\n  const maxPressureGradient = num('maxPressureGradient');\n  const roughnessMode = ROUGHNESS_MODES.includes(state.roughnessMode) ? state.roughnessMode : 'default';\n  let roughnessMm = ROUGHNESS_PRESETS_MM[roughnessMode];\n  if (roughnessMode === 'custom') {\n    roughnessMm = num('roughness');\n    if (roughnessMm === null) errors.roughness = 'REQUIRED';\n  }\n  const flowUnit = isFlowUnit(state.flowUnit) ? state.flowUnit : 'm3h';\n  \/\/ Vaikimisi re\u017eiim kasutab otse mootori konstanti (sama v\u00e4\u00e4rtus kui etapis 3a ja testvektorites).\n  const roughness = roughnessMode === 'default' || roughnessMm == null ? DEFAULT_ROUGHNESS_M : roughnessMm \/ 1000;\n\n  const base = {\n    mode,\n    errors,\n    flowUnit,\n    flowValue: flow ?? null,\n    flowRate: flow > 0 ? convertFlow(flow, flowUnit, 'm3s') : null,\n    limits: { maxVelocity: maxVelocity ?? null, maxPressureGradient: maxPressureGradient ?? null },\n    roughness,\n    roughnessMode,\n    roughnessIsDefault: roughnessMode === 'default',\n    hasLimits: maxVelocity != null || maxPressureGradient != null,\n  };\n  const input = {\n    flowRate: base.flowRate,\n    maxVelocity: maxVelocity ?? undefined,\n    maxPressureGradient: maxPressureGradient ?? undefined,\n    roughness,\n  };\n  const done = (status, extra = {}) => ({ ...base, status, ...extra });\n\n  if (mode === 'round') {\n    if (Object.keys(errors).length) return done('INPUT_ERROR');\n    if (flow == null) return done('NEED_FLOW');\n    if (!base.hasLimits) return done('NEED_LIMIT');\n    const result = selectRound(input, sizesMm);\n    if (!result.ok) return done('INPUT_ERROR', { engineErrors: result.errors });\n    return done(result.status, { result });\n  }\n\n  if (mode === 'rect') {\n    const w = num('rectWidth');\n    const h = num('rectHeight');\n    const maxW = num('rectMaxWidth');\n    const maxH = num('rectMaxHeight');\n    if (Object.keys(errors).length) return done('INPUT_ERROR');\n    if (flow == null) return done('NEED_FLOW');\n    const space = { maxWidth: maxW == null ? undefined : maxW \/ 1000, maxHeight: maxH == null ? undefined : maxH \/ 1000 };\n    if (w == null && h == null) {\n      \/\/ K\u00fclgi pole veel sisestatud \u2192 n\u00e4ita kohe sobivaid \u00fcmaraid m\u00f5\u00f5te (omanik 2026-11-24).\n      if (!base.hasLimits) return done('NEED_LIMIT');\n      const sugg = suggestRectSizes({ ...input, ...space });\n      if (!sugg.length) return done('NEED_FIXED');\n      return done('OK', { result: { suggested: true, recommended: sugg[0], alternatives: sugg.slice(1), step: null } });\n    }\n    if (w != null && h != null) {\n      \/\/ M\u00f5lemad k\u00fcljed antud \u2192 kontrollitakse just seda m\u00f5\u00f5tu (piirid valikulised).\n      const row = evaluateRect(w \/ 1000, h \/ 1000, { ...input, ...space }, 'given');\n      if (!row.ok) return done('INPUT_ERROR', { engineErrors: row.errors });\n      \/\/ Piiride korral soovitatakse \u201e\u00fcmaraid\u201c sobivaid m\u00f5\u00f5te (100 mm samm, k\u00fclg \u2265 200 mm, suhe \u2264 2 : 1).\n      const alternatives = base.hasLimits\n        ? suggestRectSizes({ ...input, ...space }, { exclude: [[w \/ 1000, h \/ 1000]] })\n        : [];\n      return done('OK', { result: { given: true, recommended: row, alternatives, step: null } });\n    }\n    if (!base.hasLimits) return done('NEED_LIMIT');\n    const result = selectRect({\n      ...input,\n      ...space,\n      fixedSide: (h ?? w) \/ 1000,\n      fixedIs: h != null ? 'height' : 'width',\n      free: Boolean(state.rectFree),\n    });\n    if (!result.ok) return done('INPUT_ERROR', { engineErrors: result.errors });\n    return done(result.status, { result });\n  }\n\n  if (mode === 'check') {\n    const shape = state.checkShape === 'rect' ? 'rect' : 'round';\n    const d = shape === 'round' ? num('checkDiameter') : null;\n    const w = shape === 'rect' ? num('checkWidth') : null;\n    const h = shape === 'rect' ? num('checkHeight') : null;\n    const length = num('checkLength');\n    if (Object.keys(errors).length) return done('INPUT_ERROR');\n    if (flow == null) return done('NEED_FLOW');\n    const inp = { ...input, length: length ?? null };\n    \/\/ Omanik 2026-11-24: kui m\u00f5\u00f5t puudub, paku kohe sobiv minimaalne m\u00f5\u00f5t (algajal ei pea v\u00e4\u00e4rtustega m\u00e4ngima).\n    if (shape === 'round' && d == null) {\n      if (!base.hasLimits) return done('NEED_DIMENSIONS');\n      const sel = selectRound(inp, sizesMm);\n      if (!sel.ok) return done('INPUT_ERROR', { engineErrors: sel.errors });\n      return done(sel.status, { result: sel, checkSuggest: 'round', length: length ?? null });\n    }\n    if (shape === 'rect' && (w == null || h == null)) {\n      if (!base.hasLimits) return done('NEED_DIMENSIONS');\n      if (w == null && h == null) {\n        const sugg = suggestRectSizes(inp);\n        if (!sugg.length) return done('NEED_DIMENSIONS');\n        return done('OK', { result: { suggested: true, recommended: sugg[0], alternatives: sugg.slice(1), step: null }, checkSuggest: 'rect', length: length ?? null });\n      }\n      const sel = selectRect({ ...inp, fixedSide: (h ?? w) \/ 1000, fixedIs: h != null ? 'height' : 'width' });\n      if (!sel.ok) return done('INPUT_ERROR', { engineErrors: sel.errors });\n      return done(sel.status, { result: sel, checkSuggest: 'rect', length: length ?? null });\n    }\n    const result = shape === 'round'\n      ? evaluateRoundMm(d, inp, 'check', sizesMm)\n      : evaluateRect(w \/ 1000, h \/ 1000, inp, 'check');\n    if (!result.ok) return done('INPUT_ERROR', { engineErrors: result.errors });\n    return done('OK', { result, length: length ?? null });\n  }\n\n  \/\/ subst \u2013 Asendus (\u00fcmar \u2194 kandiline). \u00d5huhulk on valikuline.\n  const sShape = state.substShape === 'rect' ? 'rect' : 'round';\n  const sd = sShape === 'round' ? num('substDiameter') : null;\n  const sw = sShape === 'rect' ? num('substWidth') : null;\n  const sh = sShape === 'rect' ? num('substHeight') : null;\n  const sMaxH = sShape === 'round' ? num('substMaxHeight') : null;\n  if (Object.keys(errors).length) return done('INPUT_ERROR');\n  if (sShape === 'round' ? sd == null : (sw == null || sh == null)) return done('NEED_SUBST');\n  const sOpts = { flowRate: base.flowRate, roughness, maxHeightMm: sMaxH ?? undefined };\n  const sResult = sShape === 'round' ? roundToRect(sd, sizesMm, sOpts) : rectToRound(sw, sh, sizesMm, sOpts);\n  if (!sResult.ok) return done('INPUT_ERROR', { engineErrors: sResult.errors });\n  \/\/ Informatiivne, eraldi samav\u00e4\u00e4rsete loendist (omanik 2026-11-25): v\u00e4ikseim piirv\u00e4\u00e4rtustele vastav kandiline.\n  const smallestAllowed = sShape === 'round'\n    ? smallestAllowedRect({ ...input, maxHeight: sMaxH == null ? undefined : sMaxH \/ 1000 }, sResult.from.eval)\n    : null;\n  return done('OK', { result: sResult, smallestAllowed });\n}\n\n\/\/ ---------- Jagatav link (URL-i r\u00e4si). Isikuandmeid ei ole, ainult arvutuse sisendid. ----------\nconst HASH_KEYS = Object.freeze({\n  mode: 'm', flow: 'q', flowUnit: 'u', maxVelocity: 'v', maxPressureGradient: 'dp', roughnessMode: 'er', roughness: 'e',\n  rectWidth: 'wi', rectHeight: 'he', rectMaxWidth: 'rw', rectMaxHeight: 'rh', rectFree: 'rx',\n  checkShape: 'cs', checkDiameter: 'cd', checkWidth: 'cw', checkHeight: 'ch', checkLength: 'cl',\n  substShape: 'ss', substDiameter: 'sd', substWidth: 'sw', substHeight: 'sh', substMaxHeight: 'sm',\n});\n\nfunction serializeDuctState(state) {\n  const def = createDuctState();\n  const p = new URLSearchParams();\n  for (const [key, short] of Object.entries(HASH_KEYS)) {\n    const v = state[key];\n    if (v === def[key] || v === false || v == null) continue;\n    if (v === '' && def[key] === '') continue;\n    if (key === 'roughness' && state.roughnessMode !== 'custom') continue; \/\/ oma v\u00e4\u00e4rtus ainult kui valitud\n    p.set(short, v === true ? '1' : String(v));\n  }\n  return p.toString();\n}\n\nfunction deserializeDuctState(hash) {\n  const s = createDuctState();\n  const p = new URLSearchParams(String(hash || '').replace(\/^#\/, ''));\n  for (const [key, short] of Object.entries(HASH_KEYS)) {\n    if (!p.has(short)) continue;\n    const v = p.get(short).slice(0, 40);\n    if (key === 'rectFree') s.rectFree = v === '1';\n    else if (key === 'mode') { if (DUCT_MODES.includes(v)) s.mode = v; else if (v === 'compare') s.mode = 'subst'; }\n    else if (key === 'flowUnit') { if (isFlowUnit(v)) s.flowUnit = v; }\n    else if (key === 'checkShape') s.checkShape = v === 'rect' ? 'rect' : 'round';\n    else if (key === 'substShape') s.substShape = v === 'rect' ? 'rect' : 'round';\n    else if (key === 'roughnessMode') { if (ROUGHNESS_MODES.includes(v)) s.roughnessMode = v; }\n    else s[key] = v;\n  }\n  \/\/ Vanemad lingid: 'rf' + 'rs' (\u00fcks v\u00e4li + l\u00fcliti) \u2192 laius v\u00f5i k\u00f5rgus.\n  if (p.has('rf') && !p.has('wi') && !p.has('he')) {\n    const v = p.get('rf').slice(0, 40);\n    if (p.get('rs') === 'width') s.rectWidth = v; else s.rectHeight = v;\n  }\n  \/\/ Vanemad lingid: ainult 'e' \u2192 oma v\u00e4\u00e4rtus.\n  if (p.has('e') && !p.has('er')) s.roughnessMode = 'custom';\n  return s;\n}\nreturn { DUCT_MODES, DUCT_EXAMPLE_LIMITS, DEFAULT_ROUGHNESS_TEXT, ROUGHNESS_PRESETS_MM, ROUGHNESS_MODES, createDuctState, readNumber, computeDuct, serializeDuctState, deserializeDuctState };\n})();\n\n\/\/ --- duct-calculator\/ui\/render.js\n__m[\"duct-calculator\/ui\/render.js\"] = (function () {\n\/\/ Tulemuste HTML ja kopeeritav tekst (ilma DOM-ita, testitav).\n\/\/ ctx = { t(key, params), locale, links: { round, rect, ctaRound, ctaRect } }\n\nconst { formatNumber } = __m[\"shared\/units\/format.js\"];\nconst { FLOW_UNITS } = __m[\"shared\/units\/flow-units.js\"];\nconst { parseNumberInput } = __m[\"shared\/units\/parse.js\"];\n\nfunction makeTranslator(dict) {\n  return (key, params) => {\n    let s = Object.prototype.hasOwnProperty.call(dict, key) ? dict[key] : key;\n    if (params) s = s.replace(\/\\{(\\w+)\\}\/g, (m, k) => (params[k] !== undefined ? params[k] : m));\n    return s;\n  };\n}\n\nconst escapeText = (s) => String(s).replace(\/[&<>\"']\/g, (c) => ({ '&': '\\x26amp;', '<': '\\x26lt;', '>': '\\x26gt;', '\"': '\\x26quot;', \"'\": '\\x26#39;' }[c]));\n\nfunction fmtFactory(locale) {\n  const n = (x, d) => (x == null ? '\u2013' : formatNumber(x, { decimals: d, locale }));\n  return {\n    v: (x) => n(x, 2),\n    pg: (x) => n(x, 2),\n    pa: (x) => n(x, 1),\n    mm: (x) => n(x, 0),\n    area: (x) => n(x, 4),\n    re: (x) => n(x, 0),\n    ar: (x) => n(x, 1),\n    lim: (x) => n(x, 2),\n    flow: (x) => n(x, 2),\n  };\n}\n\nfunction sizeLabel(row, t, f) {\n  if (row.shape === 'round') return `\u00d8 ${f.mm(row.diameterMm)}`;\n  return `${f.mm(row.widthMm)} \u00d7 ${f.mm(row.heightMm)}`;\n}\n\nfunction chip(state, t) {\n  if (state === true) return `<span class=\"f7c-chip is-ok\"><span aria-hidden=\"true\">\u2713<\/span> ${escapeText(t('ok'))}<\/span>`;\n  if (state === false) return `<span class=\"f7c-chip is-fail\"><span aria-hidden=\"true\">\u2715<\/span> ${escapeText(t('fail'))}<\/span>`;\n  return '';\n}\n\nfunction kpi(label, valueHtml, unit, limit, t, f) {\n  const lim = limit ? `${chip(limit.ok, t)}<span class=\"f7c-kpi__lim\">${escapeText(t('limitOf', { x: f.lim(limit.limit) }))}<\/span>` : '';\n  return `<div class=\"f7c-kpi\"><dt>${escapeText(label)}<\/dt><dd><span class=\"f7c-kpi__val\">${valueHtml}<\/span> <span class=\"f7c-kpi__unit\">${escapeText(unit)}<\/span>${lim}<\/dd><\/div>`;\n}\n\nfunction warningsHtml(codes, t) {\n  const list = [...new Set(codes)].filter((c) => !['WARN_VELOCITY_LIMIT', 'WARN_PRESSURE_GRADIENT_LIMIT'].includes(c));\n  if (!list.length) return '';\n  return `<ul class=\"f7c-warn\">${list.map((c) => `<li><span aria-hidden=\"true\">\u26a0<\/span> ${escapeText(t('warn.' + c))}<\/li>`).join('')}<\/ul>`;\n}\n\n\/\/ Tabel, mis kitsas konteineris muutub kaartideks (CSS + data-label).\nfunction table(rows, cols, t, cls = '') {\n  const head = cols.map((c) => `<th scope=\"col\">${escapeText(c.label)}<\/th>`).join('');\n  const body = rows.map((r) => `<tr class=\"${r._cls || ''}\">${cols.map((c, i) => {\n    const tag = i === 0 ? 'th scope=\"row\"' : 'td';\n    const close = i === 0 ? 'th' : 'td';\n    return `<${tag} data-label=\"${escapeText(c.label)}\">${c.cell(r)}<\/${close}>`;\n  }).join('')}<\/tr>`).join('');\n  return `<table class=\"f7c-table ${cls}\"><thead><tr>${head}<\/tr><\/thead><tbody>${body}<\/tbody><\/table>`;\n}\n\nfunction actions(view, ctx, productKey, ctaKey) {\n  const { t, links } = ctx;\n  return `<div class=\"f7c-actions\">\n<button type=\"button\" class=\"f7c-btn\" data-action=\"copy\">${escapeText(t('btn.copy'))}<\/button>\n<button type=\"button\" class=\"f7c-btn\" data-action=\"link\">${escapeText(t('btn.link'))}<\/button>\n<span class=\"f7c-actions__status\" role=\"status\" data-copy-status><\/span>\n<\/div>\n<div class=\"f7c-actions f7c-actions--links\">\n<a class=\"f7c-btn f7c-btn--cta\" href=\"${escapeText(links[ctaKey])}\">${escapeText(t('btn.cta'))}<\/a>\n<a class=\"f7c-link\" href=\"${escapeText(links[productKey])}\">${escapeText(t(productKey === 'round' ? 'btn.productRound' : 'btn.productRect'))}<\/a>\n<\/div>`;\n}\n\nfunction footer(view, ctx, withStock) {\n  const { t } = ctx;\n  const eps = formatNumber(view.roughness * 1000, { decimals: 3, locale: ctx.locale });\n  return `<p class=\"f7c-foot\">${escapeText(t('assumptions', { e: eps }))} ${escapeText(t('assumptions.' + (view.roughnessMode || 'default')))}<\/p>\n${withStock ? `<p class=\"f7c-foot\">${escapeText(t('res.stock'))}<\/p>` : ''}\n<p class=\"f7c-foot\">${escapeText(t('res.disclaimer'))}<\/p>`;\n}\n\nfunction hint(view, t) {\n  const key = 'st.' + view.status;\n  const example = view.status === 'NEED_LIMIT'\n    ? `<button type=\"button\" class=\"f7c-btn\" data-action=\"example\">${escapeText(t('in.example'))}<\/button>` : '';\n  return `<div class=\"f7c-hint\"><p>${escapeText(t(key))}<\/p>${example}<\/div>`;\n}\n\nconst mainCols = (t, f, extra = []) => [\n  { label: t('col.size'), cell: (r) => `${escapeText(sizeLabel(r, t, f))}${r._role ? `<span class=\"f7c-role\">${escapeText(r._role)}<\/span>` : ''}` },\n  { label: t('col.velocity'), cell: (r) => `${f.v(r.velocity)}${r.limits?.velocity ? ' ' + chip(r.limits.velocity.ok, t) : ''}` },\n  { label: t('col.pg'), cell: (r) => `${f.pg(r.pressureGradient)}${r.limits?.pressureGradient ? ' ' + chip(r.limits.pressureGradient.ok, t) : ''}` },\n  ...extra,\n];\n\nfunction renderRound(view, ctx) {\n  const { t } = ctx;\n  const f = fmtFactory(ctx.locale);\n  const r = view.result;\n  const gov = t(r.governing === 'pressure' ? 'gov.pressure' : 'gov.velocity');\n  const dmin = `<p class=\"f7c-note\">${escapeText(t('res.dmin', { d: f.mm(r.requiredDiameter * 1000), g: gov }))}<\/p>`;\n  if (view.status === 'NO_STANDARD_SIZE') {\n    return `<div class=\"f7c-res is-none\"><p class=\"f7c-alert\">${escapeText(t('st.NO_STANDARD_SIZE'))}<\/p>${dmin}\n${table(r.rows.map((x) => ({ ...x, _role: t('role.largest') })), mainCols(t, f), t)}\n${footer(view, ctx, false)}<\/div>`;\n  }\n  const rec = r.recommended;\n  const roleName = { smaller: t('role.smaller'), recommended: t('role.recommended'), larger: t('role.larger') };\n  const rows = r.rows.map((x) => ({ ...x, _role: roleName[x.role], _cls: x.role === 'recommended' ? 'is-rec' : '' }));\n  return `<div class=\"f7c-res\">\n<p class=\"f7c-res__label\">${escapeText(t('res.recommended'))}<\/p>\n<p class=\"f7c-res__size\">${escapeText(sizeLabel(rec, t, f))} <span class=\"f7c-badge\">${escapeText(t('type.standard'))}<\/span><\/p>\n<dl class=\"f7c-kpis\">\n${kpi(t('res.velocity'), f.v(rec.velocity), 'm\/s', rec.limits.velocity, t, f)}\n${kpi(t('res.pressureGradient'), f.pg(rec.pressureGradient), 'Pa\/m', rec.limits.pressureGradient, t, f)}\n<\/dl>\n${dmin}\n${r.isSmallestStandard ? `<p class=\"f7c-note\">${escapeText(t('res.smallest'))}<\/p>` : ''}\n${view.checkSuggest === 'round' ? `<p class=\"f7c-note\">${escapeText(t('res.checkRoundHint'))}<\/p>` : ''}\n${warningsHtml(rec.warnings, t)}\n<h3 class=\"f7c-h3\">${escapeText(t('res.compareTitle'))}<\/h3>\n${table(rows, mainCols(t, f), t)}\n${actions(view, ctx, 'round', 'ctaRound')}\n${footer(view, ctx, true)}\n<\/div>`;\n}\n\nfunction renderRect(view, ctx) {\n  const { t } = ctx;\n  const f = fmtFactory(ctx.locale);\n  const r = view.result;\n  const rec = r.recommended;\n  const free = `${f.mm(r.freeWidthMm)} \u00d7 ${f.mm(r.freeHeightMm)}`;\n  const alt = r.alternatives.length\n    ? `<h3 class=\"f7c-h3\">${escapeText(t(r.given || r.suggested ? 'res.alternativesGiven' : 'res.alternatives'))}<\/h3>${table(r.alternatives, mainCols(t, f, [\n      { label: t('col.aspect'), cell: (x) => `${f.ar(x.aspectRatio)} : 1` },\n    ]), t)}`\n    : '';\n  return `<div class=\"f7c-res${view.status === 'EXCEEDS_SPACE' ? ' is-warn' : ''}\">\n${view.status === 'EXCEEDS_SPACE' ? `<p class=\"f7c-alert\">${escapeText(t('st.EXCEEDS_SPACE'))}<\/p>` : ''}\n<p class=\"f7c-res__label\">${escapeText(t(r.given ? 'res.givenRect' : r.suggested ? 'res.suggestedRect' : 'res.recommendedRect'))}<\/p>\n<p class=\"f7c-res__size\">${escapeText(sizeLabel(rec, t, f))} <span class=\"f7c-res__unit\">mm<\/span> <span class=\"f7c-badge\">${escapeText(t(!r.given && !r.suggested && r.step === null ? 'type.free' : 'type.rect'))}<\/span><\/p>\n${r.given && Object.keys(rec.limits).length ? `<p class=\"f7c-res__verdict\">${chip(rec.fits, t)}<\/p>` : ''}\n<dl class=\"f7c-kpis\">\n${kpi(t('res.velocity'), f.v(rec.velocity), 'm\/s', rec.limits.velocity, t, f)}\n${kpi(t('res.pressureGradient'), f.pg(rec.pressureGradient), 'Pa\/m', rec.limits.pressureGradient, t, f)}\n<\/dl>\n${warningsHtml(rec.warnings, t)}\n${r.given || r.suggested || r.step === null ? '' : `<p class=\"f7c-note\">${escapeText(t('res.freeRect', { s: free }))}<\/p>`}\n${r.suggested ? `<p class=\"f7c-note\">${escapeText(t('res.suggestedHint'))}<\/p>` : ''}\n${details(rec, t, f, true)}\n${alt}\n${actions(view, ctx, 'rect', 'ctaRect')}\n${footer(view, ctx, false)}\n<\/div>`;\n}\n\nfunction details(row, t, f, withAspect) {\n  const items = [\n    [t('res.area'), `${f.area(row.area)} m\u00b2`],\n    [t('res.reynolds'), `${f.re(row.reynolds)} (${t('regime.' + row.regime)})`],\n  ];\n  if (row.shape === 'rect') {\n    items.push([t('res.dh'), `${f.mm(row.hydraulicDiameter * 1000)} mm`]);\n    items.push([t('res.de'), `${f.mm(row.equivalentDiameter * 1000)} mm`]);\n    if (withAspect) items.push([t('res.aspect'), `${f.ar(row.aspectRatio)} : 1`]);\n  }\n  const info = row.shape === 'rect' ? `<p class=\"f7c-note f7c-note--small\">${escapeText(t('res.dhdeInfo'))}<\/p>` : '';\n  return `<dl class=\"f7c-details\">${items.map(([k, v]) => `<div><dt>${escapeText(k)}<\/dt><dd>${escapeText(v)}<\/dd><\/div>`).join('')}<\/dl>${info}`;\n}\n\nfunction renderCheck(view, ctx) {\n  const { t } = ctx;\n  const f = fmtFactory(ctx.locale);\n  const r = view.result;\n  const badge = r.shape === 'round' ? t(r.isStandard ? 'type.standard' : 'type.intermediate') : t('type.rect');\n  const drop = view.length != null\n    ? kpi(t('res.pressureDrop', { L: formatNumber(view.length, { decimals: 2, locale: ctx.locale }) }), f.pa(r.pressureDrop), 'Pa', null, t, f)\n    : '';\n  return `<div class=\"f7c-res\">\n<p class=\"f7c-res__label\">${escapeText(t('res.checked'))}<\/p>\n<p class=\"f7c-res__size\">${escapeText(sizeLabel(r, t, f))}${r.shape === 'rect' ? ' <span class=\"f7c-res__unit\">mm<\/span>' : ''} <span class=\"f7c-badge${r.shape === 'round' && !r.isStandard ? ' is-muted' : ''}\">${escapeText(badge)}<\/span><\/p>\n${!view.hasLimits ? '' : `<p class=\"f7c-res__verdict\">${chip(r.fits, t)}<\/p>`}\n<dl class=\"f7c-kpis\">\n${kpi(t('res.velocity'), f.v(r.velocity), 'm\/s', r.limits.velocity, t, f)}\n${kpi(t('res.pressureGradient'), f.pg(r.pressureGradient), 'Pa\/m', r.limits.pressureGradient, t, f)}\n${drop}\n<\/dl>\n${warningsHtml(r.warnings, t)}\n${details(r, t, f, true)}\n${actions(view, ctx, r.shape === 'round' ? 'round' : 'rect', r.shape === 'round' ? 'ctaRound' : 'ctaRect')}\n${footer(view, ctx, r.shape === 'round' && r.isStandard)}\n<\/div>`;\n}\n\n\/\/ Asendus (\u00fcmar \u2194 kandiline): projektis olev kanal ja samav\u00e4\u00e4rsed m\u00f5\u00f5dud teise kujuga.\nfunction pct(x, f) {\n  if (x == null || !Number.isFinite(x)) return '\u2013';\n  const v = Math.round(x * 100);\n  return `${v > 0 ? '+' : v < 0 ? '\u2212' : '\u00b1'}${Math.abs(v)} %`;\n}\n\nfunction substFromLine(from, t, f) {\n  return `${sizeLabel(from, t, f)}${from.shape === 'rect' ? ' mm' : ''}`;\n}\n\nfunction limitsText(view, f) {\n  const lims = [];\n  if (view.limits.maxVelocity != null) lims.push(`v \u2264 ${f.lim(view.limits.maxVelocity)} m\/s`);\n  if (view.limits.maxPressureGradient != null) lims.push(`\u0394p\/L \u2264 ${f.lim(view.limits.maxPressureGradient)} Pa\/m`);\n  return lims.join(', ');\n}\n\n\/\/ Informatiivne plokk Asenduses (omanik 2026-11-25): eraldi samav\u00e4\u00e4rsete loendist.\nfunction renderSmallestAllowed(view, ctx) {\n  const m = view.smallestAllowed;\n  if (!m) return '';\n  const { t } = ctx;\n  const f = fmtFactory(ctx.locale);\n  const title = `<h3 class=\"f7c-h3\">${escapeText(t('subst.minTitle'))}<\/h3>`;\n  if (m.none) return `<section class=\"f7c-min\" data-smallest-allowed>${title}<p class=\"f7c-note\">${escapeText(t('subst.minNone'))}<\/p><\/section>`;\n  const r = m.row;\n  const verdict = m.pressureGradientChange == null ? ''\n    : m.notEquivalent\n      ? `<p class=\"f7c-alert f7c-min__noeq\"><span aria-hidden=\"true\">\u26a0<\/span> ${escapeText(t('subst.minNotEq', { p: pct(m.pressureGradientChange, f).replace(\/^\\+\/, '') }))}<\/p>`\n      : `<p class=\"f7c-note\">${escapeText(t('subst.minEq'))}<\/p>`;\n  return `<section class=\"f7c-min\" data-smallest-allowed>\n${title}\n<p class=\"f7c-min__size\">${escapeText(sizeLabel(r, t, f))} <span class=\"f7c-res__unit\">mm<\/span> <span class=\"f7c-badge is-muted\">${escapeText(t('type.rect'))}<\/span><\/p>\n<dl class=\"f7c-kpis\">\n${kpi(t('res.velocity'), f.v(r.velocity), 'm\/s', r.limits.velocity, t, f)}\n${kpi(t('res.pressureGradient'), f.pg(r.pressureGradient), 'Pa\/m', r.limits.pressureGradient, t, f)}\n${m.pressureGradientChange == null ? '' : kpi(t('subst.minPg'), pct(m.pressureGradientChange, f), '', null, t, f)}\n<\/dl>\n${verdict}\n<p class=\"f7c-note f7c-note--small\">${escapeText(t('subst.minInfo', { lims: limitsText(view, f) }))}<\/p>\n<\/section>`;\n}\n\nfunction renderSubst(view, ctx) {\n  const { t } = ctx;\n  const f = fmtFactory(ctx.locale);\n  const r = view.result;\n  const from = r.from;\n  const toRect = r.direction === 'round-to-rect';\n  const hasFlow = Boolean(from.eval);\n  const fromInfo = [\n    `<p class=\"f7c-note\"><b>${escapeText(t('subst.from'))}:<\/b> ${escapeText(substFromLine(from, t, f))}${from.shape === 'rect' ? ` \u00b7 ${escapeText(t('subst.de', { d: f.mm(r.equivalentDiameterMm) }))}` : ''}<\/p>`,\n    hasFlow ? `<p class=\"f7c-note\">${escapeText(t('subst.fromFlow', { v: f.v(from.eval.velocity), p: f.pg(from.eval.pressureGradient) }))}<\/p>` : `<p class=\"f7c-note f7c-note--small\">${escapeText(t('subst.noFlow'))}<\/p>`,\n  ].join('');\n  if (r.none && toRect) {\n    return `<div class=\"f7c-res is-none\"><p class=\"f7c-alert\">${escapeText(t('subst.noneRect'))}<\/p>${fromInfo}${renderSmallestAllowed(view, ctx)}${footer(view, ctx, false)}<\/div>`;\n  }\n  const best = r.options[0];\n  const roleName = { equivalent: t('subst.role.equivalent'), smaller: t('subst.role.smaller'), largest: t('role.largest') };\n  const rows = r.options.map((o, i) => ({ ...o, _role: o.role ? roleName[o.role] : '', _cls: i === 0 ? 'is-rec' : '' }));\n  const cols = [\n    { label: t('col.size'), cell: (o) => `${escapeText(sizeLabel(o, t, f))}${o._role ? `<span class=\"f7c-role\">${escapeText(o._role)}<\/span>` : ''}` },\n  ];\n  if (toRect) cols.push({ label: t('col.de'), cell: (o) => f.mm(o.equivalentDiameterMm) });\n  cols.push({ label: t('subst.colArea'), cell: (o) => pct(o.areaChange, f) });\n  if (hasFlow) {\n    cols.push({ label: t('col.velocity'), cell: (o) => (o.eval ? `${f.v(o.eval.velocity)} <span class=\"f7c-role\">${pct(o.eval.velocityChange, f)}<\/span>` : '\u2013') });\n    cols.push({ label: t('col.pg'), cell: (o) => (o.eval ? `${f.pg(o.eval.pressureGradient)} <span class=\"f7c-role\">${pct(o.eval.pressureGradientChange, f)}<\/span>` : '\u2013') });\n  }\n  const warn = [];\n  if (toRect && rows.some((o) => o.aspectRatio > 4)) warn.push('WARN_ASPECT_RATIO');\n  if (toRect && rows.some((o) => o.aspectRatio > 10)) warn.push('WARN_ASPECT_METHOD_LIMIT');\n  return `<div class=\"f7c-res${r.none ? ' is-warn' : ''}\">\n${r.none ? `<p class=\"f7c-alert\">${escapeText(t('subst.noneRound'))}<\/p>` : ''}\n<p class=\"f7c-res__label\">${escapeText(t(toRect ? 'subst.bestRect' : 'subst.bestRound'))}<\/p>\n<p class=\"f7c-res__size\">${escapeText(sizeLabel(best, t, f))}${toRect ? ' <span class=\"f7c-res__unit\">mm<\/span>' : ''} <span class=\"f7c-badge\">${escapeText(t(toRect ? 'type.rect' : 'type.standard'))}<\/span><\/p>\n${fromInfo}\n${r.constrained ? `<p class=\"f7c-note\">${escapeText(t('subst.constrained'))}<\/p>` : ''}\n${warningsHtml(warn, t)}\n<h3 class=\"f7c-h3\">${escapeText(t(toRect ? 'subst.listRect' : 'subst.listRound'))}<\/h3>\n${table(rows, cols, t)}\n<p class=\"f7c-note f7c-note--small\">${escapeText(t('subst.method'))}<\/p>\n${renderSmallestAllowed(view, ctx)}\n${actions(view, ctx, toRect ? 'rect' : 'round', toRect ? 'ctaRect' : 'ctaRound')}\n${footer(view, ctx, !toRect)}\n<\/div>`;\n}\n\n\/\/ Kiirtulemus sisendite all (telefon): m\u00f5\u00f5t, \u00f5hukiirus, r\u00f5hukadu ja vastavus \u00fches reas.\nfunction renderQuick(view, ctx) {\n  const { t } = ctx;\n  const f = fmtFactory(ctx.locale);\n  if (!view.result) return '';\n  if (view.mode === 'subst') {\n    const o = view.result.options && view.result.options[0];\n    if (!o) return '';\n    const lbl = `\u2192 ${sizeLabel(o, t, f)}${o.shape === 'rect' ? ' mm' : ''}`;\n    const ev = o.eval ? `<span><b>${f.v(o.eval.velocity)}<\/b> m\/s<\/span><span><b>${f.pg(o.eval.pressureGradient)}<\/b> Pa\/m<\/span>` : '';\n    return `<b class=\"f7c-quick__size\">${escapeText(lbl)}<\/b>${ev}<span class=\"f7c-quick__go\">${escapeText(t('quick.more'))}<\/span>`;\n  }\n  let row = null;\n  if (view.mode === 'round' || view.mode === 'rect') row = view.result.recommended;\n  else if (view.mode === 'check') row = view.checkSuggest ? view.result.recommended : view.result;\n  if (!row) {\n    if (view.status === 'NO_STANDARD_SIZE') return `<span class=\"f7c-quick__fail\">\u2715 ${escapeText(t('quick.noStandard'))}<\/span>`;\n    return '';\n  }\n  const size = view.mode === 'check' && !view.checkSuggest ? '' : `<b class=\"f7c-quick__size\">${escapeText(sizeLabel(row, t, f))}${row.shape === 'rect' ? ' mm' : ''}<\/b>`;\n  const hasLim = row.limits && Object.keys(row.limits).length;\n  const verdict = hasLim\n    ? (row.fits && row.fitsSpace !== false\n      ? `<span class=\"f7c-quick__ok\">\u2713 ${escapeText(t('ok'))}<\/span>`\n      : `<span class=\"f7c-quick__fail\">\u2715 ${escapeText(t('fail'))}<\/span>`)\n    : '';\n  return `${size}<span><b>${f.v(row.velocity)}<\/b> m\/s<\/span><span><b>${f.pg(row.pressureGradient)}<\/b> Pa\/m<\/span>${verdict}<span class=\"f7c-quick__go\">${escapeText(t('quick.more'))}<\/span>`;\n}\n\nfunction renderResult(view, ctx) {\n  if (view.status === 'INPUT_ERROR') return `<div class=\"f7c-hint\"><p>${escapeText(ctx.t('st.INPUT_ERROR'))}<\/p><\/div>`;\n  if (['NEED_FLOW', 'NEED_LIMIT', 'NEED_FIXED', 'NEED_DIMENSIONS', 'NEED_SUBST'].includes(view.status)) return hint(view, ctx.t);\n  if (view.mode === 'round') return renderRound(view, ctx);\n  if (view.mode === 'rect') return renderRect(view, ctx);\n  if (view.mode === 'check' && view.checkSuggest === 'round') return renderRound(view, ctx);\n  if (view.mode === 'check' && view.checkSuggest === 'rect') return renderRect(view, ctx);\n  if (view.mode === 'check') return renderCheck(view, ctx);\n  return renderSubst(view, ctx);\n}\n\n\/\/ Asendus: sisestatud m\u00f5\u00f5t l\u00fcliti nuppudel (omanik 2026-11-24), et oleks n\u00e4ha, mis on v\u00f5rdluse alus.\nfunction substShapeLabels(state, locale = 'et-EE') {\n  const val = (raw) => {\n    const p = parseNumberInput(raw);\n    return p.status === 'ok' && p.value > 0 ? formatNumber(p.value, { decimals: 1, locale }) : null;\n  };\n  const d = val(state.substDiameter);\n  const w = val(state.substWidth);\n  const h = val(state.substHeight);\n  return {\n    round: d ? `\u00d8 ${d}` : '',\n    rect: w && h ? `${w} \u00d7 ${h}` : '',\n  };\n}\n\n\/\/ ---------- Kopeeritav tekst ----------\nfunction buildCopyText(view, ctx) {\n  const { t } = ctx;\n  const f = fmtFactory(ctx.locale);\n  if (!view.result || !['OK', 'EXCEEDS_SPACE', 'NO_STANDARD_SIZE'].includes(view.status)) return '';\n  const L = [];\n  const q = `${f.flow(view.flowValue)} ${FLOW_UNITS[view.flowUnit].symbol}`;\n  const lims = [];\n  if (view.limits.maxVelocity != null) lims.push(`v \u2264 ${f.lim(view.limits.maxVelocity)} m\/s`);\n  if (view.limits.maxPressureGradient != null) lims.push(`\u0394p\/L \u2264 ${f.lim(view.limits.maxPressureGradient)} Pa\/m`);\n  L.push(t('copy.title') + ' \u2013 ' + t('mode.' + view.mode));\n  if (view.mode !== 'subst' || view.flowValue != null) L.push(`${t('in.flow')}: ${q}${lims.length && view.mode !== 'subst' ? ' \u00b7 ' + lims.join(', ') : ''}`);\n  const line = (r, prefix) => `${prefix}${sizeLabel(r, t, f)}${r.shape === 'rect' ? ' mm' : ''}: v ${f.v(r.velocity)} m\/s, ${f.pg(r.pressureGradient)} Pa\/m${r.limits && Object.keys(r.limits).length ? ' \u2013 ' + t(r.fits ? 'ok' : 'fail') : ''}`;\n  const r = view.result;\n  const kind = view.mode === 'check' && view.checkSuggest ? view.checkSuggest : view.mode;\n  if (kind === 'round') {\n    if (r.recommended) {\n      L.push(`${t('res.recommended')}: ${sizeLabel(r.recommended, t, f)}`);\n      r.rows.forEach((x) => L.push(line(x, `  ${t('role.' + x.role)}: `)));\n    } else L.push(t('st.NO_STANDARD_SIZE'));\n    L.push(t('res.dmin', { d: f.mm(r.requiredDiameter * 1000), g: t(r.governing === 'pressure' ? 'gov.pressure' : 'gov.velocity') }));\n  } else if (kind === 'rect') {\n    L.push(`${t(r.given ? 'res.givenRect' : r.suggested ? 'res.suggestedRect' : 'res.recommendedRect')}: ${sizeLabel(r.recommended, t, f)} mm`);\n    L.push(line(r.recommended, '  '));\n    L.push(`  Dh ${f.mm(r.recommended.hydraulicDiameter * 1000)} mm, De ${f.mm(r.recommended.equivalentDiameter * 1000)} mm, ${t('res.aspect')} ${f.ar(r.recommended.aspectRatio)} : 1`);\n    r.alternatives.forEach((x) => L.push(line(x, `  ${t('res.alternatives')}: `)));\n  } else if (kind === 'check') {\n    L.push(line(r, ''));\n    if (view.length != null) L.push(`${t('res.pressureDrop', { L: formatNumber(view.length, { decimals: 2, locale: ctx.locale }) })}: ${f.pa(r.pressureDrop)} Pa`);\n  } else {\n    L.push(`${t('subst.from')}: ${substFromLine(r.from, t, f)}${r.from.shape === 'rect' ? ` (${t('subst.de', { d: f.mm(r.equivalentDiameterMm) })})` : ''}`);\n    L.push(t(r.direction === 'round-to-rect' ? 'subst.listRect' : 'subst.listRound') + ':');\n    r.options.forEach((o) => L.push(`  ${sizeLabel(o, t, f)}${o.shape === 'rect' ? ' mm' : ''}${o.role ? ' (' + t(o.role === 'largest' ? 'role.largest' : 'subst.role.' + o.role) + ')' : ''}${o.eval ? `: v ${f.v(o.eval.velocity)} m\/s, ${f.pg(o.eval.pressureGradient)} Pa\/m` : ''}`));\n    L.push(t('subst.method'));\n    const m = view.smallestAllowed;\n    if (m && m.none) L.push(`${t('subst.minTitle')}: ${t('subst.minNone')}`);\n    else if (m) {\n      L.push(`${t('subst.minTitle')} (${limitsText(view, f)}): ${sizeLabel(m.row, t, f)} mm: v ${f.v(m.row.velocity)} m\/s, ${f.pg(m.row.pressureGradient)} Pa\/m${m.pressureGradientChange != null ? `, ${t('subst.minPg').toLowerCase()} ${pct(m.pressureGradientChange, f)}` : ''}`);\n      if (m.notEquivalent) L.push(`  ${t('subst.minNotEq', { p: pct(m.pressureGradientChange, f).replace(\/^\\+\/, '') })}`);\n    }\n  }\n  L.push(t('assumptions', { e: formatNumber(view.roughness * 1000, { decimals: 3, locale: ctx.locale }) }));\n  return L.join('\\n');\n}\nreturn { makeTranslator, sizeLabel, renderQuick, renderResult, substShapeLabels, buildCopyText };\n})();\n\n\/\/ --- duct-calculator\/ui\/ui.js\n__m[\"duct-calculator\/ui\/ui.js\"] = (function () {\n\/\/ \u00d5hukanalite kalkulaatori DOM-sidumine. Arvutus ja HTML tulevad moodulitest state.js ja render.js.\r\n\/\/ Sisendv\u00e4ljad on serveris renderdatud (fookus ei kao); tulemus ja kiirtulemus renderdatakse uuesti.\r\n\r\nconst { createDuctState, computeDuct, serializeDuctState, deserializeDuctState, DUCT_EXAMPLE_LIMITS } = __m[\"duct-calculator\/ui\/state.js\"];\r\nconst { renderResult, renderQuick, buildCopyText, makeTranslator, substShapeLabels } = __m[\"duct-calculator\/ui\/render.js\"];\r\nconst { copyText } = __m[\"shared\/ui\/clipboard.js\"];\r\n\r\nconst writeClipboard = copyText;\r\n\r\nfunction readHash() {\r\n  try { return window.location.hash || ''; } catch (e) { return ''; }\r\n}\r\n\r\nfunction writeHash(h) {\r\n  try {\r\n    const url = window.location.pathname + window.location.search + (h ? '#' + h : '');\r\n    if (url !== window.location.pathname + window.location.search + window.location.hash) {\r\n      window.history.replaceState(null, '', url);\r\n    }\r\n  } catch (e) { \/* ignoreeri *\/ }\r\n}\r\n\r\nfunction mountDuctCalculator(root, i18n, data) {\r\n  if (root.dataset.f7cMounted) return null;\r\n  root.dataset.f7cMounted = '1';\r\n  const t = makeTranslator(i18n);\r\n  const locale = i18n._locale || 'et-EE';\r\n  const sizes = (data && data.roundSizesMm) || [];\r\n  const ctx = { t, locale, links: (data && data.links) || {} };\r\n  const state = Object.assign(createDuctState(), deserializeDuctState(readHash()));\r\n  const results = root.querySelector('[data-results]');\r\n  const quick = root.querySelector('[data-quick]');\r\n  let lastView = null;\r\n\r\n  \/\/ Algv\u00e4\u00e4rtused v\u00e4ljadesse (r\u00e4sist).\r\n  root.querySelectorAll('[data-field]').forEach((el) => {\r\n    const key = el.dataset.field;\r\n    if (el.type === 'radio') el.checked = state[key] === el.value;\r\n    else if (el.type === 'checkbox') el.checked = Boolean(state[key]);\r\n    else el.value = state[key];\r\n  });\r\n\r\n  function syncVisibility() {\r\n    root.querySelectorAll('[data-show]').forEach((el) => {\r\n      el.hidden = !el.dataset.show.split(' ').includes(state.mode);\r\n    });\r\n    root.querySelectorAll('[data-show-shape]').forEach((el) => {\r\n      el.hidden = el.dataset.showShape !== state.checkShape;\r\n    });\r\n    root.querySelectorAll('[data-show-sshape]').forEach((el) => {\r\n      el.hidden = el.dataset.showSshape !== state.substShape;\r\n    });\r\n    root.querySelectorAll('[data-show-rough]').forEach((el) => {\r\n      el.hidden = el.dataset.showRough !== state.roughnessMode;\r\n    });\r\n    root.querySelectorAll('[role=\"tab\"][data-mode]').forEach((b) => {\r\n      const on = b.dataset.mode === state.mode;\r\n      b.setAttribute('aria-selected', on ? 'true' : 'false');\r\n      b.tabIndex = on ? 0 : -1;\r\n    });\r\n  }\r\n\r\n  function renderErrors(errors) {\r\n    root.querySelectorAll('[data-err]').forEach((el) => {\r\n      const code = errors[el.dataset.err];\r\n      el.textContent = code ? t('err.' + code) : '';\r\n      const input = root.querySelector(`[data-field=\"${el.dataset.err}\"]`);\r\n      if (input) {\r\n        if (code) input.setAttribute('aria-invalid', 'true');\r\n        else input.removeAttribute('aria-invalid');\r\n      }\r\n    });\r\n  }\r\n\r\n  function update() {\r\n    syncVisibility();\r\n    const view = computeDuct(state, sizes);\r\n    lastView = view;\r\n    renderErrors(view.errors);\r\n    results.innerHTML = renderResult(view, ctx);\r\n    if (quick) {\r\n      const q = renderQuick(view, ctx);\r\n      quick.innerHTML = q;\r\n      quick.hidden = !q;\r\n    }\r\n    syncSizePickers();\r\n    syncRectPlaceholders(view);\r\n    syncSubstLabels();\r\n    writeHash(serializeDuctState(state));\r\n  }\r\n\r\n  \/\/ F7 standardm\u00f5\u00f5du valik: valik t\u00e4idab v\u00e4lja; k\u00e4sitsi sisestatud standardm\u00f5\u00f5t kuvatakse valikus.\r\n  function syncSizePickers() {\r\n    root.querySelectorAll('[data-size-pick]').forEach((sel) => {\r\n      const raw = String(state[sel.dataset.sizePick] || '').replace(',', '.').trim();\r\n      const match = raw === '' ? undefined : sizes.find((s) => Number(raw) === s);\r\n      const want = match ? String(match) : (raw ? 'other' : '');\r\n      if (sel.value !== want) sel.value = want;\r\n    });\r\n  }\r\n\r\n  \/\/ Kui m\u00f5\u00f5t arvutatakse (kandiline \/ kontroll ilma m\u00f5\u00f5duta), n\u00e4idatakse seda t\u00fchja v\u00e4lja vihjetekstis.\r\n  function syncRectPlaceholders(view) {\r\n    const inCheck = view.mode === 'check';\r\n    const pairs = inCheck\r\n      ? [['checkWidth', 'widthMm'], ['checkHeight', 'heightMm'], ['checkDiameter', 'diameterMm']]\r\n      : [['rectWidth', 'widthMm'], ['rectHeight', 'heightMm']];\r\n    const active = view.result && !view.result.given && (view.mode === 'rect' || (inCheck && view.checkSuggest));\r\n    for (const [field, key] of pairs) {\r\n      const el = root.querySelector(`[data-field=\"${field}\"]`);\r\n      if (!el) continue;\r\n      const rec = active && view.result.recommended && view.result.recommended[key] != null ? view.result.recommended : null;\r\n      const ph = rec && el.value.trim() === ''\r\n        ? t('in.rectComputed', { v: new Intl.NumberFormat(locale, { maximumFractionDigits: 0 }).format(rec[key]) })\r\n        : el.dataset.ph;\r\n      if (ph != null && el.placeholder !== ph) el.placeholder = ph;\r\n    }\r\n  }\r\n\r\n  function syncSubstLabels() {\r\n    const labels = substShapeLabels(state, locale);\r\n    root.querySelectorAll('[data-sslabel]').forEach((el) => {\r\n      const txt = labels[el.dataset.sslabel] || '';\r\n      if (el.textContent !== txt) el.textContent = txt;\r\n    });\r\n  }\r\n\r\n  function setStatus(msg) {\r\n    const el = results.querySelector('[data-copy-status]');\r\n    if (el) el.textContent = msg;\r\n  }\r\n\r\n  \/\/ Sisendv\u00e4ljad\r\n  root.addEventListener('input', (e) => {\r\n    const el = e.target;\r\n    if (el.dataset.field && el.type !== 'radio' && el.type !== 'checkbox') {\r\n      state[el.dataset.field] = el.value;\r\n      update();\r\n    }\r\n  });\r\n  root.addEventListener('change', (e) => {\r\n    const el = e.target;\r\n    if (el.dataset.sizePick) {\r\n      const input = root.querySelector(`[data-field=\"${el.dataset.sizePick}\"]`);\r\n      if (el.value && el.value !== 'other') {\r\n        state[el.dataset.sizePick] = el.value;\r\n        if (input) input.value = el.value;\r\n        update();\r\n      } else if (el.value === 'other' && input) {\r\n        input.focus();\r\n      }\r\n      return;\r\n    }\r\n    if (el.dataset.field) {\r\n      if (el.type === 'checkbox') state[el.dataset.field] = el.checked;\r\n      else if (el.type === 'radio') { if (el.checked) state[el.dataset.field] = el.value; }\r\n      else state[el.dataset.field] = el.value;\r\n      update();\r\n    }\r\n  });\r\n\r\n  \/\/ Vahelehed (kl\u00f5ps + nooleklahvid)\r\n  const tabs = Array.from(root.querySelectorAll('[role=\"tab\"][data-mode]'));\r\n  tabs.forEach((b, i) => {\r\n    b.addEventListener('click', () => { state.mode = b.dataset.mode; update(); });\r\n    b.addEventListener('keydown', (e) => {\r\n      if (e.key !== 'ArrowRight' && e.key !== 'ArrowLeft') return;\r\n      const next = tabs[(i + (e.key === 'ArrowRight' ? 1 : tabs.length - 1)) % tabs.length];\r\n      state.mode = next.dataset.mode;\r\n      update();\r\n      next.focus();\r\n    });\r\n  });\r\n\r\n  \/\/ Nupud (delegeeritud)\r\n  root.addEventListener('click', async (e) => {\r\n    const btn = e.target.closest('[data-action]');\r\n    if (!btn || !root.contains(btn)) return;\r\n    const action = btn.dataset.action;\r\n    if (action === 'example') {\r\n      for (const [k, v] of Object.entries(DUCT_EXAMPLE_LIMITS)) {\r\n        state[k] = v;\r\n        const el = root.querySelector(`[data-field=\"${k}\"]`);\r\n        if (el) el.value = v;\r\n      }\r\n      update();\r\n    } else if (action === 'to-results') {\r\n      results.scrollIntoView({ behavior: 'smooth', block: 'start' });\r\n    } else if (action === 'copy') {\r\n      try { await writeClipboard(buildCopyText(lastView, ctx)); setStatus(t('btn.copied')); } catch (err) { setStatus(t('btn.copyFailed')); }\r\n    } else if (action === 'link') {\r\n      try { await writeClipboard(window.location.href); setStatus(t('btn.linkCopied')); } catch (err) { setStatus(t('btn.copyFailed')); }\r\n    }\r\n  });\r\n\r\n  root.querySelector('form')?.addEventListener('submit', (e) => e.preventDefault());\r\n\r\n  \/\/ Mobiiliklaviatuur: \u201eJ\u00e4rgmine\u201c (enterkeyhint=next) viib j\u00e4rgmisele n\u00e4htavale tekstiv\u00e4ljale;\r\n  \/\/ \u201eValmis\u201c sulgeb klaviatuuri, et tulemus j\u00e4\u00e4ks n\u00e4htavale.\r\n  root.addEventListener('keydown', (e) => {\r\n    const el = e.target;\r\n    if (e.key !== 'Enter' || el.tagName !== 'INPUT' || el.type !== 'text') return;\r\n    e.preventDefault();\r\n    const fields = Array.from(root.querySelectorAll('.f7c-duct__inputs input[type=\"text\"]')).filter((x) => x.offsetParent !== null);\r\n    const next = fields[fields.indexOf(el) + 1];\r\n    if (next && el.getAttribute('enterkeyhint') === 'next') next.focus();\r\n    else el.blur();\r\n  });\r\n  update();\r\n  return { state, update };\r\n}\r\n\r\nfunction mountAll(i18n, data) {\r\n  document.querySelectorAll('[data-f7c=\"duct-calculator\"]').forEach((el) => mountDuctCalculator(el, i18n, data));\r\n}\nreturn { mountDuctCalculator, mountAll };\n})();\n\nconst F7C_I18N = {\"_lang\":\"et\",\"_locale\":\"et-EE\",\"_status\":\"draft\",\"tabs.label\":\"Mode\",\"mode.round\":\"Circular duct\",\"mode.rect\":\"Rectangular duct\",\"mode.check\":\"Check duct \u00d8\",\"mode.subst\":\"Replacement\",\"in.flow\":\"Air volume\",\"in.flowPh\":\"e.g. 1200\",\"in.flowUnit\":\"Air volume unit\",\"in.rectSize\":\"Duct dimensions\",\"in.rectWidthPh\":\"e.g. 600\",\"in.rectHeightPh\":\"e.g. 300\",\"in.rectHint\":\"Enter one side \u2013 the calculator finds the other. Enter both to check a specific size.\",\"in.rectComputed\":\"= {v}\",\"in.shape\":\"Duct shape\",\"shape.round\":\"Circular\",\"shape.rect\":\"Rectangular\",\"in.diameter\":\"Diameter\",\"in.diameterPh\":\"e.g. 315\",\"in.f7size\":\"F7 standard size\",\"in.f7sizePick\":\"Choose \u00d8\",\"in.f7sizeOther\":\"Other size\",\"in.diameterOther\":\"or diameter\",\"in.width\":\"Width\",\"in.height\":\"Height\",\"in.length\":\"Duct length (optional)\",\"in.limits\":\"Limit values\",\"in.optional\":\"(optional)\",\"in.limitsNote\":\"A higher air velocity means a smaller duct, but more noise and pressure drop. 5 m\/s is a common starting point for main ducts. Near living spaces, choose a lower velocity. The exact value is given by the design.\",\"in.maxVelocity\":\"Air velocity up to\",\"in.maxPressureGradient\":\"Pressure drop up to\",\"in.vPh\":\"e.g. 5\",\"in.dpPh\":\"e.g. 1.0\",\"in.example\":\"Restore defaults: 5 m\/s and 1.0 Pa\/m\",\"in.advanced\":\"Advanced settings\",\"in.material\":\"Material\",\"material.galv\":\"galvanised sheet steel\",\"in.roughness\":\"Absolute roughness \u03b5\",\"in.roughnessNote\":\"Neither value has been confirmed by measurements of F7 spiral ducts. 0.15 mm gives about 2\u20136% higher pressure drop at normal velocities.\",\"rough.default\":\"default calculation assumption for a galvanised steel duct\",\"rough.conservative\":\"more conservative assumption\",\"rough.custom\":\"Own value\",\"rough.customLabel\":\"Absolute roughness \u03b5\",\"rough.customPh\":\"e.g. 0.05\",\"in.maxWidth\":\"Maximum width\",\"in.maxHeight\":\"Maximum height\",\"in.spaceNote\":\"Space limit on site (optional). This is not an F7 production limit.\",\"in.free\":\"Free size \u2013 do not round to 50 mm\",\"in.airNote\":\"The calculation assumes dry air at 20 \u00b0C and a pressure of 101.3 kPa.\",\"res.aria\":\"Calculation result\",\"st.NEED_FLOW\":\"Enter the air volume.\",\"st.NEED_LIMIT\":\"Enter at least one limit value: maximum air velocity or maximum friction pressure drop. The calculator does not set design standards.\",\"st.NEED_FIXED\":\"Enter the duct width or height.\",\"st.NEED_DIMENSIONS\":\"Enter the duct dimensions.\",\"st.NEED_SUBST\":\"Choose the duct in the design: circular (\u00d8) or rectangular (width \u00d7 height).\",\"st.INPUT_ERROR\":\"Correct the marked fields.\",\"st.NO_STANDARD_SIZE\":\"No F7 standard diameter (up to \u00d81600) meets the limit values. Consider splitting the air volume between several ducts or a rectangular duct.\",\"st.EXCEEDS_SPACE\":\"The calculated size does not fit the given space limit. Increase the given side or relax the limit values.\",\"err.NEGATIVE\":\"The value cannot be negative.\",\"err.INVALID\":\"Enter a number, for example 315 or 2.5.\",\"err.MIXED_SEPARATORS\":\"Use one decimal separator: a comma or a point.\",\"err.TOO_LARGE\":\"The number is too large.\",\"err.NOT_POSITIVE\":\"The value must be greater than 0.\",\"err.OUT_OF_RANGE\":\"The value is outside the allowed range.\",\"err.REQUIRED\":\"Enter a value or choose one of the assumptions.\",\"ok\":\"OK\",\"fail\":\"exceeds\",\"limitOf\":\"limit {x}\",\"warn.WARN_LAMINAR\":\"Very low velocity: the flow is laminar. The result is indicative.\",\"warn.WARN_TRANSITIONAL\":\"The flow regime is between laminar and turbulent (Re 2300\u20134000). The pressure drop has been calculated conservatively.\",\"warn.WARN_RELATIVE_ROUGHNESS_HIGH\":\"The relative roughness is very high (\u03b5\/D over 0.05) \u2013 outside the usual range of the friction factor formula.\",\"warn.WARN_ASPECT_RATIO\":\"High aspect ratio (over 4 : 1). For the same air volume, the duct surface area and pressure drop are larger.\",\"warn.WARN_ASPECT_METHOD_LIMIT\":\"An aspect ratio over 10 : 1 is outside the sufficiently validated range of the calculation method. The result is less certain.\",\"type.standard\":\"F7 standard size\",\"type.intermediate\":\"Intermediate size \u2013 not an F7 standard size\",\"type.rect\":\"FS Rect \u2013 made to measure\",\"type.free\":\"Free size\",\"col.size\":\"Size\",\"col.velocity\":\"Air velocity, m\/s\",\"col.pg\":\"Pressure drop, Pa\/m\",\"col.aspect\":\"Aspect ratio\",\"col.area\":\"Cross-section, m\u00b2\",\"col.dh\":\"Dh, mm\",\"col.de\":\"De, mm\",\"col.status\":\"Compliance\",\"btn.copy\":\"Copy result\",\"btn.link\":\"Copy link\",\"btn.copied\":\"Result copied.\",\"btn.linkCopied\":\"Link copied.\",\"btn.copyFailed\":\"Copying failed. Select the text and copy it manually.\",\"btn.cta\":\"Request a quote\",\"btn.productRound\":\"View spiral duct \u2192\",\"btn.productRect\":\"View FS Rect ductwork \u2192\",\"assumptions\":\"Air 20 \u00b0C, 101.3 kPa \u00b7 straight duct, no local resistances \u00b7 \u03b5 {e} mm\",\"assumptions.default\":\"(default calculation assumption)\",\"assumptions.conservative\":\"(conservative assumption)\",\"assumptions.custom\":\"(user value)\",\"res.stock\":\"F7 will confirm availability and delivery time.\",\"res.disclaimer\":\"The calculation gives the friction pressure drop of a straight duct. Local resistances (bends, transitions, branches) and system balancing are not taken into account. The result does not replace design.\",\"gov.pressure\":\"pressure drop\",\"gov.velocity\":\"air velocity\",\"res.dmin\":\"Calculated minimum diameter: {d} mm (determined by {g}).\",\"role.largest\":\"largest F7 standard size\",\"role.smaller\":\"previous smaller\",\"role.recommended\":\"recommended\",\"role.larger\":\"next larger\",\"res.recommended\":\"Recommended F7 standard size\",\"res.recommendedRect\":\"Recommended size (width \u00d7 height)\",\"res.givenRect\":\"Entered size (width \u00d7 height)\",\"res.suggestedRect\":\"Recommended size (width \u00d7 height)\",\"res.suggestedHint\":\"If the width or height is given, enter it \u2013 the calculator calculates the other side or checks both.\",\"res.velocity\":\"Air velocity\",\"res.pressureGradient\":\"Friction pressure drop\",\"res.smallest\":\"\u00d880 is the smallest F7 standard size.\",\"res.compareTitle\":\"Comparison with neighbouring sizes\",\"res.alternatives\":\"Alternatives\",\"res.alternativesGiven\":\"Suitable sizes (meeting the limit values)\",\"res.freeRect\":\"Calculated free size: {s} mm.\",\"res.area\":\"Cross-section\",\"res.reynolds\":\"Reynolds number\",\"regime.laminar\":\"laminar\",\"regime.transitional\":\"transition\",\"regime.turbulent\":\"turbulent\",\"res.dh\":\"Hydraulic diameter Dh\",\"res.de\":\"Equivalent diameter De\",\"res.aspect\":\"Aspect ratio\",\"res.dhdeInfo\":\"Dh = 2ab\/(a+b) is used in the pressure drop calculation together with the actual velocity in the duct. De is the diameter of a circular duct with the same friction pressure drop at the same air volume (Huebscher).\",\"res.checked\":\"Checked duct\",\"res.checkRoundHint\":\"If the design specifies the diameter, choose it above \u2013 the calculator checks exactly that duct.\",\"res.pressureDrop\":\"Pressure drop, {L} m of duct\",\"copy.title\":\"F7 air duct calculator\",\"quick.more\":\"View \u2192\",\"subst.inProject\":\"The design specifies\",\"subst.inRound\":\"Circular duct\",\"subst.inRect\":\"Rectangular duct\",\"subst.maxHeight\":\"Maximum height (e.g. under the ceiling, optional)\",\"subst.maxHeightPh\":\"e.g. 250\",\"subst.flowNote\":\"The air volume is optional: the replacement depends only on the dimensions. Enter the air volume to also see the air velocity and pressure drop.\",\"subst.from\":\"In the design\",\"subst.de\":\"equivalent diameter {d} mm\",\"subst.fromFlow\":\"Designed duct: {v} m\/s, {p} Pa\/m\",\"subst.noFlow\":\"Enter the air volume to see the air velocity and pressure drop.\",\"subst.bestRect\":\"Equivalent rectangular duct (width \u00d7 height)\",\"subst.bestRound\":\"Equivalent circular duct\",\"subst.listRect\":\"Equivalent rectangular sizes\",\"subst.listRound\":\"Choice of circular duct\",\"subst.role.equivalent\":\"equivalent \u2013 the pressure drop does not increase\",\"subst.role.smaller\":\"smaller \u2013 the pressure drop increases\",\"subst.colArea\":\"Cross-section vs design\",\"subst.constrained\":\"Because of the height limit, wider ducts are also suggested (aspect ratio over 4 : 1).\",\"subst.noneRect\":\"No equivalent rectangular duct (in 100 mm steps) was found within the given limits. Increase the allowed height.\",\"subst.noneRound\":\"No F7 standard diameter (up to \u00d81600) is equivalent. The largest standard size is shown.\",\"subst.method\":\"Equivalent = the same or lower friction pressure drop at the same air volume (equivalent diameter, Huebscher \/ ASHRAE; the same principle as in printed equivalence tables). Rectangular sizes in 100 mm steps.\",\"subst.minTitle\":\"Smallest duct meeting the limit values\",\"subst.minInfo\":\"For information: the same calculation as in the \\\"Rectangular duct\\\" view, with your limit values ({lims}). It is not in the list of equivalent replacements.\",\"subst.minPg\":\"Pressure drop vs design\",\"subst.minNotEq\":\"Not hydraulically equivalent: the pressure drop is {p} higher than for the designed circular duct.\",\"subst.minEq\":\"The pressure drop is not higher than for the designed circular duct.\",\"subst.minNone\":\"No rectangular duct (100 mm step, aspect ratio up to 2 : 1) matching your limit values was found.\",\"quick.aria\":\"Quick result. Open the full result.\",\"quick.noStandard\":\"No F7 standard size is suitable\",\"unitName.m3h\":\"cubic metres per hour\",\"unitName.ls\":\"litres per second\",\"unitName.m3s\":\"cubic metres per second\",\"unitName.lmin\":\"litres per minute\",\"unitName.cfm\":\"cubic feet per minute\",\"unitName.m3min\":\"cubic metres per minute\"};\nconst F7C_DATA = {\"roundSizesMm\":[80,100,125,160,200,250,315,400,500,630,800,1000,1250,1600],\"links\":{\"round\":\"\/en\/circular-ductwork\/spiral-duct\/\",\"rect\":\"\/en\/fs-rect-rectangular-ductwork\/\",\"ctaRound\":\"\/en\/circular-ductwork\/#hinnaparing\",\"ctaRect\":\"\/en\/fs-rect-rectangular-ductwork\/\"}};\nconst start = function () { __m[\"duct-calculator\/ui\/ui.js\"].mountAll(F7C_I18N, F7C_DATA); };\nif (document.readyState === 'loading') document.addEventListener('DOMContentLoaded', start); else start();\n})();\n<\/script>\n<\/div><\/div><\/div><\/div>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":2,"featured_media":0,"parent":5980,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"100-width.php","meta":{"inline_featured_image":false,"footnotes":""},"class_list":["post-6152","page","type-page","status-publish","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Air duct calculator: duct size | Factory Seven<\/title>\n<meta name=\"description\" content=\"Find the ventilation duct size by air volume, air velocity and friction pressure drop. Circular and rectangular ducts, checking and replacement.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/f7vent.ee\/en\/calculators\/air-duct-calculator\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Air duct calculator: duct size | Factory Seven\" \/>\n<meta property=\"og:description\" content=\"Find the ventilation duct size by air volume, air velocity and friction pressure drop. Circular and rectangular ducts, checking and replacement.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/f7vent.ee\/en\/calculators\/air-duct-calculator\/\" \/>\n<meta property=\"og:site_name\" content=\"Factory Seven\" \/>\n<meta property=\"article:modified_time\" content=\"2026-11-28T18:02:42+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/f7vent.ee\/wp-content\/uploads\/2026\/11\/f7-jagamispilt-vaikimisi.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"630\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"101 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/f7vent.ee\\\/en\\\/calculators\\\/air-duct-calculator\\\/\",\"url\":\"https:\\\/\\\/f7vent.ee\\\/en\\\/calculators\\\/air-duct-calculator\\\/\",\"name\":\"Air duct calculator: duct size | Factory Seven\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/f7vent.ee\\\/en\\\/#website\"},\"datePublished\":\"2026-11-28T17:58:09+00:00\",\"dateModified\":\"2026-11-28T18:02:42+00:00\",\"description\":\"Find the ventilation duct size by air volume, air velocity and friction pressure drop. Circular and rectangular ducts, checking and replacement.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/f7vent.ee\\\/en\\\/calculators\\\/air-duct-calculator\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/f7vent.ee\\\/en\\\/calculators\\\/air-duct-calculator\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/f7vent.ee\\\/en\\\/calculators\\\/air-duct-calculator\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/f7vent.ee\\\/en\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Calculators\",\"item\":\"https:\\\/\\\/f7vent.ee\\\/en\\\/calculators\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Air duct calculator\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/f7vent.ee\\\/en\\\/#website\",\"url\":\"https:\\\/\\\/f7vent.ee\\\/en\\\/\",\"name\":\"Factory Seven\",\"description\":\"Factory Seven \u2013 Eesti ventilatsioonitoodete tootja ja tarnija: kanalid, liitmikud, m\u00fcrasummutid, suitsueemalduskanalid, k\u00f6\u00f6gikubud ja eritellimuslahendused.\",\"publisher\":{\"@id\":\"https:\\\/\\\/f7vent.ee\\\/en\\\/#organization\"},\"alternateName\":\"F7\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/f7vent.ee\\\/en\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/f7vent.ee\\\/en\\\/#organization\",\"name\":\"Factory Seven\",\"alternateName\":\"F7\",\"url\":\"https:\\\/\\\/f7vent.ee\\\/en\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/f7vent.ee\\\/en\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/f7vent.ee\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/f7-logo-schema-600.png\",\"contentUrl\":\"https:\\\/\\\/f7vent.ee\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/f7-logo-schema-600.png\",\"width\":600,\"height\":600,\"caption\":\"Factory Seven\"},\"image\":{\"@id\":\"https:\\\/\\\/f7vent.ee\\\/en\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"legalName\":\"FACTORY SEVEN O\u00dc\",\"description\":\"Factory Seven on Eesti ventilatsioonitoodete tootja ja tarnija. Valmistame ja pakume ventilatsioonikanaleid, liitmikke, m\u00fcrasummuteid, suitsueemalduskanaleid, professionaalseid k\u00f6\u00f6gikubusid ning eritellimuslahendusi.\",\"telephone\":\"+372 5343 6697\",\"email\":\"tellimused@f7vent.ee\",\"address\":{\"@type\":\"PostalAddress\",\"streetAddress\":\"Tule tn 29\\\/1\",\"postalCode\":\"76505\",\"addressLocality\":\"Saue\",\"addressCountry\":\"EE\"},\"areaServed\":[{\"@type\":\"Country\",\"name\":\"Estonia\"},{\"@type\":\"Country\",\"name\":\"Finland\"}],\"vatID\":\"EE101698256\",\"identifier\":{\"@type\":\"PropertyValue\",\"propertyID\":\"Eesti \u00e4riregistri kood\",\"value\":\"12614569\"},\"foundingDate\":\"2014-02-17\",\"sameAs\":[\"https:\\\/\\\/ariregister.rik.ee\\\/est\\\/company\\\/12614569\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Air duct calculator: duct size | Factory Seven","description":"Find the ventilation duct size by air volume, air velocity and friction pressure drop. Circular and rectangular ducts, checking and replacement.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/f7vent.ee\/en\/calculators\/air-duct-calculator\/","og_locale":"en_US","og_type":"article","og_title":"Air duct calculator: duct size | Factory Seven","og_description":"Find the ventilation duct size by air volume, air velocity and friction pressure drop. Circular and rectangular ducts, checking and replacement.","og_url":"https:\/\/f7vent.ee\/en\/calculators\/air-duct-calculator\/","og_site_name":"Factory Seven","article_modified_time":"2026-11-28T18:02:42+00:00","og_image":[{"width":1200,"height":630,"url":"https:\/\/f7vent.ee\/wp-content\/uploads\/2026\/11\/f7-jagamispilt-vaikimisi.jpg","type":"image\/jpeg"}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"101 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/f7vent.ee\/en\/calculators\/air-duct-calculator\/","url":"https:\/\/f7vent.ee\/en\/calculators\/air-duct-calculator\/","name":"Air duct calculator: duct size | Factory Seven","isPartOf":{"@id":"https:\/\/f7vent.ee\/en\/#website"},"datePublished":"2026-11-28T17:58:09+00:00","dateModified":"2026-11-28T18:02:42+00:00","description":"Find the ventilation duct size by air volume, air velocity and friction pressure drop. Circular and rectangular ducts, checking and replacement.","breadcrumb":{"@id":"https:\/\/f7vent.ee\/en\/calculators\/air-duct-calculator\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/f7vent.ee\/en\/calculators\/air-duct-calculator\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/f7vent.ee\/en\/calculators\/air-duct-calculator\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/f7vent.ee\/en\/"},{"@type":"ListItem","position":2,"name":"Calculators","item":"https:\/\/f7vent.ee\/en\/calculators\/"},{"@type":"ListItem","position":3,"name":"Air duct calculator"}]},{"@type":"WebSite","@id":"https:\/\/f7vent.ee\/en\/#website","url":"https:\/\/f7vent.ee\/en\/","name":"Factory Seven","description":"Factory Seven \u2013 Eesti ventilatsioonitoodete tootja ja tarnija: kanalid, liitmikud, m\u00fcrasummutid, suitsueemalduskanalid, k\u00f6\u00f6gikubud ja eritellimuslahendused.","publisher":{"@id":"https:\/\/f7vent.ee\/en\/#organization"},"alternateName":"F7","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/f7vent.ee\/en\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/f7vent.ee\/en\/#organization","name":"Factory Seven","alternateName":"F7","url":"https:\/\/f7vent.ee\/en\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/f7vent.ee\/en\/#\/schema\/logo\/image\/","url":"https:\/\/f7vent.ee\/wp-content\/uploads\/2026\/11\/f7-logo-schema-600.png","contentUrl":"https:\/\/f7vent.ee\/wp-content\/uploads\/2026\/11\/f7-logo-schema-600.png","width":600,"height":600,"caption":"Factory Seven"},"image":{"@id":"https:\/\/f7vent.ee\/en\/#\/schema\/logo\/image\/"},"legalName":"FACTORY SEVEN O\u00dc","description":"Factory Seven on Eesti ventilatsioonitoodete tootja ja tarnija. Valmistame ja pakume ventilatsioonikanaleid, liitmikke, m\u00fcrasummuteid, suitsueemalduskanaleid, professionaalseid k\u00f6\u00f6gikubusid ning eritellimuslahendusi.","telephone":"+372 5343 6697","email":"tellimused@f7vent.ee","address":{"@type":"PostalAddress","streetAddress":"Tule tn 29\/1","postalCode":"76505","addressLocality":"Saue","addressCountry":"EE"},"areaServed":[{"@type":"Country","name":"Estonia"},{"@type":"Country","name":"Finland"}],"vatID":"EE101698256","identifier":{"@type":"PropertyValue","propertyID":"Eesti \u00e4riregistri kood","value":"12614569"},"foundingDate":"2014-02-17","sameAs":["https:\/\/ariregister.rik.ee\/est\/company\/12614569"]}]}},"_links":{"self":[{"href":"https:\/\/f7vent.ee\/en\/wp-json\/wp\/v2\/pages\/6152","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/f7vent.ee\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/f7vent.ee\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/f7vent.ee\/en\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/f7vent.ee\/en\/wp-json\/wp\/v2\/comments?post=6152"}],"version-history":[{"count":1,"href":"https:\/\/f7vent.ee\/en\/wp-json\/wp\/v2\/pages\/6152\/revisions"}],"predecessor-version":[{"id":6153,"href":"https:\/\/f7vent.ee\/en\/wp-json\/wp\/v2\/pages\/6152\/revisions\/6153"}],"up":[{"embeddable":true,"href":"https:\/\/f7vent.ee\/en\/wp-json\/wp\/v2\/pages\/5980"}],"wp:attachment":[{"href":"https:\/\/f7vent.ee\/en\/wp-json\/wp\/v2\/media?parent=6152"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}