Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Roadmap

This page maps the development plan (version 2, which replaces the initial plan) to what 0.2.0 contains, and lists the next steps. The plan’s proposed case file is a draft; the schemas from cfd-craft describe are authoritative. RESULTS holds the numbers.

An external-backend workstream runs OpenFOAM Foundation 13 next to the native solver: a same-Re cavity cross-check and a preliminary comparison against public backstep measurements. EXTERNAL_RESULTS records the runs and the remaining gates. This gives the optimization ecosystem a path to an established solver while native numerical development continues. It does not close M3b: an external backstep is not a measured native street-canyon comparison. The native wall and throughput tasks below remain.

City blocks and mobile measurements

A second plan added city-block geometry, particles, vegetation and mobile measurements as opt-in features. Its stages are named U0 to U8 (urban) and R1 to R3 (rides), its gates G0 to G7 and GR, and its validation tracks V1 and V2. Numbers and failed rows are in the urban record and the mobile record; the user pages are guide chapters 22, 23 and 24.

StageContentState
U0 Throughput targetA declared target: an accepted one-million-cell steady district run within two hours on one thread (gate G0: target and baseline recorded)Declared and measured as a baseline; the target is not reached
U1 Multigrid with buildings (P2b, P2c)Masked pressure multigrid, its setup costImplemented and verified. Gate G1 (a measured end-to-end gain on the 27k and 93k canyons) is open: 3 to 6 times fewer pressure iterations, run-time ratios 1.05, 0.94 and 0.91; slower under strong anisotropy
U2 DefaultsDecision on default numericsDecided: the defaults stay (donor-cell, explicit, IC(0))
U3 Polygon prisms and wall roughnessfootprint_m, building_roughness_m, per-shape evidenceImplemented and verified. Gate G3 (a canyon rotated by 45 degrees reproduces the aligned receptor values at two resolutions) is not passed: one case rejected, two timed out
U4 Map converterintegrations/urban_map.pyImplemented with tests; flat ground only
U5 Particle size classes (M5a)Settling, deposition, PM sums, mass budget (gate G5)Implemented; fixtures and budget pass. Not validated
U6 Vegetation (M5b)Drag, canopy turbulence terms, leaf deposition (gate G6)Implemented; fixtures pass and zero leaf area leaves the state bytes unchanged. Not validated
U7 District campaignTwelve cold wind directions with retained rows (gate G7)The campaign keeps every row, as G7 asks. The steady study is open: no direction of the Delft demonstration converged within 45 s
U8 GPU experimentConditional on a measured pressure bottleneck at a million cellsNot triggered: pressure was 11 % of the profiled fine run
R1 Path receptors and virtual ridespath receptors, integrations/virtual_ride.pyImplemented and verified against analytic cases
R2 Street sourcesintegrations/traffic_sources.pyImplemented with tests; rates are supplied, never derived
R3 Inference and routesFrozen-flow responses, fit, pass planning, route selectionImplemented. Gate GR (recovery on held-out synthetic rides, ambiguity reported) passes on two synthetic studies of the same model; nothing beyond that
V1 OpenFOAM canyonThe same canyon in OpenFOAM with a body-fitted meshOpen; the backend still runs its two generated cases
V2 Measured dataRides or wind-tunnel data under a frozen protocolOpen; no data (protocol)

Milestones

