Urban features: verification, measured failures and open gates
Summary. Polygon-prism buildings, building-wall roughness, pressure multigrid with buildings, particle size classes, porous vegetation, the map converter and the wind-direction campaign pass their numerical verification fixtures. None of them is experimentally validated. Four results of this record are failures or open questions, and they stay in it:
- Multigrid with buildings needs fewer pressure iterations but gives no consistent gain in run time (ratio of default to multigrid time 1.05, 0.94 and 0.91 on three accepted pairs). The default preconditioner did not change.
- The canyon rotated by 45 degrees did not pass its frozen grid study: one case was rejected and two timed out. No rotation error is known.
- In the Delft district demonstration none of the twelve wind directions converged within its 45 s budget, and the refined run stopped after 5 steps.
- No urban comparison with OpenFOAM and no comparison with measured urban data exists.
The guide for these features is chapter 22.
Names used in this record
The work followed a plan whose stage and gate names appear below.
| Name | Meaning |
|---|---|
| U0 to U7 | Stages of the plan: U0 throughput target, U1 multigrid with buildings (masked multigrid), U2 decision on defaults, U3 polygon prisms and wall roughness, U4 map converter, U5 particle size classes, U6 vegetation, U7 one district with twelve wind directions |
| U8 | A conditional GPU experiment; not started |
| P2b, P2c | Names of masked multigrid and of the measurement of its setup cost in the performance gap status |
| G0 | Gate after U0: a declared throughput target and a measured baseline |
| G1 | Gate after U1: equivalent accepted fields and a measured end-to-end gain of multigrid on the 27k and 93k canyons |
| G3 | Gate after U3: a canyon rotated by 45 degrees reproduces the grid-aligned receptor values within a tolerance declared before the run, at two resolutions, with a shrinking difference |
| G7 | Gate after U7: every direction of the district campaign is accepted or kept as a failed row within a declared budget |
| V1, V2 | Validation tracks: V1 the same canyon in OpenFOAM, V2 measured data |
| M5a, M5b | Roadmap milestones for particle settling and for vegetation (roadmap) |
| R1 to R3, GR | Stages and gate of the mobile-measurement work (mobile record) |
Where the run archives are
The run records behind this page are not in the repository. They are attached
to the GitHub release
v0.2.0 as the
asset cfd-craft-0.2.0-evidence.zip (3.5 MB): folder urban/ for this record
and mobile/ for the mobile record, with a README,
SHA256SUMS.json and DATA-LICENSE.txt, which holds the CC BY 4.0
attribution of the inputs derived from 3DBAG for the Delft district. The raw
map is not included.
The urban field files are not in the asset and were not kept. For each
urban run the asset has the consumed case, summary.json, the profile, the
manifest, the record of the independent field check and the logs, but not
fields.json and checkpoint.json (38 field files, 711 MB). The manifests
and urban/evidence-summary.json record their SHA-256 hashes. So the pass or
fail of each independent field check and the field differences of the
multigrid pairs below are values recorded by the runs that had the fields;
they cannot be recomputed from the asset, only by running the cases again.
The mobile archives are complete, with fields.
The archives were produced before the code review of this release, on the source tree that each archive records. They are records of past runs. A run with the current code has another source fingerprint, and its timings depend on the host.
To reproduce a run of the pressure or rotation comparisons, take its consumed
case urban/NAME.json from the asset, run
cfd-craft profile urban/NAME.json --output NEW_DIR and audit the result with
python validation/check_fields.py NEW_DIR/run.
python validation/summarize_urban.py DIR --output FILE builds the summary
of the pairs from run directories that contain their fields; run on the
urban/ folder of the asset it marks every row as not accepted, because the
fields are missing. For the district, download the 3DBAG tile named below,
convert it with integrations/urban_map.py and run
validation/urban_campaign.py run with the budgets stated below
(chapter 22).
The verification fixtures are tests of the repository
(cargo test --release --workspace --locked and validation/test_urban_*.py).
Source and measurement scope
Base: 7d8d70a864383e92f431d8afdacd15864e6c1c54 (0.1.1, latest main when
checked out). An isolated clean build independently confirmed the original
IC0 producer source fingerprint
ce85729bc3564d2658ce6894e232e69da981a07ac36fde4512c5468ba05866fc.
The archived runs record four source fingerprints, because the source tree
grew while the stages ran: the IC0 rows record the one above, the multigrid rows
a64798247531f1b67e0ef264bd6b87440fd4b2cb9585f9aaed3f87ba9fb8776b, the
rotation study and the district ensemble
5067dfcb11cd8b0dbc7e322cc8ed8b22d418986d6029dab5a8623aa275ca9e33, and the
refined district run
786eb87c9f81b86fd1f8aa8aa947d090524abeedd5d6de3ef0eb2daceba30a72.
An IC0 row and its multigrid row therefore come from different builds.
The later R1–R3 producer and its separate synthetic gate are recorded in
mobile evidence; these earlier experiments were not
silently relabeled as runs of that implementation.
Compiler: rustc 1.100.0, x86_64 Linux. Each numerical run requests one thread;
the district campaign uses two concurrent workers. Timings are one cold run
per recipe on a shared cloud host, with complete setup/phase profiles. They
are exploratory measurements, not a repeated statistical speed ranking.
The provisional G0 target is an accepted one-million-cell steady district run within two hours on one CPU thread, with a 6144 MiB preflight budget and independent field audit. This target is declared for future qualification, not achieved by the present short-budget experiment. The synthetic block has 20 buildings, a 200 m × 200 m × 60 m domain and 5H/15H/5H clearances for its declared prevailing wind. The 4 m grid has 37,500 cells; the 2 m grid has 300,000.
Pressure multigrid with buildings: no consistent gain
Solver elapsed time below includes native setup/solve scope; launcher and archive overheads are retained separately in the detailed records.
| Case | IC0 seconds | Multigrid seconds | Outer steps each | Independent fields | IC0/MG time |
|---|---|---|---|---|---|
| Synthetic block, 37,500 cells | 30.4519 | 33.5757 | 400 | Both pass | 0.907 |
| Canyon, 27,648 cells | 66.4748 | 63.4473 | 1100 | Both pass | 1.048 |
| Canyon, 93,312 cells | 816.9110 | 869.2023 | 3000 | Both pass | 0.940 |
| Synthetic block, 300,000 cells | 60.2711 | 60.5119 | 50/54 | Both incomplete; continuity audit fails | No ratio |
The accepted field comparisons use bounds declared before comparison: maximum velocity difference 1e-4 m/s, pressure difference 1e-3 m2/s2, and receptor relative difference 1%. Actual velocity/pressure differences are about 1e-15 on both canyon grids; receptor differences are 4.43e-10 and 3.27e-11 relative. Both methods solve the unchanged fine equation to the existing native and independent archived-field checks. There is no accuracy-for-speed trade.
The 27k gain is small and absent on 93k and the block. Therefore G1’s coupled gain requirement is not met (gate G1 remains open), and U2 keeps donor-cell/explicit/IC0 defaults. The opt-in implicit recipe remains available as an explicit case copy.
Setup and pressure work of multigrid (U1, P2c)
| Case | MG setup seconds | IC0 pressure iterations | MG pressure iterations |
|---|---|---|---|
| 37,500-cell block | 0.03923 | 2794 | 510 |
| 27k canyon | 0.006855 | 5890 | 2019 |
| 93k canyon | 0.07484 | 12827 | 4231 |
Each hierarchy builds once and is reused. Fewer PCG iterations do not imply lower coupled cost. Masked connected-aggregate verification covers exact Galerkin products, full-cycle symmetry/positive energy, independent pivoted dense reference solutions, sealed/anchored/singleton components, barriers, passages, cache rebuilding, projection and transactional cancellation.
The original sequential campaign recorded RUSAGE_CHILDREN.ru_maxrss, a
cumulative maximum over all preceding children. Its later rows must not be
read as per-case RSS. The durable 93k replays independently sampled 245,300 KiB
(IC0) and 273,484 KiB (MG). Profiles/fields identify every producer. An initial
IC0 session interruption is retained separately; the bounded replay supplies
the completed 93k result.
Geometry and the rotated canyon (gate G3 not passed)
Boxes, simple concave prisms, equivalent 0°/90° masks, exact shape volumes, represented volume errors, adjacent passage resolution, diagnostic paths and empty-ABL roughness controls pass. The independent checker rebuilds polygon masks, shape counts/volumes/passages and rejects forged geometry evidence. A positive optional non-ground wall roughness is independent of cell width; omission preserves the legacy wall recipe.
The frozen 45° study uses 32×32×12 and 64×64×24 grids, 90 s per run, receptor relative bounds 35%/25%, and requires shrinking error. It does not pass:
| Grid | Aligned | 45° |
|---|---|---|
| 12,288 cells | Accepted in 10.153 s, 400 steps | Rejected: receptor stencil crosses a stair-stepped solid (CFD-E042) |
| 98,304 cells | 90.092 s timeout, 285 steps | 90.111 s timeout, 260 steps |
No rotation accuracy ratio is reported for rejected/incomplete pairs. The strict interpolation rule is preserved. Wider passages, sufficiently resolved sampling and a complete frozen refinement study are needed before claiming orientation independence; improved wall treatment remains a possible follow-up.
Particle and vegetation verification
| Fixture | Result |
|---|---|
| Falling layer cumulative mass budget | Relative defect 3.47e-16 |
| Periodic settling L1, 32/64/128 cells | 0.0053689/0.0027203/0.0013672 |
| Wind-plume centroid | (0.390000000000005, 0.539999999999995), analytic (0.39, 0.54) |
| Complete steady settling–diffusion/source column, 16/32/64 | Relative RMS 1.760%/0.894%/0.451%; first-order boundary/spatial refinement |
| Column steady source/deposition rates | Agree within frozen 1.1e-6; maximum cumulative mass defect 1.08e-13 |
| Uniform-force canopy speed | Matches sqrt(0.08) with zero measured error |
| Porous-block pressure drop | 0.799999999965 versus integrated drag 0.800000000000 |
| Uniform leaf decay | Relative error 1.07e-6, mass defect 1.47e-15 |
| Leaf-block refinement | Relative errors 3.26e-4/8.10e-5/2.05e-5 |
| Active-canopy transient momentum | Verified first-order time convergence |
| Zero leaf area density | Entire numerical State bytes and empty-ABL terms unchanged |
The complete column supplements the earlier interior manufactured exponential residual test. It starts cold, includes its top-layer source and boundary balance, and permits steady particle sources only when a represented removal path exists in their fluid component. Gas outlet rules are preserved. Other regressions cover one-cell periodic drift, periodic roof deposition, near-buoyant aerodynamic diameter, positivity, units, superposition and exact checkpoint continuation. Instantaneous discrete canopy work is recomputed from staggered face fields; cumulative deposited mass is checkpointed.
Case/physics identities record declared zero-LAD input, so identity fields and full archives differ; byte identity applies to the complete numerical State. No gas, particle or canopy field is experimentally validated by these tests.
Delft district: the campaign keeps every row, no direction converged (gate G7)
Data: 3DBAG v2025.09.03, tile 9-284-556, EPSG 7415, CC BY 4.0; credit © 3DBAG by tudelft3d and 3DGI. Source: download, license. No user site was supplied; this is a public demonstration crop in Delft. The converter records 21 input objects, retains 5 prisms at 3 m, and records 16 below-two-cell omissions. Ground elevation range 0.413 m is within the declared 0.5 m screen. Buildings are cropped/rotated/simplified and terrain flattened; 15H clearances are used on all horizontal sides. Source emission 1e-7 kg/s and one porous canopy are synthetic additions, not measured traffic or vegetation. The raw map is not committed.
The 183,260-cell ensemble has twelve cold local directions 0, 30, …, 330°, 45 s per run, one thread each, two concurrent workers and 720 s total budget. All twelve rows are retained; all twelve are incomplete timeouts. Workflow elapsed 296.18 s is inside the budget. These are failed study rows, not concentration predictions. Their incomplete local continuity audits also fail where recorded; mass closure alone does not make them accepted.
The same physical footprints, source, canopy and domain were refined to 1,466,080 cells on local 270° (geographic 247° after 23° map rotation). With a 45 s solver budget and 6,144 MiB preflight budget it reached 5 steps in 46.83 s and remained incomplete. Observed peak RSS was 3,844,560 KiB. The raw fine job omitted its map rotation metadata and initially labeled geographic 270°; a declared derived metadata correction sets 247° without changing native input or fields. No grid-convergence conclusion is available from these incomplete runs.
The fine profile gives pressure solve 5.34 s (11.4%) and scalar transport 11.89 s (25.4%) of 46.83 s; setup is separate. Coarse district profiles put pressure near 5–6% and scalar transport near 40%. These are partial-run profiles.
A separate one-second orchestration smoke repeated all twelve directions
through the pinned optimization-jobs trusted-command runner. All twelve
failed rows, native archive ZIPs and verified runner manifests were retained
in 39.26 s. This verifies orchestration/failure preservation, not convergence.
An initial command-output cap error was fixed to the runner’s 64 MiB limit and
its twelve rejected rows were kept. app.cfd.wind-direction also completed
one actual SDK evaluation with zero failed/cancelled evaluations.
Validation and GPU decisions (U8, V1, V2)
U8 is not triggered: pressure is not the dominant measured cost, including the million-cell sensitivity run. No GPU backend or speed/parity claim is added. V1’s urban OpenFOAM translator/comparison remains pending; this host has no OpenFOAM installation, and the existing backend still supports its earlier two cases. V2 remains blocked on measured urban data/terms; no contact or agreement was made. Existing data inventory and CODASC protocol remain authoritative. The published backstep evidence does not validate urban PM or vegetation.
The next useful performance work follows the measured coupled profile: scalar substeps/canopy coefficient reuse, momentum residual and turbulence work. Re-run the same accepted 27k/93k fields and the frozen district/rotation gates before changing defaults or recommending district optimization campaigns.
Measurements of the code review
The code review of this release (14 November 2026; 2-CPU host, rustc 1.97,
one thread, fixed numbers of steps, so these are not accepted steady runs)
measured multigrid against the default ic0 preconditioner again:
| Case | Multigrid pressure iterations | ic0 pressure iterations | Multigrid pressure time | ic0 pressure time |
|---|---|---|---|---|
| Canyon, 27,648 cells | 1604 | 6192 | 3.5 s | 4.2 s |
| Canyon, 93,312 cells | 703 | 3159 | 5.9 s | 8.3 s |
| Canyon, 1,000,000 cells, 3 steps | 387 | 2309 | 58 s | 114 s |
| Canyon 18x16x96, weight ratio 256, 10 steps | 2236 | 1695 | 4.48 s | 1.15 s |
On the three grids with equal cell widths multigrid needs 3.9 to 6.0 times
fewer iterations. On the stretched grid it is slower, because the path for
grids with buildings has point smoothing only; the warning CFD-W004 now
says so for a case with geometry. Setup at one million cells took 0.8 s and
170 bytes per cell. These rows do not change the conclusion above: no
consistent end-to-end gain, default unchanged.
The review also corrected the rule for a cell center exactly on a slanted
polygon edge that two footprints share. An archive produced before that
correction whose polygons have such a center no longer passes
validation/check_fields.py; none of the committed cases is affected.