# CalcPlant AI operation guide Revision: 2026-11-14 · browser bridge `FlowCanvasAPI.version === 1` · drawing `v: 2`. AI 조작 지침: 현재 도면을 보존하고, 사용자가 지정한 설계 조건으로 후보를 작성한 뒤 실제 계산 결과와 경고를 검토하세요. 예제의 가정값을 사용자 설계 조건으로 확정하지 마세요. This is a task reference for an assistant asked to use CalcPlant. The user's task and your client's permissions take precedence. Do not infer permission to publish, share, change an account or save to a project database from this guide. **Fastest path for building or reproducing a model.** Do not build a drawing by clicking palette items and inspectors one by one. Collect the equipment, lines (from → to), units and boundary conditions in a table first; write the whole drawing as one JSON (fields and stored units: `schema()` and the model reference); evaluate it with `calc(candidate)` and fix only what the errors, warnings, input checks or your reference values point to; then apply it once with `loadModel` (or once through File > Paste JSON in a UI-only client). Every node needs finite schematic `x`/`y`: place items left → right in flow order (about 280 units apart, branches stacked about 220 apart) so symbols do not overlap; ports may be omitted. Arrange the drawing only after the numbers agree. Compare results by `line_id`/`node_id`, not by screen position. ## 1. Quick start and capability detection 1. Open the site's root URL in a JavaScript-capable browser. Wait for the application to finish loading; deal with any initial beta notice through its normal controls. 2. Read this guide and [the model reference](ai-model-reference.md). The static start index is [llms.txt](llms.txt). If your browser tool cannot open plain-text files, the same three texts are on one HTML page: [ai.html](ai.html). 3. If your browser tool permits page-context JavaScript, inspect `window.FlowCanvasAPI`. Check for version 1 and the functions you will use: `getModel`, `loadModel`, `results`, and `calc` for side-effect-free evaluation (builds before 2026-11-04 lack it). Stop on an incompatible version rather than guessing a new contract. 4. If your tool supports only browser UI actions, use the workflow in section 5. Do not bypass your tool's execution restrictions to call an API. 5. Read the current drawing and preserve it before applying changes. Prefer a separate, disposable browser profile or work tab for a new design. A second ordinary tab can still share browser storage; it is not a fully isolated sandbox. ```js const api = window.FlowCanvasAPI; if (api?.version !== 1 || !['getModel', 'loadModel', 'results'].every(k => typeof api[k] === 'function')) { throw new Error('Supported CalcPlant browser bridge is not available'); } ({ model: api.getModel(), results: api.results() }); ``` `FlowCanvasAPI` is an in-page JavaScript bridge, not an HTTP calculation endpoint or an automatically installed MCP server. A web-fetch/search-only client can read these documents but cannot operate the live application without a suitable browser/integration tool. `/api/v1` is project-storage infrastructure, not a general calculation API. ## 2. Establish the design basis Before choosing sizes, distinguish user requirements, sourced properties and explicit assumptions. Record at least: - Equipment and connection topology; intended flow direction and service. - Fluid phase, temperature, density and viscosity; vapor pressure for pump suction review. - Required flow and its basis: actual or normal volume, mass flow, minimum/normal/maximum cases. - Source/destination operating pressures, atmospheric pressure, EL datum, liquid levels and applicable level cases. - Pipe material/roughness, size/schedule, actual internal diameter, length, fittings and equipment losses. - Pump efficiency, NPSHr and configured NPSH allowance; any available pump/vendor constraints. - User-specified acceptance criteria: velocity, pressure loss, available pressure, NPSH margin and other applicable constraints. Ask for information that materially determines the result. With the user's authorization, provisional assumptions may be used, but list them explicitly. Never silently substitute atmospheric pressure, zero loss, a default pipe size, example design pressure or a guessed NPSHr for missing design data. Do not claim minimum cost or an optimum without a stated objective and the required cost/constraint data. ## 3. Preserve state and apply candidates `schema()` returns the field guide for the drawing JSON (names, stored units such as kgf/cm², allowed values) generated from the running build; call it first when you need a field that the current drawing does not contain yet (e.g. `grades`, `mult`, tank `cont`, `relief`). `getModel()` returns a JSON-compatible copy of the current serialized drawing. Modify that copy, not internal references. An initial/legacy drawing may not yet contain every field that import normalization adds. **Evaluate candidates with `calc(candidate)` first.** It returns the same `{meta, lines, equipment}` snapshot as `results()` for the candidate (with `flare` / `relief` when the candidate has them), while the open drawing, its results, autosave, Undo history and DB item stay untouched; an invalid candidate throws the same error as `loadModel`. Use it for size alternatives and what-if checks, and change the drawing only when the user wants it changed — with `apply` / `review` for edits, `loadModel` for a new or replaced drawing. **Change part of an existing drawing with `diff` → `apply` (or `review` for the user), not `loadModel`.** `diff(candidate)` compares a full candidate (start from `getModel()`) with the open drawing and returns `{ base, candidate, changes, effects }`: `base` = the open drawing's fingerprint (same as `results().meta.modelFingerprint`); `changes[]` = `{ key, op 'set'|'add'|'remove', path, target { kind 'node'|'pipe'|'psv'|'model', id, label, type, field }, from, to }` — objects are compared key by key and arrays whose items all have a unique `id` (nodes, pipes, Relief PSVs …) item by item, any other array or value is one change; `key` = path segments URI-encoded and joined by `/` (e.g. `pipes/L2/d`, `relief/psvs/P/cases/blocked/MW`); values are in stored units; `effects[]` = `{ target, field, from, to }` result values that move (line `w_kgh`, `p_in`, `p_out`, `v_ms`, `dp`, equipment `results` fields, Relief governing case / load / area / orifice, `meta.ok`, error count), largest relative change first. `apply(candidate, { base, only })` applies every change, or only the listed `key`s, to the open drawing: it throws `code: 'base'` without a base, `'stale'` (with `current`) when the drawing changed since `diff`, `'unknown'` (with `keys`) for keys not in the candidate, and the `loadModel` validation error for an invalid result — in each case nothing changes. Applied changes are one ordinary edit: recalculated, autosaved, **one Undo step**, earlier Undo history kept, the DB item stays linked; it returns `{ applied: [keys], fingerprint }` (the new base). Diff again after any other edit. `review(candidate, { title })` opens a window for the user with every change ticked and the effect of the ticked set; it returns a Promise of `{ applied, fingerprint }` or `{ applied: [], cancelled: true }`. Use `review` when the user should decide; do not tick or click it for them. **`loadModel(candidate)` replaces the live drawing, recalculates, autosaves, resets Hydraulic Undo history and detaches the opened DB item. It is not a stateless preview.** Reimporting an original JSON also applies current normalization/migration and can add default fields; it is not a byte-for-byte rollback and does not restore Undo history or a DB association. Keep the untouched exported original, inspect the model differences/results after restoration, and do not conduct trial replacements on a production drawing. Do not rely only on an in-page variable: navigation/reload can remove it. The following snippets are intended to run in the application page context, if your client allows it. Start a session once on your authorized working sheet: ```js const api = window.FlowCanvasAPI; if (window.__calcplantAI) throw new Error('A design session already exists; retain its original snapshot'); window.__calcplantAI = { original: api.getModel(), expectedJSON: JSON.stringify(api.getModel()), epoch: window.FlowCanvasHistoryDB?.epoch?.() ?? null }; ``` Construct candidates from the current model or the [complete pump example](ai-example-pump-transfer.json). Use `JSON.parse(JSON.stringify(value))` for an independent JSON copy. Preserve unrelated and unknown fields, including `relief`, `layout`, `sb`, `operatingCases`, `grades`, `notes` and saved review settings. Check unique IDs, existing endpoint references and the units in the model reference. A structurally loadable model can still be physically incomplete. Before **each** replacement, check that the sheet has not changed since your last operation. Here `candidate` must be the independent drawing object you prepared, not text or a filename: ```js const api = window.FlowCanvasAPI, session = window.__calcplantAI; if (!session) throw new Error('Preserve the original drawing first'); const epoch = window.FlowCanvasHistoryDB?.epoch?.() ?? null; if (epoch !== session.epoch || JSON.stringify(api.getModel()) !== session.expectedJSON) { throw new Error('The working drawing changed; inspect it and reconcile before applying'); } try { api.loadModel(candidate); } catch (error) { throw new Error(api.loadErrorText?.(error, candidate) || String(error)); } const calculated = api.results(); session.expectedJSON = JSON.stringify(api.getModel()); session.epoch = window.FlowCanvasHistoryDB?.epoch?.() ?? null; calculated; ``` Loading calls the existing synchronous calculation path. There is no documented `FlowCanvasAPI.calculate()` or stateless `validateModel()` method. Do not invent either. Do not mutate `FlowCanvasAPI.relief.model()` or use the layout callback as a generic editing shortcut; those are module integration mechanisms. For restoration, use an independent copy of `session.original` as `candidate` through the same guarded replacement procedure. If another user/agent has changed the sheet, stop and reconcile instead of overwriting those changes. A DB-linked production drawing should not be used as a trial calculation sandbox. ## 4. Read and judge actual results Read `FlowCanvasAPI.results()` after each accepted edit. Its numerical pressure fields use kgf/cm² regardless of the displayed pressure selector. See the model reference for exact paths. - Require `meta.ok === true` for calculation completion (a drawing that holds only a flare network has `meta.ok: false` by design: there it is complete when `results().flare.flareOnly` and `flare.ok` are true; a present `flare` with `ok: false` is incomplete either way); inspect `meta.errs`, `meta.warns`, `meta.convergence` and `meta.inputChecks.issues`. Also disclose relevant ignored checks. Do not clear warnings or ignore checks merely to obtain a clean status. - Verify `meta.modelVersion` and `meta.engineVersion`. Where available, compare `meta.modelFingerprint` to `window.FCHydraulics.modelFingerprint(api.getModel())` to confirm the result belongs to the current normalized model. - Confirm required equipment/lines actually have finite results. Null, missing, provisional or uncalculated values are not zero. - For pumps, inspect required head, flow, pressures, power and NPSH fields. `results.npshaCalc` is the calculated value before the configured allowance; `results.npsha` has that allowance deducted. `results.margin` is this adjusted NPSHa minus NPSHr. Do not subtract the allowance twice. Unknown NPSHr prevents a completed margin assessment. - A completed calculation does not prove that a selected vendor pump meets the duty, that equipment design pressures are sufficient, or that all design constraints pass. - For pump-free pressure transfers, also require each relevant `meta.pressureTransfers[]` entry to have `ok === true` and `feasible === true`; inspect `pressureMargin`. Calculation completion alone does not establish pressure feasibility. The tool checks a specified flow; do not claim it solved the actual pressure-driven flow. - Check velocity/pressure-loss criteria against the user's design basis. Provisional line pressures (`lines[].detail.provisional`) must not be reported as confirmed calculated pressures. Store candidate inputs and their result snapshot together before testing the next candidate. Never compare a new input model against a previous candidate's cached/exported result. ## 5. Browser-only workflow Use accessible element names or stable IDs when your tool supports them, not remembered screen coordinates. Labels depend on the selected language. Wait for dialogs and calculation results after actions. - `#mFile`: File / 파일 menu. `#btnSave`: Save / 저장 downloads the drawing JSON; `#saveStatus` reports browser-save problems. Downloading JSON, autosaving in this browser and saving a DB item are different actions. - `#btnOpen` and file input `#file`: import a drawing JSON. Alternatively use File > Paste JSON / JSON 붙여넣기; the dialog textarea is Drawing JSON / 도면 JSON. These replace the drawing: preserve current work first. - `#btnExample`: examples. The tutorial's pump transfer example can be opened with `/?example=pump-transfer`. `/?example=debutanizer` opens a project-style column example (vessel datasheets, control valve sizing, Relief PSVs linked to the flare review, saved Plant View layout) to inspect how the modules share one drawing. Existing work may trigger a replacement prompt; do not use that URL as a harmless read-only operation. - For manual construction, choose equipment from the palette, select an item to edit its inspector and use the pipe-connection control to connect in the flow direction. Take a fresh screenshot/page snapshot after layout changes. - A loading arm placed between two lines (e.g. ship → arm → header) is calculated as a fixed pressure-drop item (inspector ΔP); at a path end it is a start/end point. The palette's **Function** entry adds a **Multiplier** (in-line item, flow × n) or an **Adjust** (outside the streams: pick a target pressure — line inlet/outlet or arriving at/leaving an item — and one variable such as a source pressure, ΔP, flow or multiplier, then press Solve; with the Connect tool, click the adjust then a line / item and choose target or variable). A line's **Flow multiplier** N (default 1) makes that line stand for N identical parallel trains: the line itself is calculated at one train's flow, and the lines downstream of the join carry N × that flow; the line tag shows ×N. - Uneven ground: with nothing selected the inspector lists **Grade (GL) zones** (also View menu → Grade zones…). Add a zone per ground with its absolute EL, then pick each item's zone in its inspector. Keep EL inputs absolute; zones only move the drawn ground (stepped at the boundary), the Plant View base and the Relief `E` reference. Each zone has a Plant View surface (soil, concrete, gravel, asphalt, sea/water); the drawing ground stays a plain hatch. Dragging a zone's ground line on the drawing changes its EL in 0.1 m steps. The zone manager's **Type EL relative to GL** option makes item EL fields show and accept height above the zone GL (still saved and calculated as absolute EL); in that mode a zone EL change also moves that zone's items. The **Note** button adds a free text box (edit in the inspector, drag to move, Delete to remove); notes never affect the calculation. - Inspect Calculation results / 계산 결과 and the line table. The normal edit path recalculates automatically. Read missing-input messages and correct the stated fields instead of repeatedly clicking. - Help links lead to [theory](theory-en.html) and the [pump tutorial](tutorial-pump-en.html). The tutorial supplies detailed UI instructions; this guide supplies the AI operating contract. ## 6. Verified starter task and comparison The fixture `ai-example-pump-transfer.json` is the same teaching model as the pump-transfer example, including its example design-basis flag. It uses water at 20 °C, 30 m³/h, an atmospheric source tank at LLL 1 m, a destination at EL 12 m with HLL 8 m, 4-inch suction and 3-inch discharge pipes. Its design pressures and dimensions are teaching assumptions, not universal design requirements. Load it only into the authorized working sheet using section 3. Under the current documented model, expect approximately: - Required pump head: **22.364 m**. - NPSHa after the configured 0.6 m allowance: **10.338 m**. - Shaft power at 70% efficiency: **2.606 kW**. These are regression checks for this exact fixture, not pass/fail targets for another design. Different conditions/engines require fresh results. For a pipe-size candidate, update `nps`, `sch` and actual internal diameter `d` together using a verified pipe-size table. For example, changing L2 from 3-inch Sch 40 (`d: 77.9`) to 4-inch Sch 40 (`d: 102.3`) changes hydraulic losses. Keep length, fittings, properties and flow fixed when isolating the effect of size. Do not change unrelated fields to make a candidate pass. For a non-replacing comparison of **relative operating conditions**, the current API provides: ```js window.FlowCanvasAPI.compareOperatingCases([ { id: 'normal', name: 'Normal', flowPercent: 100, sourceLevel: 'LLL', destinationLevel: 'HLL' }, { id: 'maximum', name: 'Maximum', flowPercent: 120, sourceLevel: 'LLL', destinationLevel: 'HLL' } ]); ``` It returns `results`, `governing` and `pressureGoverning` and restores the original drawing/caches. Each result still needs errors, checks, warnings and feasibility review. `flowPercent` scales explicitly entered flow in the current drawing; it is not an arbitrary topology/pipe-size preview API. Missing requested liquid levels make a condition incomplete. **Headers (liquid, gas or flare):** the palette's 헤더 item is one straight header; draw the lines into / out of it like any line. One line in and several out = distribution header fed at end A; several in and at most one out = collection header leaving at end B; set a line's end (`hend`) or position (`hpos`) in its inspector, the tie-in order with ↑/↓ in the header inspector or by typing the order in the line list's 헤더 연결 순서 row. The Hydraulic calculation splits it into segments at the tie-ins (same results as tees + lines, automatic split included); the segments show in the header inspector and as extra line-list columns. **Flare network review:** add PSVs / BRVs from the palette (릴리프 밸브 → PSV or BRV), connect each protected item to its relief valve (inlet line, valve inlet below) and the valve outlet through tail pipes, tees and a KO drum to a flare stack (or a header item: palette 헤더 — tie-in lines end on it; set their sequence with ↑/↓ in the header inspector (`order`) and optionally a position `hpos` per line, blank ones are spread evenly; it calculates the same as tees + straight segments). The flare palette item asks for the type: elevated stack, enclosed ground flare (EGF: residence time, excess air, rated heat release) or multi-point ground flare (MPGF: burner count, radiation at a receptor). The Flare results tab (and the PSV / stack / KO drum / line inspectors) shows backpressure vs. allowable, inlet 3 %, Mach and ρv² per line, KO drum dropout check and stack height for radiation. Read numbers from `FlowCanvasAPI.results().flare`. A PSV can be linked to a Relief PSV in its inspector (**Relief PSV** selector, JSON `rel`): set pressure, valve type, load and gas then come read-only from that PSV's Relief governing case, so edit them in the Relief workspace (the flare review is recalculated when you return to the drawing); viscosity, rated capacity and allowable backpressure stay on the drawing PSV. With linked PSVs the review is each PSV's governing case at the same time (conservative when the governing cases differ). Several relief scenarios (top-level `flare.scenarios`, see the model reference) are reviewed together: each has a Relief case for linked PSVs, a load basis (required / rated) and per-source on/off and overrides; `results().flare` is the active scenario plus `scenarios` and the `envelope` (worst value and its scenario). Without scenarios it is one review of the node values. A fire scenario can take a Plant View fire zone (`zone`) so only the sources protecting items inside it relieve. The Results tab's **관경 제안 / Suggest line sizes** button proposes standard sizes for all scenarios (UI only: ask the user to review and apply the ticked rows). Noise is not checked. Defaults for limits and the radiation inputs are editable assumptions, not code values — state them to the user. The stack inspector's **판정 기준 세트 / Criteria set** (`critSet`) switches the blank line / tip / KO droplet limits between the defaults and new-plant / revamp examples inside commonly used ranges; they are not API figures, so ask for the project basis. The stack also checks a second, continuous radiation case when `wCont` is entered, the gas heating value against the minimum for stable combustion, τ from relative humidity (`rh`, when `tau` is blank), the receptor surface temperature and the purge gas; a drum on a flare route can be switched to a water seal drum (`flRole: 'seal'`). These are screening checks — vendor values decide. ## 7. Relief and Plant View **Datasheet:** the Datasheet tab (`/#datasheet`, next to Relief; also the 데이터시트 button in a drum / tank / column inspector) shows one vessel datasheet per drum, tank and column, built from the drawing (process values, geometry, levels, nozzles from the connected lines, a sketch) and printable on one A4 page (Print / PDF); the sheet text is always English. Its edits change the drawing node (one Undo step each), so Hydraulic, Relief and Plant View read the same diameter, heads and T/T; a vertical drum diameter shown as "확인 필요 / confirm" is not used anywhere until confirmed. Datasheet-only fields (material, code, thickness, revisions, extra nozzles) do not affect any calculation. The title block's Type dropdown changes the drawing item's type (vertical / horizontal / boot drum, mixing vessel, bin, column, tank roof types, sphere) as one undo step, keeping its shell length, diameter, bottom EL and levels. Datasheet first is supported: the tab's **New vessel** buttons (vertical drum, horizontal drum, column, tank) add a drawing node with a tag of its kind, and a nozzle typed on the sheet before the piping exists can later be joined to a connected Hydraulic line (select its mark → 'Join to a Hydraulic line…'), which moves its values to the line nozzle and its EL to the line's nozzle EL. Excel export (one vessel per file, the sketch as editable shapes) is a button next to Print. The nozzle EL column is read and typed from the vessel's GL (its grade zone; EL 0 without zones); an EL typed on a line nozzle becomes that line's nozzle EL (`zn1` / `zn2`, stored absolute) and blank returns to the drawing's port / level value. The Data menu **Design Basis** window (also the datasheet bar's Design Basis button) has two parts: Lines (the Sizing Basis, `model.sb`) and Vessels (`model.vdb`: design pressure / temperature suggestion bands, hold-up targets, F&D head factors, vent / drain minimum sizes, nozzle mark scheme, column nozzle EL, nozzle-to-TL distance, skirt height, inlet baffle, service notes) — typical guideline values until edited, saved with the drawing; the datasheet shows them only as grey suggestions, warnings and a screen-only check list, never changing typed values or calculations. There is no datasheet or Design Basis API; through JSON edit the fields listed in the model reference. **Relief:** use the Relief workspace (`/#relief`) and its normal forms. Data is stored in `model.relief.psvs`. Each case is sized to API 520-1 (vapour critical / subcritical, liquid with Kv; two-phase is not sized) with an API 526 orifice letter, and the governing case is the largest required area. A protected item's `head` is `ellip` | `hemi` | `flat` | `none` (no head: a vertical item counts neither bottom nor top area, a horizontal one neither end — e.g. a shell section; a flat bottom on grade is still excluded as before). The Relief tab has three views (UI only, same data): **Case edit**, **Relief loads** (fire summary, one column per protected item, editable cells, PSV totals) and **Sizing** (one row per PSV: governing case and load, valve inputs Pb, valve type, rupture disk, Kd, Kb/Kw, required area, API 526 orifice, rated capacity). Relieving pressure follows API 520-1 Table 1 from `mawp` (else the set pressure) and the installation (single / multiple / fire supplemental); while `Pset` is blank or negative there is no relieving pressure (`Prel` empty), even with `mawp` set. Tube rupture (API 521 4.4.14) and thermal expansion (API 521 Eq. 1) can be calculated in their cases. Any case other than fire can also take its load from a **column heat & material balance** (Load → "Column heat & material balance", `case.calc: 'tower'`, inputs in `case.tw`): `tw.rows[]` = `{ id, side: 'in'|'out', kind: 's' (stream: `w` kg/h normal flow, `h` enthalpy at relieving conditions) | 'q' (duty `q`), role: 'feed'|'reb'|'cond'|'', name, f (factor on the normal value at relief, blank = 1), vap (out stream leaving as vapour) }`, `tw.u` = enthalpy unit `kcal` (kcal/kg) | `kJ` (kJ/kg) | `btu` (Btu/lb), `tw.uq` = duty unit `kcal` (kcal/h) | `Mkcal` (MMkcal/h) | `kW` | `MW` | `MMBtu` (MMBtu/h) (absent: kcal/h with `u: 'kcal'`, kW with `kJ`, MMBtu/h with `btu`); display-only units of the window, values stay stored in kg/h, °C and kgf/cm²g: `tw.uw` `kg` | `lb` (lb/h), `tw.ut` `C` | `F`, `tw.up` `kgf` | `bar` | `psi` | `kPa` (absent: the page's pressure unit); the MKS / SI / Field buttons set all five at once (kcal/kg · kcal/h · kg/h · °C · kgf/cm²g — kJ/kg · kW · kg/h · °C · bar(g) — Btu/lb · MMBtu/h · lb/h · °F · psig; the reboiler U is kcal/h·m²·°C with a kcal duty unit, else W/m²K), `tw.hL`/`tw.hV` (or `tw.lam`) = latent heat of the overhead accumulation. Load = max(0, (ΣQin − ΣQout)/λ + Σ vapour products). Optional ratings: `tw.rb` reboiler pinch (clean U·A, scales the `reb` duty, never above normal), `tw.px` feed preheater at relief (replaces the `feed` enthalpy; linear heat release), `tw.ac` overhead accumulator surge time (no condenser credit when it floods within `aTmin`, default 10 min). **Tower scheme window** (button in the case inspector, which shows only a summary of the balance; the rows — including a hand-added row's envelope ①/② — are edited in this window): a generated column scheme (options `tw.sch` = `{ cond: 'air'|'water'|'airtrim' (air cooler + trim cooler), reb: 'steam'|'fired', px, bp, vp, sd }`; `bp: true` draws a bottoms pump on the product line after the reboiler tee — drawing and tag `tags.bpump` only, no balance row and no effect on the load) with keyed rows (`row.key` feed, reb, dist, vp, sd, btm, cond, trim — the trim cooler duty, out, role `cond`, HMB 2, only with `cond: 'airtrim'`; `row.env` 1 = column envelope, 2 = overhead envelope) and one grid for the hand-entered balance — normal flow `w`, normal enthalpy `hn` (only for the normal-operation closure check ΣQin − ΣQout ≈ 0), duty `q`, relief factor `f`, relief enthalpy `h`; a spreadsheet block can be pasted into the grid. A case put on the balance through the UI starts with the **typical factors** of its scenario in `f` of the keyed rows (total / partial power failure, cooling water failure, reflux failure, air cooler failure; there is no picker — changing the condenser or reboiler type resets the condenser, trim cooler and reboiler factors of every such case to its typical value; e.g. total power failure: feed and products 0, air-cooled condenser 0.25 natural draft, water-cooled 0, steam reboiler 1, fired heater 0.3) — common-practice suggestions, not API values; the factors remain the engineer's basis. The balance can also be built from the drawing: `tw.e1` (column envelope, HMB 1) and `tw.e2` (overhead envelope, HMB 2) are lists of node ids — **Suggest envelopes** takes the PSV's column plus every loop returning to it (a loop through a drum = overhead, others such as the reboiler loop = column side). Lines crossing an envelope become stream rows (`row.pipe`, flow read live from the drawing), exchangers inside become duty rows (`row.node`, live from the exchanger's `duty` in kW — Hydraulic inspector **Duty (normal)**; envelope 1 = heat in, envelope 2 = heat out), lines between the envelopes and relief lines are left out; `row.env` 1|2 groups the result as vaporised (HMB 1) − condensed (HMB 2) + vapour products, which equals the single balance. Enthalpies and relief factors are never taken from the drawing. Relieving T, MW, k, Z stay case inputs. The window has the **Input data** table on top (normal flow / enthalpy / duty and relieving enthalpy, shared; optional stream conditions on each stream row — `mw`, normal `tn` °C / `pn` and relieving `tr` °C / `pr`, pressures stored in kgf/cm²g like every pressure — are a record to check the enthalpies and are not used in the load; the **Relieving vapour** fields set `T`, `MW`, `kCp`, `Z` of every case on the balance at once; **Pressures** keeps `tw.pTop`, `tw.pBtm`, `tw.pAcc` — column top / bottom and accumulator operating pressure, kgf/cm²g, a record — and shows the PSV's set pressure (`psv.Pset`, editable there too) and relieving pressure; **Reboiler** edits the `tw.rb` fields of the pinch rating — `bA` m², `bU`, `bt1`/`bt2` process in/out °C, `bT1`/`bT2` medium in/out °C (`bT2` blank = isothermal, `bSteam` true), `btr2`/`bTr1` at relief — which only act with `bOn: true`, plus `bP` (heating medium pressure, kgf/cm²g, a record); the drawing shows the operating pressures and the reboiler temperatures; with the MMBtu/h duty unit `bU` is Btu/h·ft²·°F and the window shows the area in ft²) and the **Balance by case** table under it: one block per case with the relief factor (typed), vapour flag, relieving flow and duty of every row, then Σ In, Σ Out, Σ In − Σ Out, the vaporised / condensed flows, vapour products and the relief load; its blocks are the cases with `calc: 'tower'`. Opening the window puts the reflux / cooling water / power failure cases that never had a `case.tw` on the balance (`calc: 'tower'`, shared table, typical factors; a stored entered `load` stays in the record), so the three are reviewed together; × on a block sets that case back to its entered load (`calc` null, `case.tw` kept — it is then not put back automatically), and `+ Case` adds a standard case or an added scenario that is off the table, a new partial power failure (any number: the first `extra` case is named `Partial power failure`; adding another renames it `Partial power failure 1` and the new ones are `2`, `3`, …) or air cooler failure (once, air-cooled condenser) as an `extra` case (UI only). In this window the standard `power` case is labelled **Total power failure**; its name elsewhere (case list, summary, reports) stays Power failure. The buttons over the drawing (Normal + one per case) or a block header select what the drawing shows — normal operation or a relief case — and each stream / duty label carries its flow, heat flow and (when entered) temperature and pressure for that view; the title bar shows the governing (largest) load of the cases on the balance, with its name — there is no case picker. A `case.tw` on a case without `calc: 'tower'` has no effect on results. The UI offers the column balance only for `reflux`, `cw`, `power` and `extra` cases — blocked outlet, control valve failure, tube rupture and thermal expansion are not heat-balance scenarios (a stored `calc: 'tower'` on one of these four is reset to the entered load when the model is opened). The Tower scheme button appears only on a case with `calc: 'tower'`. `+ Case → Column heat balance` (UI only) opens the PSV's balance; on a PSV without one it first puts its reflux / cooling water / power failure cases that have no entered load on one shared table. **One balance per PSV:** all cases of a PSV with `calc: 'tower'` share one table — every field of `case.tw` is the same in each of them except each row's relief factor `f` and vapour flag `vap` (matched by `row.key`, else `row.id`); when writing JSON keep the shared fields identical in every tower case of the PSV. The UI copies an edit to the PSV's other tower cases, gives a case that switches to the balance the shared table with its scenario's typical factors, and merges an older file whose tower cases differ once (the fullest table wins, each case keeps its factors; `psv.twShared: true` marks a merged PSV). **Internal reflux method** (alternative for reflux loss, partial power, cooling water and air cooler failures; any case other than fire): `case.calc: 'irm'`, inputs `case.ir` = `{ u: 'kcal'|'kJ' (Cp kcal/kg·°C and λ kcal/kg, or kJ/kg·K and kJ/kg), mH (kg/h normal overhead vapour), TH (°C overhead vapour), lam (λ_H), mR (kg/h normal reflux), TR (°C), cp, mR2, TR2, cp2 (reflux left during relief; mR2 blank = reflux lost, cp2 blank = cp) }`; load = mH + mR·cp·(TH − TR)/lam − mR2·cp2·(TH − TR2)/lam (each term ≥ 0); missing inputs are listed with section `ir`. The factors and enthalpies are the engineer's basis for each scenario — do not invent them. These are preliminary sizings, not a valve selection. Linked equipment derives geometry/levels from the drawing (a drum, tank or column — a column as a vertical shell with `D` from the datasheet and T/T = `H` — or an exchanger by name only). Inspect every applicable case and every protected item; partial results are not complete sizing. Read the sizing with `FlowCanvasAPI.results().relief` (after `loadModel`) or check a candidate with `calc(candidate).relief`; `FlowCanvasAPI.schema().model.relief` lists the stored fields. `results().relief` (present only when `model.relief.psvs` has PSVs; read from a copy, so it never changes the model or its fingerprint; the same block is in `calc(candidate).relief`) = `{ units, complete, governingTotal (kg/h, sum of the governing loads; null while any PSV is incomplete), psvs: [{ id, tag, svc, Pset, mawp, Pb (kgf/cm² g), Patm (kgf/cm² a), vtype, inst, items[{id, name, link}], complete, governing: null | { case, name, basis 'area'|'load', load, area (mm²), orifice {letter, count, area}, rated (kg/h) }, checks[{level, text}], cases: [{ case ('fire', 'blocked', 'cv', 'reflux', 'cw', 'power', 'tube', 'thermal' or 'x:'), name, extra, status 'na'|'complete'|'incomplete', calc 'fire'|'tower'|'tube'|'thermal'|null, phase, load (kg/h), T, MW, k, Z, rho, mu, Prel (kgf/cm² a), size: null | { area (mm²), method 'crit'|'sub'|'liq'|'2ph', orifice, rated }, reason (not applicable), missing[{ field, section, label, item? }], checks[{level, text}] }] }] }`. `missing` lists what blocks an applicable case: `field` = the stored key, `section` = where it lives (`p` the PSV, `f` `fire`, `i` the protected item `item` of `items[]`, `c` the case, `tr` its `tr`, `th` its `th`, `tw` the tower balance rows — `field` null; `field` null elsewhere = no direct input, e.g. a broken drawing link or `Patm`). `label` and `checks[].text` follow the UI language. A case with `status` other than 'complete' has no load or size you may use; a PSV is sized only when `complete` is true and `governing` is set. There is no separate `calculateRelief()`; internal functions such as `fireCase` are not a substitute. In the Relief tab the same missing inputs are listed above the checks (one click focuses the field; tower rows open the tower scheme window) and empty required inputs are outlined. Preserve this model section during hydraulic edits. **Plant View beta:** open the Hydraulic page's Plant View button (`.pv-open`) so the child has its real opener. Wait for `window.PlantView.ready` to resolve if your tool can read it. A direct visit can be read-only/disconnected. Hydraulic owns tags, process dimensions, EL and connectivity; Plant View owns additional layout data in `model.layout`. Model first is supported: equipment and lines built in Plant View go to the drawing in one step with the toolbar's **Model → drawing (n)** button (tags, types, sizes, EL, connections and line inside diameter kept; one Undo on the drawing reverses it); kinds the drawing cannot hold stay in Plant View. A drawing item's tag, diameter and height (the sizes the drawing holds: column D/H, drum D and Ht or T/T `Lt`, tank D/Ht, flare stack D/H, header d/l) and a drawing line's inside diameter can be edited in Plant View; they are listed in the Apply window (or sent by live sync) and written to the drawing as one undo step. Ignition sources (**Fire Circle A, B, C …**, structure palette 점화원 / Fire Circle) are UI-only: a circle (radius 1–100 m, base EL, fire height default 7.6 m) lists the items inside / crossing / above and the lines passing; it is saved as `model.layout.fires` (preserve it) and changes no calculation input. - Operate the normal selection/inspector and route controls. Do not mutate the console/debug model as a persistence API. - Layout-only save does not apply hydraulic pipe length, elbows, process EL or relief sizing inputs. Use the application preview to review the exact selected changes. - Results view (view toolbar select: off / flow / velocity / ΔP per 100 m) colours the lines and labels pump head from the open Hydraulic page's current results. It is read-only and uses the drawing's line lengths, so a route changed in 3D counts only after it is applied. It is disabled without a live Hydraulic link. It is a display, not an API: read numbers from `FlowCanvasAPI.results()`. - The bridge requires the current drawing context and source revision. On a conflict, inspect the new source and reopen the preview; never forge a revision or retry a stale patch blindly. - Structures: levels are edited in the structure inspector (comma list or + / − level buttons). Choosing a structure level in an equipment's level selector attaches it (`layout.eq[id].on`): it moves and rotates with the structure, follows level EL edits, and is kept inside the structure footprint when moved; grade, a removed level or a deleted structure detaches it. For drawing equipment a level move changes its process EL as a pending change that still needs the preview/apply step. Steel frames draw a stair tower (primary access, switchback flights ≤ 40° with a landing at each level, outside the +x face) and a caged ladder (secondary escape); each can be hidden in the structure inspector (`stair: false` / `ladder: false` in `layout.structures[]`, display only). Cooling towers are drawn as in-line induced-draft counterflow cells (basin, louvered air inlets, casing, fan deck with stair, one fan stack per cell, hot-water header with a valve per cell; section view: fill, spray laterals, drift eliminators, partitions, basin water); the cell count is the drawing field `cells` (Hydraulic inspector, or the Plant View type section, applied like the other type fields). The example 'Cooling water · 3 floors / 9 exchangers' ships with its Plant View layout (`layout.structures` + exchangers attached to the levels, a 2-cell cooling tower). - View tools (display only, never saved or applied): the equipment inspector's Section view cuts the selected item in half (X/Z) and shows a schematic interior — column trays at the drawing tray count, liquid to NLL with HLL/LLL marks from the linked drawing, exchanger internals by TEMA type and tube passes (tubesheets, tubes coloured per pass with pass-partition plates, U-bends, segmental baffles or X/K support plates, tie rods, impingement plates under shell nozzles, F/G/H longitudinal baffles, S/T/P floating head, kettle weir and pool). The level selector in the view bar shows one structure level band. Do not read dimensions or tray layout off these schematics. - GL zones in Plant View: each zone is a ground pad (Structures palette → Grade zone adds one). Click a pad to edit its name, ground EL, surface and area (X, Z, width, depth, or "Drag to draw area" then drag a rectangle on the ground; in Move mode drag the pad to move it); "Put items in area into this zone" moves linked items whose centre is inside. Name/EL/surface/membership reach the drawing (`grades`, node `gz`) through the normal preview/apply (or live sync); the area is layout (`layout.grades`). With the drawing's GL-relative EL input on, an applied zone EL change also moves that zone's item ELs. - Storage tank containment: the Hydraulic tank inspector's Containment (single / double / full) and the Plant View type chips set the same `cont` value (bund ring / open-top outer concrete wall / outer concrete tank with dome). Display only. A grade zone below the plant ground cuts the ground and shows retaining walls. - Opening a layout file (File → Open layout JSON) while Plant View is linked to a drawing asks first: **Open separately** (recommended) unlinks this window — the drawing is not read or changed, edits go to a separate draft in this browser, the window stays separate after a page reload, and the link chip shows 'Separate layout'; **Reload drawing** (or the chip) links it again. **Open on this drawing** replaces the current layout as before (with live sync on, the file's own items can be saved into the drawing layout). `plant-view.html?standalone` starts unlinked. File validation errors name the item/structure/line tag and the field. UI only — no API. - Floor plan (underlay): File → Load floor plan picture (PNG/JPG/WebP, 100 m wide by default, aspect kept) or a layout file with `underlay: { src (data URL), name, x, z, w, d, rotation, opacity, show }` lays a plan picture on the ground (centre `x`/`z`, size `w` × `d` m, picture top = −Z). Settings › Floor plan: show, strength, width/length (aspect-locked, to set the scale), centre, rotation, remove. Layout only — never sent to the drawing; the picture is kept in this browser (IndexedDB) and written into Save JSON. UI only — no API. - Package / building boxes (palette Package / building → Package / skid or Building): layout-only equipment `kind: 'inline'`, `sub: 'pkg'`, `pstyle` `pkg` | `bldg`, `d` = width X (m), `h` = length Z (m), `bh` = height (m), `sup` = base height above grade (blank = on grade). Not a calculation item: Model → drawing skips it. - Plot plan PDF (File → Load plot plan PDF, or a .pdf through Open): read in the browser with PDF.js (never uploaded) — scale (1:N text, editable), datum point (filled dot + E/N label, else the drawing centre), equipment list tables (tag + description), drawing tags (also vertical/split labels), circles and closed outlines around/next to each tag → a review table (sure / check / guess with the reason, type changeable; guesses unticked). Apply makes a new layout with the ticked items (heights assumed) and, optionally, the whole sheet as the floor plan at scale. A two-point fit (click two sheet points with known site coordinates X east / Y north; point 1 becomes the origin) sets scale, turn and origin for sheets without a scale or with north turned; round outlines without a tag are offered as tank rows; on sheets without a scale whose letters are drawn as lines, OCR (Tesseract, in the browser) reads the number and Ø inside each tank for the tag, diameter and — where several tanks agree — the scale (origin at a tank farm; one click moves it); the working area is then read as a text layer (0°/±90° text) so box tags, equipment lists and names drawn as lines are recognised like real text; items beyond ±300 m are not placed. An ASCII DXF can be opened the same way: its own coordinates and unit ($INSUNITS) are used, the origin goes on a round site coordinate near the items and one click moves it; A DWG (R14–2018 formats) is converted to DXF inside the browser (Web Worker, ACadSharp on .NET WebAssembly, loaded on first use; nothing uploaded). First page only; vector PDFs only (scanned pictures and letters drawn as lines are not read). UI only — no API. - Spacing check (right panel Spacing check, layout review): the project's own criteria table `spacing: { min: { 'a|b': m }, show }` (blank by default; keys = two of proc, pump, comp, vessel, column, hx, aircool, furnace, tank, pstore, flare, ctower, rack, load, pkg, ctrl, elec, bldg, sorted, joined by `|`; 0–1000 m), edited in a table or loaded / saved as CSV (`a,b,min_m`). Each item's category is automatic from its type (line items are not checked) or set per item (`scat`, or `'none'`); pipe racks take part as `rack`. Pairs closer than the minimum (plan distance between outlines, 0 when overlapping) are listed and drawn as red lines. Layout only (kept in the drawing layout when linked). UI only — no API. - Automatic routing (right panel Automatic routing → Route all lines; a line's properties → Route via rack): from the nozzle stub up / down to a rack level, square into a free lane, along the rack, out and down to the far stub (rack both ends reach within its length + 3 m and 30 m to the side, ≥ 3 m along); otherwise the ordinary direct route. Legs across the rack run one step above (line coming from above) or below the tier and drop / rise into the lane (so they do not cut the other lanes; the step grows by 0.35 m until clear of lines already placed). Lanes: relief / flare lines, lines ≥ 150 °C and lines of ID ≥ 0.2 m fill from the columns (edges), the others from the middle, 0.1 m clear of lines on that level. Levels fill from the bottom; a relief tail (relief valve → header / KO drum) takes the highest level it can fall through between its ends (none → not that rack) and its run along the rack slopes 1:200 down to the downstream side. Each horizontal run then goes round equipment standing at its height (orthogonal, 0.3 m clear, few elbows) and the lines already placed (r1 + r2 + 0.05 m); lines placed first go first (largest first), and the automatic lines still clashing at the end are routed once more against all the others (kept only when that removes clashes). Then a line still left with problems (deck penetration, a pass through equipment or a structure column, a clash with lines already placed, a rising relief tail or pump suction, too many suction elbows) goes through a 3D route search: A* on a 3D grid (0.25 m or coarser) between its nozzle stubs — equipment bodies (shell cylinders for columns / tanks / flare risers, other items as their boxes), structure columns and lines already placed are blocked, running along a deck is not allowed, crossing a deck costs 15 m, a turn 2 m (pump suction 4 m), horizontal pipe 0.9–2.1 m above its floor 1.5 m per m, and relief tails / pump suctions never climb; the result replaces the route only when it has fewer problems (or as many and is 10 % shorter). The result is an ordinary editable `route` with `rauto` = its signature: Route all re-routes only unedited automatic routes (option: also hand-edited ones), one undo step. UI only — no API (`PlantView.route3D(id)` is a test hook). - Header run (a header's properties → Header run; layout `layout.eq[headerId].hr`): a header (one line with many tie-ins, used instead of drawing tees) can bend like a pipe — legs `[[dir, m], …]` from end A at the item position in the item's own axes (`x`, `-x`, `z`, `-z`, `y`, `-y`; the item rotation turns the run), `hs` = fall per m toward end B (level, 1:500, 1:200, 1:100). Total 4–400 m; the header length `l` follows the legs (sent on Apply like the other sizes; a length changed in Hydraulic is taken up by the last leg). Tie-ins sit on top at their line `hpos` (m from end A along the run). **Along the racks** (also done first by Route all for headers not edited by hand): the rack the tie-in lines come from, an edge lane on the highest level below the relief valve outlets, from 1 m past the farthest source to the rack end toward the item the outlet feeds, turning onto a rack that meets that end at 90° one step lower (up to three racks); 1:200 toward the outlet for a header with relief lines (outlet at end B). It also moves each tie-in to where its line comes from: the line `hpos` values, the header `l` and its `el` are listed in the Apply window (group 'Header tie-in positions'). A relief tail starting higher than its end runs across at its start height and drops onto the header (never climbs). Straight returns the header to one straight piece of the same length. UI only — no API. - Deck openings (right panel Piping rule check → Make deck openings; layout `layout.structures[].openings` = `[{ lv (floor EL), x, z (centre in the structure's own axes), w, d (m), lines[] }]`): a line through a steel-frame floor is designed, not avoided — an opening is made wherever a route passes a floor (line radius + 0.05 m, 0.1 m at 150 °C or more, openings within 0.3 m merged), cut out of the grating with a 100 mm kickplate; the rule check then passes lines through openings and the 3D route search uses them at no cost. 'Openings CSV' saves the penetration list (structure, floor EL, centre X / Z, width × length, lines). Automatic routing option **Avoid deck penetrations** makes the 3D search all but forbid a floor without an opening (lines go down at the deck edge); off, short vertical drops pass the floor and get an opening. UI only — no API. - Piping rule check (right panel, layout review; `PlantView.ruleCheck()` for tests): checks the current 3D routes against the rules of thumb in the piping layout practice below — line-to-line clash (centre lines closer than r1 + r2 + 0.025 m, lines meeting at the same item not compared near it), a pass through equipment (not its own end items) or a structure column, a deck penetration (a steel-frame floor; review the opening / sleeve), a pump suction that rises (vapour pocket) or has more than 4 elbows, pocket in a PSV inlet or a flare line after the KO drum (a low point 0.1 m below both sides), a relief tail that rises, walkway headroom (horizontal run ≥ 2 m whose bottom is 0.9–2.1 m above the floor under it: grade or a structure deck), straight run at a control valve (3 D up / 2 D down), flow element (20 D / 5 D) and into a pump (5 D), control valve centre more than 2.2 m above its floor, and an atmospheric relief valve (no outlet line) less than 3 m above any item or structure within 15 m. Line service comes from the drawing (read-only, not saved): phase, relief role (inlet / tail / flare after a drum) and hot (T ≥ 150 °C). Inside diameters, no insulation or flanges. 'Show in 3D' draws red markers. Changes nothing; an empty list is not a compliance statement. - Strainers: add a standalone strainer from the palette (type chooser Y / basket / T / sieve / temporary) or use a pump's suction strainer option; both are fixed ΔP items. The type (`style` / pump `stn`) changes only the symbol and the Plant View 3D (Y body with screen leg, basket pot with cover, T branch, flat plate, cone spool; the section view shows the screen) and can be switched in either page. - Plant View lays out column (tower) platforms and ladders automatically by common piping-study practice; there is nothing to set beyond the column datasheet. Datasheet link: manholes typed on the column datasheet (mark `M…` or service 'manhole', each point's EL and orientation) get a platform 0.9 m below each manhole and set the maintenance side; a line nozzle's datasheet orientation (`0°` front, `90°` right, `180°` back, `270°` left) sets its Plant View angle unless the nozzle was turned in Plant View, and later datasheet edits follow. Platforms closer than 2.2 m merge into the lower one. Seen from the first ladder: ladders on two opposite sides, alternating side at every break, each run at most 7 m from grade to the top platform (levels split evenly, ≤ 6 m apart); intermediate platforms cover 270° and leave the vertical piping segment (the side toward the rack, where the overhead and side-draw lines drop) free; the top platform is a full ring; platforms stand 250 mm off the shell with at least 0.9 m clear width (1.2 m above 2.44 m ID); brackets sit at the same angles on every level, pitch from the vessel ID (≤ 1.22 m 60°, ≤ 2.44 m 45°, ≤ 5.18 m 30°, larger 11.25°, ≤ 1.8 m apart at the outer edge); without datasheet manholes one manhole per platform, all facing the drop-out side with the top davit; the relief valve sits on the top head on the piping side. Tray positions themselves are not read, so check manholes against the tray layout on the datasheet. - Plant View draws the full-containment LNG tank type (`tstyle: 'double'`) as a prestressed concrete outer tank with buttresses, dome, stair tower, external pipe riser and roof pump platform; its section view shows the 9 % Ni inner tank (open top), perlite annulus, foam-glass bottom insulation, suspended deck, in-tank pump columns, the carbon-steel vapour-barrier liner of the outer wall and dome, a 9 % Ni secondary bottom with a thermal corner protection liner, the inner-tank foundation ring, inner ladder, cool-down spray ring, deck vent, drying / purging line, annulus leak-detection sensors and, for an on-grade tank, bottom heating; outside, a roof walkway to the crown with the dome-space vent and a caged escape ladder opposite the stair tower. A cone / dome / internal-floating-roof tank with `cont: 'full'` is built the same way (full containment: the outer tank holds liquid and vapour, so the inner tank has no roof of its own); its type in the drawing is not changed. For a cryogenic tank the outer tank material can be chosen (`ow`: concrete / steel, Hydraulic inspector or the Plant View outer-tank chips): with `single` or `double` containment it gives the same double-wall construction plus the bund / open-top wall (a steel outer tank has no buttresses or concrete liner; single / double have no secondary bottom). With `D` blank Plant View assumes a diameter (marked as an assumption). Drawing only — no calculation effect; keep LNG tank nozzles on the roof (`top` ports) as real FC tanks have no wall penetrations; Plant View places them beside the roof pump / fill platform (off the dome crown) unless a nozzle angle / offset is set, and the section view hangs the first as a top-fill drop and the others as bottom-fill pipes. - Loading arm (`la`) in Plant View is a marine loading arm (riser, base swivel, inboard arm with counterweight and sheaves, outboard arm, triple swivel, ERS with two ball valves + PERC, QC/DC coupler). The line to a ship / truck / tube meets the coupler, the plant line the riser base flange; auto layout puts the arm on the jetty in front of the ship's manifold. In the drawing the same rule picks the coupler side; flip the arm (⇆) if the ship is drawn on the other side. - Flare radiation view (UI only, no API): the Plant View toolbar button 복사열 / Radiation asks the open Hydraulic for its results and draws, for each elevated stack and MPGF with a flare result, grade contours at 1.58 / 4.73 / 6.31 / 9.46 kW/m² and the allowable `kAllow`, the flame and the radiation centre (point source, the same model as `results().flare.networks[].sizing`), and a dashed allowable reach over all wind directions. The wind direction is the layout field `wdir` (°, same convention as rotation, 0° = +X; display only). EGF is not drawn (contained). With the view on, the right panel **Tank radiation check** (and the storage tank's properties) lists for every storage tank the largest radiation on its surface from every flare and every relief scenario — the same point source, distance from the radiation centre to the nearest point of the tank (shell, roof edge or roof; a sphere's surface), surface orientation not credited, worst wind direction, plus the value at the stack's own `wdir` — against the EN 1473 limits 32 kW/m² (concrete outer surface) / 15 kW/m² (steel). The surface follows the tank `cont` (`full` → concrete, else steel); the layout field `rsurf` (`concrete` | `steel`, saved in `layout.eq`) overrides it. Check only: nothing is changed, no API. - Manually added Plant View equipment/connections need their Plant View JSON for preservation. The Plant View library also offers loading/unloading items (tank lorry, tube trailer, LNG carrier) and, under the Flare stack button, an elevated flare stack (support type derrick / guyed / self-supporting; tip ID `d` and stack height `h` in m, default 0.6 / 40) or a ground flare (`ftype` `egf`: enclosure `egfD` / `egfH` m, default 8 / 15; `mpgf`: `nB` burners, `stages`, burner `pitch` m, default 24 / 3 / 3) as layout-only equipment; add them in the Hydraulic drawing when they must be part of the calculation. Conceptual layout is not a fabrication model, collision check, structural design or stress analysis. **Piping layout practice (for Plant View routes and layout review).** Typical industry rules of thumb (the Piping rule check above tests a few of them on the 3D routes); the project specification, client standards and vendor requirements always govern. Use them to place routes, valves and racks sensibly and to name what the user should confirm; never report a layout as compliant because it follows this list. - Routing: as direct as practical, orthogonal, grouped in bundles that share supports; process piping inside a unit runs overhead and grade-level runs are kept short. Change direction by changing elevation (one elevation per direction on a rack). Keep clear of equipment removal / maintenance areas, crane and monorail paths, hatches and walkways; equipment must come out with little pipe removed. Steam and large / hot / gravity-flow lines are laid out first. - No pockets in relief, flare and steam lines. Vents at high points (top of pipe), drains at low points (bottom of pipe); slope steam lines to traps (a trap about every 30 m on a rack header). - Clearances (typical): headroom 2.1–2.2 m over walkways and platforms, about 8 m over main roads; walkway at least 0.9–1.0 m wide; pipe-to-pipe at least 25 mm (≈ 80 mm with installation tolerance) outside flange / insulation, more for hot lines with thermal movement; drain valve 150 mm above paving; grade runs on sleepers about 0.4–0.5 m BOP. - Valves: operated valves reachable from grade or a platform, stem up (never below horizontal); handwheels above about 2.2 m need a chainwheel; isolation and root valves close to the header. Check valves horizontal, or vertical with upward flow only (lift type horizontal only). - Control valve stations: usually at grade on a horizontal run, 0.3–0.45 m above the floor; block valves at line size, reducers close to the valve, drain upstream of the valve; the valve not more than two sizes below the line (and not under half the line size); no line routed over the actuator's removal space; straight run roughly 3–5 D upstream / 2–3 D downstream (10 D / 5 D on high-energy service) or the vendor's figure. - Pump suction: short and straight, not smaller than the nozzle, a long-radius elbow and about 5 D straight before the nozzle (no horizontal elbow straight into a double-suction pump), eccentric reducer flat on top; suction isolation valve placed where no vapour pocket forms. - Reducers: concentric in vertical runs, eccentric in horizontal runs — flat on top at pump suction, flat on bottom on racks (common BOP). - Instruments: pressure taps upstream of temperature taps, never in a tee or elbow; gas taps on top (±45°), liquid / steam taps on the side (or 45° below); flow elements on horizontal straight runs, typically 20 D upstream / 5–10 D downstream with no valves or taps inside; thermowells in at least 4" pipe (use an enlarged spool on small lines). - Relief valves: short inlet, outlet self-draining to the header; on a header 8–10 D downstream of a bend; open atmospheric discharge at least 3 m above any platform within 15 m, with a weep hole; strong support for reaction thrust; lifting provision for heavy valves. - Pipe rack: process lines on the lower tier(s), utilities above, cable trays on top; large / heavy lines near the columns, large hot lines at the edge (loops), cooling water low. Width W ≈ f × N × S + A (f 1.2–1.5, N lines under 18", S ≈ 0.3 m or 0.23 m for lines under 10", A for large lines, trays and spare space); keep 25–40 % spare width; above about 9 m use two tiers. Bents normally 4.6–6 m apart (up to about 8 m). Stagger flanges on adjacent lines and take branches off at a common TOS. - Flare header: at the rack edge, no pockets, sloped about 1:200 to the knock-out drum, branches joined at 45° where pressure drop matters; relief valves as low as allows free drainage into the header. - Battery limits: crossing lines usually get a valve and blind with access; valves staggered either side of a walkway. ## 8. Stop/recover/report - On load failure, report `loadErrorText` when available and inspect the current model. Do not assume failed loading or a later UI error restored every external association. - On storage failure, retain/export JSON; do not switch drawings and discard the only working copy. - On a source change, pause replacement and reconcile. On incomplete input or unsupported topology/phase, report the limitation rather than fabricating output. - Save/download the final model and provide a concise result summary: design basis, input changes, required duty, constraints checked, unresolved checks/warnings, assumptions and alternatives considered. Preserve engine/model versions and fingerprint with the results. - Do not call a design approved, code-compliant or vendor-verified solely because CalcPlant calculated it. Distinguish calculation completion, constraint satisfaction and the user's engineering approval. Documented boundaries: this is preliminary engineering support. Do not infer pump-curve selection, actual-flow inversion, full process simulation, thermal exchanger design, fabrication dimensions, stress analysis or general design-code compliance from this interface. See [theory and limitations](theory-en.html#s10). Other phases/topologies exist, but this starter contract is validated for the supplied liquid-pump example; inspect the matching theory, UI and a verified example before extending it.