MilestoneExit gate in the planState in 0.2.0
M0 Contracts and evidence skeletonCase/result schemas, diagnostics, resource estimator, data inventory, proposed protocolsDone. Diagnostics carry codes and field paths (catalog). The memory and output estimates bound the measured peak and the written artifacts. validation/data-inventory.json lists each dataset’s access status. The CODASC protocol is blocked_data
M1a Grid and elliptic operatorsUniform staggered grid, mask topology, pressure reference, projection identities, manufactured PoissonDone. The matrix-free operator matches an independently assembled reference on a masked grid with an outlet, a sealed pocket and a periodic axis (products to 1e-12, solutions to 1e-10). One gauge per closed component; projection and adjoint identities; second-order Poisson convergence
M1b Verified laminar flowDocumented time scheme, channel/cavity/manufactured flow, bounded execution, CPU profileMostly. Periodic shear has spatial and temporal order 2.00 and 2.01, with Poiseuille, Couette and the Re=100 cavity (decisions). Diffusion is explicit by default and in transient runs, where it limits the time step; the opt-in implicit steady algorithms treat viscosity implicitly. Measured CPU time and memory are in RESULTS
M2 Passive transport and response matricesSources/receptors, analytic transport, superposition, synthetic inverse tutorial, small command jobDone, without area sources. Point, line and volume sources; the Gaussian order is 2.32; superposition holds to 2.2e-16; there is a SciPy reference, the source-inference tutorial and the command launcher. The discrete adjoint is a later extension
M3a Neutral ABL packagek-ε with consistent wall, inlet and top; empty-domain profiles passPartly. The empty ABL drifts 0.23 % (U), 0.94 % (k) and 2.68 % (ε) in H..5H, under gates of 2 % and 5 %. Below H, ε drifts up to 16 %. There is one top configuration, the open atmosphere. By default the building-wall roughness is tied to the cell width, which the plan rules out (§5.3); the optional building_roughness_m sets it independently
M3b Finite canyon evaluationGrid and domain studies, development and held-out cases, external comparison, experimental verdictNot passed. The development case (W/H = 1, 270°) and the held-out analogs (W/H = 2; 225°) are steady on 18x16x12. The resolution series does not finish, there is no external comparison, and the experimental verdict is blocked_data
M4 Application integrationScalar adapter, budgets and cancellation, campaign reporting, replayPartly, ahead of order. An fcmaes worker runs evaluate, BiteOpt retry and the GP surrogate, within the evaluation’s thread allowance and with cancellation. There is also the command launcher. There is no experiment-craft campaign or fine-grid replay yet
M5a Particle settlingBin schema, settling and capture tests, mass budgetsImplemented as opt-in particle size classes with settling, ground, roof and leaf deposition and PM2.5 and PM10 sums; the settling fixtures and the mass budget pass (urban record). Not validated
M5b Vegetation and depositionDrag and deposition checks, factorial scenariosPartly, ahead of M3b: opt-in porous vegetation with drag, canopy turbulence terms and leaf deposition; the drag and deposition checks pass. No factorial scenarios, and M3b is still not passed
M6 Mitigation optimizationBudget-matched baseline, held-out scenarios, fine-grid replayNot started; needs M4 and validated physics
M7 Neighborhood and climatologyCity geometry, conditional scenario maps, separate annual gatePartly: polygon prisms, a map converter and a twelve-direction campaign exist. No direction of the district demonstration converged in its budget; there are no scenario maps and no climatology
M8 Time-resolved turbulenceLES with spin-up and averaging studiesNot started
M9 AccelerationOne targeted experiment on a measured bottleneckFirst native CPU experiment done: the performance results measure faster pressure solves and stencils at fixed work, with unchanged fields and gates and a higher memory estimate. Opt-in symmetric multigrid, also for grids with buildings, and opt-in implicit steady pseudo-time (P4/P5) are implemented; multigrid with buildings shows no consistent end-to-end gain, and semi-implicit transient diffusion remains open

The performance results give paired CPU and memory measurements of the current implementation against the previous one. Their hardware differs from that of the resource measurements in RESULTS. The backend comparison times the cavity with both backends on one machine: OpenFOAM is 4.7–5.5 times faster than native steady mode, mostly because the native method needs about three times as many explicit pseudo-time steps, each with a PCG pressure solve. The opt-in implicit steady algorithms (results) have since reversed that on the cavity at matched accuracy. The masked extension of the optional multigrid preconditioner (P2b) and the measurement of its setup cost (P2c) are done; they cut pressure iterations without a consistent gain in run time. The anisotropic line/semicoarsening substep is implemented; its results and a fresh gap status and iteration list separate throughput from accuracy. Accepted fine-grid and experimental-validation gates remain open.

First-release definition

