# Stoßlüften: model notes

This interactive illustration is a **wind-driven, two-dimensional approximation**, not a prediction of ventilation effectiveness or air safety. It does not model buoyancy, temperature, CO₂, pollution, humidity, occupant sources, or real building conditions.

The 12 × 6 m plan has 0.25 m square cells and a uniform 2.7 m ceiling. Horizontal and vertical cell faces form a unit-conductance pressure network. A red-black SOR solve produces balanced steady face fluxes; walls and closed doors remove edges. Exterior sources and sinks are equal. Fully open and tilted windows have assumed effective areas of 0.32 and 0.08 m². With two openings, Q = 0.65 × wind speed × the smaller effective area; this is an illustrative rule of thumb, not a site-specific prediction. With one opening, equal inlet and outlet fluxes are placed on separate portions of that opening, with Q = 0.06 × wind speed × area. The coefficient is a deliberately modest illustrative assumption, not a calibrated empirical claim. At zero wind both are zero. Real single-sided exchange can be driven by turbulence and temperature differences absent here.

A face-based, first-order upwind finite-volume update transports the original-air fraction with a small symmetric mixing flux (0.00035 m³/s per face). Incoming outdoor air has zero tracer; outflow carries the local concentration. Internal face transfers cancel exactly. The fixed 0.1 s step keeps the update stable for the permitted wind range; the whole-apartment metric is the volume-weighted mean of all cells. The field and elapsed time persist when controls change; presets reset. Particles illustrate the pressure field and are not used to calculate percentages. The graph shows the current run; preset-history overlays are not included.

The numerical model is original code; no external simulation code was copied. The [NVIDIA GPU Gems fluid chapter](https://developer.nvidia.com/gpugems/gpugems/part-vi-beyond-triangles/chapter-38-fast-fluid-dynamics-simulation-gpu) informed the general grid-based approach. [WHO natural ventilation guidance](https://www.ncbi.nlm.nih.gov/books/NBK143285/) provides context for wind-driven ventilation. [WebGL Fluid Simulation](https://github.com/PavelDoGreat/WebGL-Fluid-Simulation) is MIT licensed and was considered for visual inspiration, but its code was not reused. Fonts are served by Google Fonts.

Run numerical checks with `node tests/stosslueften/model.test.js` from the repository root.
