Repository navigation
Releases
version 0.2.0
City blocks and mobile measurements: buildings from a map, particle size classes, vegetation, concentrations along a route, virtual sensor rides and street emissions inferred from rides. Every feature is opt-in. A case that uses none of the new fields gives byte-identical numerical state and fields; the code review compared 20 runs of the committed cases with the 0.1.1 binary. The new models are numerically verified and not experimentally validated; the open gates are listed under Known limitations. The version is 0.2.0 because the Rust library API changed (see Changed). The run records behind the two new evidence pages are attached to the GitHub release as cfd-craft-0.2.0-evidence.zip.
Added
- Polygon-prism buildings: a
geometryentry withfootprint_mis a vertical prism with a simple polygon footprint, represented by whole cells.geometry.jsonandcheckreport, per shape, the exact and represented volume and the narrowest street in cells;geometry_min_passage_cellsasks for a warning (CFD-W011),building_roughness_msets the roughness of building walls independently of the grid (CFD-E084,CFD-E085). Guide chapter 22. - Pressure multigrid for cases with buildings and with several separate fluid regions (
numerics.pressure_preconditioner = multigrid), which were rejected before. Chapter 22, developer page. - Map converter
integrations/urban_map.py: projected GeoJSON or CityJSON building footprints to a case with prisms, with crop, rotation, clearances and a provenance file of every assumption (CFD-M001). Chapter 22. - Particle size classes: a constituent with
particlesettles (Stokes with Cunningham correction, or a supplied speed) and deposits on ground and roofs; the result reports settling speed, aerodynamic diameter, deposited mass and rate per surface andparticulate_mattersums for PM2.5 and PM10 (CFD-E080,CFD-E081). Chapter 22, transport model card. - Porous vegetation:
vegetationvolumes with leaf area density, drag, two canopy coefficient sets for the k-epsilon model (green1992,sanz2003) and leaf deposition of particles;summary.vegetationreports the drag work rate and force (CFD-E082,CFD-E083). Chapter 22, flow model card. - Wind-direction campaign
validation/urban_campaign.py: twelve cold-start directions with budgets, an independent field check per direction and retained failed rows; optionally asoptimization-runcommand jobs. The optional fcmaes worker gains the modelapp.cfd.wind-direction. Chapter 22, chapter 14. - Path receptors: a receptor of kind
pathsamples the field along a route at a constant height and reports the samples and their mean (CFD-E086toCFD-E088).integrations/virtual_ride.pycomputes the reading of a first-order sensor on a ride through an accepted steady field (CFD-M004). Chapter 23. - Line sources from street data:
integrations/traffic_sources.pyadds line sources from street centerlines and a table of supplied emission rates (CFD-M002). Chapter 24. - Frozen-flow source responses (
cfd_craft::mobile_response::PreparedFlow, examplemobile_response): one accepted flow, then one transport run per source group without any flow update (CFD-E089).tutorials/mobile_measurements.pybuilds a ride response matrix, fits street emission rates with a rank and ambiguity report, plans the number of passes and selects routes under a time budget with the mixed-integer solver of LP-IP-craft (CFD-M003). Chapter 24. validation/check_fields.pyrecomputes, independently of the solver, polygon masks and per-shape evidence, deposition rates, particle classification, vegetation drag, path samples and means, and the hash of a frozen flow.- Five verification cases under
cases/verification/(polygon prism, particle settling, steady particle column, vegetation force balance, leaf decay), the exampleexamples/manual/path-ride.jsonand ten test files undervalidation/, run by the new CI joburban-mobile. - Evidence records for the urban features and the mobile measurements, failed rows included.
- Guide Part VI, "City blocks and mobile measurements" (chapters 22 to 24), with examples that the documentation check runs; 20 new tasks on the how-to page; the new scripts in the scripts reference; units of the new quantities in units and conventions.
Changed
- Rust library users must update code. The public structs
Block,Constituent,Budget,ScalarEvidence,SummaryandGeometryEvidencegained fields, and the enumReceptorgained the variantPath. Code that constructs these structs with a literal or matchesReceptorexhaustively no longer compiles until the new fields and the variant are handled. geometry.jsonof every case with solids, also a case with boxes only, gains the membershapes. The manifest hash of such an archive therefore differs; the numerical state, the fields, the checkpoint andprobes.csvdo not.describegainsgeometry_kinds,receptor_kinds,path_samplingandurban_extensions, new optional members in the case and result schemas, and a changedlimitationslist. No required member was added.CFD-E034is no longer raised for multigrid with a geometry mask.CFD-E035also covers the coarse factor of a masked grid.CFD-E020andCFD-E043accept a steady particle source whose way out is deposition; a gas still needs an open boundary.CFD-W004has its own text for a case with geometry. Diagnostics.- The documentation describes one product: the README, the landing page, the agent page, the comparison page and the roadmap no longer treat these features as a separate extension, and the guide has 24 chapters.
AGENTS.md: the scope paragraph names the optional features that exist.
Fixed
Found by the code review of the features above, before any release contained them:
- A cell center exactly on a slanted edge shared by two polygon footprints could fall in neither footprint and leave sealed fluid cells inside a merged building. Edge crossings are now evaluated from the lower endpoint, so the result does not depend on winding or on the first vertex; the independent checker uses the same rule.
CFD-W004claimed line smoothing for a case with buildings; the masked path has point smoothing only, and the message and the pages now say so.- A request
geometry_min_passage_cellson a grid above ten million cells was silently not evaluated; it now drawsCFD-W011with the text "not evaluated". - Route selection certified its result against the objective value of the incumbent instead of the solver's proven bound; a selection without a finite proven bound is no longer certified.
- The mobile study trusted each archive's own frozen-flow hash; it now recomputes the hash of every archive of a wind and requires equality, and it records a malformed archive as a failed audit instead of stopping.
validation/check_fields.pyaccepted an archive whose per-shape geometry records had been deleted, extra deposition surfaces and deposition of a passive gas; all are rejected now.validation/summarize_urban.pystopped with an exception on an interrupted run or a missing pair member; such rows are retained.- The map converter replaced a nonfinite height or level count by the default height, accepted a GeoJSON
crsmember naming geographic coordinates, and answered malformed input with a traceback; all areCFD-M001now. The street converter rejects a geographiccrsmember and deeply nested input withCFD-M002. - The map converter looked for its default
--templateand--binaryin the current directory and failed withCFD-M001when started elsewhere; like the other tools it now takes them from the checkout that holds the script. - Tests that did not test what they said (polygon self-intersection, building roughness in the wall functions, PM sums by aerodynamic diameter, rotation of map geometry with the wind, refusal of prescribed wind in the campaign) now fail without the code they cover.
Known limitations
- Nothing in this list of features is experimentally validated. No urban comparison with OpenFOAM and no comparison with measured urban data exists.
- Multigrid with buildings needs 3 to 6 times fewer pressure iterations on isotropic canyon grids, but the measured end-to-end time is about the same as with the default
ic0(ratios 1.05 at 27k cells, 0.94 at 93k cells, 0.91 on a synthetic block), and it is slower under strong grid anisotropy. The default staysic0. Urban record. - The canyon rotated by 45 degrees did not pass its frozen study (one case rejected, two timed out); independence of grid orientation is not shown.
- No wind direction of the Delft district demonstration converged within its short budget; a distri...
Version 0.1.1
A documentation release of the research prototype. A user gains one guide of 21 chapters ordered by difficulty, a task index, a reference section generated from describe and the Python docstrings, and a documentation site at https://dietmarwo.github.io/CFD-craft/; the code blocks of these pages are run and their outputs compared by a CI check. Solver behavior is unchanged: the same case gives the same numerical results, and the case and result schemas are unchanged; the build version and the source and executable fingerprints in a result differ, because the version and the sources changed. One runtime string changed: the schema description of the multigrid option in describe links the new page. Experimental canyon validation and a successful fine-grid resolution study remain open gates.
Added
- Documentation restructure. One guide of 21 chapters ordered by difficulty replaces the user manual, the tutorial pages and the integration guides; the first chapter installs with
pipand runs the smallest case. New pages: a landing page, "How do I …?" with 82 tasks, a comparison with OpenFOAM and Ansys Fluent that uses committed measurements only, a reference section with pages generated fromdescribeand the Python docstrings, and index pages for developers, evidence and history. - A documentation site built with mdBook and deployed to GitHub Pages (
book.toml,docs/SUMMARY.md,.github/workflows/pages.yml);scripts/check_site.pyverifies every internal reference of the built pages (CFD-R004). scripts/check_docs.pyruns the code blocks of the guide, the README files and the reference pages and compares the shown outputs, floats within the tolerance each page declares (CFD-R003).docs/check-counts.jsonholds the minimum number of checked blocks per page, so a page cannot lose a checked block unnoticed. A new CI jobdocsruns it on every push withscripts/generate_reference.py --check(CFD-R002); the OpenFOAM and optimization-job chapters run in the existing opt-in jobs. See the documentation check.
Changed
docs/is sorted by reader:guide/,reference/,developer/,evidence/(the validation records, moved fromvalidation/) andhistory/(the iteration plans). Every old path keeps a permanent stub that links to the new place; the stub of the user manual keeps its headings and maps the 31 example numbers to chapters.- The README starts with one sentence, the install line and a Python example with its output, and has seven documentation links.
docs/ai-context.mdstarts with the run loop and the rules. - Links in the rustdoc, the package metadata and one schema description of
describe(the multigrid option) point to the new paths. No solver behavior changed. - README: links the overview of the 18 related repositories.
- CI:
retry-runner-shortage.ymlreruns the failed jobs of a release or CI run when every job that did not succeed was cancelled before a runner picked it up (hosted macOS arm64 shortage), up to three attempts. A release is no longer held back until someone reruns it by hand. - The optional
fcmaes-cfd-workerpins optimization-jobs12f9d57(its 0.4.0 release602d31aplus documentation-only changes) and fcmaes-rustf764a75, whose crates are unchanged since583f33aapart from that pin. Therunner-integrationCI job buildsoptimization-runat the same revision (it builtcc6b03d).integrations/run_jobs.pyagainst it reproduces the recorded objectives (baseline 1.8682465, BiteOpt 1.8657713, GP 1.6799143). .gitattributesexcludes the Python validation suite (validation/) from GitHub language statistics, so GitHub reports the repository as Rust.
CFD-craft 0.1.0
First release, a research prototype, on PyPI (pip install cfd-craft) and crates.io (cfd-craft, cfd-craft-cli). Experimental canyon validation and a fine-grid resolution study remain open. Details: CHANGELOG.md.