RequirementState
One documented neutral RANS, wall and inflow combinationYes (flow card), with the below-H drift and the wall-roughness caveat
Conservative passive transport with explicit source unitsYes, for point, line and volume sources
A finite 3D canyon with end effectsYes: 10 m buildings in a 16 m wide domain
A development case and held-out geometry and wind casesYes, on a coarse grid
Grid, domain and parameter sensitivityDomain (extended outlet) and parameter (Sc_t 0.5 and 0.9) yes; grid no
Measured-data comparison with a frozen protocolBlocked: no data
Prompt-driven tutorial with smoke and study presetsYes (guide)
Runner integration that keeps CFD evidenceYes (integrations/)
Measured CPU time, peak memory and output size on named hardwareYes (RESULTS)

0.2.0 is therefore a research prototype with the verification evidence recorded above. The experimental package release is independent of physical qualification; a physically qualified canyon release still requires the grid study and measured data. See Releasing.

Numeric targets of the plan

TargetPlan0.2.0
Assembled versus matrix-free pressure≤ 1e-10Products ≤ 1e-12 relative, solutions ≤ 1e-10
Spatial order of the second-order modes≥ 1.82.00 (flow), 2.32 (MUSCL transport, gated at 1.8)
Temporal order≥ 1.82.01
Closed periodic scalar budget≤ 1e-10Below 1e-12 on the periodic fixture; the acceptance bound of a run is 1e-9
PositivityNo negative mass beyond round-off; report the minimum and the negative massCFD-E053 stops the run; each constituent reports its minimum and negative mass
RANS continuity1e-5 net, 1e-4 localThe same gates
RANS equation residuals1e-5, recomputedThe same gate, recomputed from the fields
Steady scalar balance1e-6The same gate
Receptor stability0.1 % over three successive 100-iteration windows0.1 % over three 100-step windows in every committed steady case, relative to each monitor’s window mean
Empty ABL2 % for U, 5 % for k and εMet in H..5H; below H reported, not gated
Superposition / transpose reciprocity1e-82.2e-16 / no adjoint yet
Study resolution< 5 % change between the two finest gridsNot reached; the study does not finish

Tutorials of the plan

TutorialState
1. Wind direction and a canyon sensorPartly: canyon_study.py with smoke, sensitivity and study presets and a prompt. Wind-convention regressions cover the cardinal and oblique directions and the inlet/outlet classification. There are no measured data, and the grid series does not finish
2. What sensors tell about emissionsDone on prescribed flow: superposition, held-out receptors, an unidentifiable pair (rank 2), bounded noise, and model mismatch from changed inflow and grid. The LP, SQP and adjoint extensions are not started
3. Trees, ventilation and particle removalPartly: chapter 22 runs particles and a hedge on the coarse canyon. There is no study with scenarios and no validation
4. Improving a design without exploiting the simulatorPartly: integrations/run_jobs.py compares evaluate, BiteOpt retry and the GP surrogate at 24 evaluations each, with no failed evaluations. Held-out and fine-grid replay are not started
5. A neighborhood map and the limits of annual claimsPartly: map import and a twelve-direction campaign (chapter 22); the district demonstration did not converge, and there is no annual statistic

Remaining differences from the plan

  • Building-wall roughness (§5.3): by default it is the smaller of the ground roughness and 0.001 cell widths. building_roughness_m specifies it independently of the ground and the grid, as the plan asks; it is optional, and the default did not change.
  • Top boundary (§5.3): only the open-atmosphere configuration exists; a wind-tunnel reproduction needs its own.
  • Diffusion (§5.2): explicit by default and in transient runs; implicit only in the opt-in steady algorithms.
  • Sources (§5.4): there are no area sources. A source that intersects a solid is rejected outright, so no redistribution policy is needed yet.
  • Preview (§6.2): it publishes the derived case and its geometry, and it rejects vanished boxes, topology changes and solid-volume changes above 20 %. It does not list per-box changes against the original.
  • Geometry evidence (§5.1): it records, per shape, the exact and represented volume and the narrowest street in cells. It has no facade/ground classification.
  • verify (§6.2): it runs the pressure fixture of one case. The suites run through the validation scripts.
  • Flow cache (§4.4): the library reuses one accepted flow for several releases (mobile_response::PreparedFlow, used by the mobile study). The command line has no such option.
  • Guideline document: the COST 732 numbers behind W002 and W003 come from secondary summaries. The primary document was not retrieved.

The gate that decides what comes next

Throughput is the limit; memory is not. One million cells peak at 851 MiB, against an estimate of 1064 MiB, which meets the plan’s M1/M2 memory gate. A three-step run at that size, including the grid construction, takes two minutes.

With the explicit default the steady canyon cost grows roughly with the sixth power of the refinement ratio: explicit diffusion and advection bound the pseudo-time step, and every step solves the pressure equation twice with about 50 CG iterations each, so the 36x32x24 and 54x48x36 canyon grids do not converge within 300 seconds. The opt-in implicit recipe accepts them with the tracer in 57.6 s and 615 s on one thread (P5c/P5d results), but the tutorial’s study preset still runs the explicit algorithm and the canyon is not grid-converged at 93k cells, so the resolution study, and with it any physical canyon claim, is still open.

Next steps, in order

The native accuracy track now starts with the Stage V verification protocol and its donor-cell baseline. Stages P3a (conservative second-order momentum), P4 (implicit viscous correction), P5a (implicit steady projection), P3b/P5c (open boundaries/RANS), P5d (scalar transport) and the matched-accuracy measurement M are implemented as opt-in choices with unchanged defaults; the conditional P5b was not needed (matched accuracy, performance iterations). The decision on defaults is made: they stay. Masked multigrid (P2b) and its setup-cost measurement (P2c) are done, without a consistent end-to-end gain.

The mesh-initialization plan provides an explicit accepted-coarse-to-new-fine start, verified against a cold fine cavity (results). A bounded refinement campaign maps once and chains eligible fine stages, with complete retained parents and work and archive checks; its results record the declared level-2 backstep campaign: three 4000-iteration stages, each passing the audit. It ended at the stage limit with the Uy and k residuals still above the gate. An accepted fine backstep is still missing; another declared trial would need more fine work. Mesh independence, inlet and model uncertainty and physical qualification remain separate open gates.

The external-backend track has a separate wall-resolution plan. Its wall-resolved SST reference converges and passes the independent audit at level 1; a mesh pair needs a larger per-case budget or a coarse-to-fine start, and inlet and model sensitivity remain open (results). This does not advance the native canyon’s physical-validation gate.

The continuation plan provides verified same-mesh field continuation in bounded stages, which lets a solve exceed one run’s 3600 s limit; staged, the coarse reference reaches the same converged solution as one run. A level-2 mesh still needs several stages of roughly an hour each, whose sources must pass the source flux gate as preregistered; whether that gate suits continuation is an open decision in the continuation results. Nearest-cell coarse-to-fine initialization exists for accepted cold sources; conservative interpolation, chained sources and an accepted fine/coarse turbulent pair remain work.

  1. Throughput (M1b, M3b): the measured profile of the district runs puts scalar sub-steps, canopy coefficients, the momentum residual and turbulence ahead of pressure, so these come first; line smoothing for multigrid with buildings; semi-implicit diffusion for transient runs; and solving the passive scalar after the flow has converged in the command line too. Each change is accepted only if the verification suite and the empty-ABL check pass with unchanged tolerances.
  2. Near-wall consistency (M3a): a log-consistent velocity gradient in wall-adjacent cells, so the empty ABL also stays homogeneous below H, and a building-wall roughness specified independently of the ground and the grid.
  3. Resolution study (M3b): the canyon at 10 or more cells per building height, a domain that meets the COST 732 clearances, and a GCI where the sequence supports one.
  4. Measured data (M3b):
    • CODASC or the Hamburg datasets; access requests are prepared for the owner to send.
    • A protocol frozen before evaluation.
    • A pinned OpenFOAM run of the same case.
  5. Replay and the open city-block gates, in parallel:
    • Fine-grid, held-out replay of the optimizer tutorial (M4).
    • The rotated-canyon study (G3) with wider streets and a full refinement series.
    • A district run that converges, before any district optimization.

Domain questions that would sharpen M3 onward:

  • Which practical question matters most: mean sensor interpretation, source attribution, mitigation comparison or short-term peaks?
  • Which instruments and measured quantities are available?
  • Which existing geometry, inflow or reference cases may be used?