# Wind around buildings

```json
jifto_analysis {"module": "wind", "domain": {"center": [0, 0, 0], "radius": 80, "height": 50}}
jifto_settings {"set": {"wind.AnalysisMeshRotation": 270, "wind.InletVelocity": 5, "wind.Resolution": 1.0}}
jifto_run {"module": "wind", "wait_seconds": 300}
jifto_results {"module": "wind", "points": true}
jifto_capture {"view": "top"}
```

- The domain is a box with a round analysis area: `center` is its base centre, `radius` half its
  width, `height` its height, in model units. It makes the pedestrian analysis surface and takes every
  object inside as context. Put the buildings in first.
- `wind.AnalysisMeshRotation` is the direction the wind comes from, in degrees (270 = from the west).
  `wind.InletVelocity` is its speed in m/s. `wind.Resolution` is the cell size in metres: coarser runs
  faster.
- The job follows jifto's report protocol: the flow spins up for one flow-through of the domain, then
  is averaged over another. Progress is **solver steps** of the two together; done means averaged.
- Without a domain or analysis surface the job fails at once with `no-available-analysis-meshes`
  and what to call.
- The running mean goes on averaging while the solver runs: `averaged_steps` in the job's result and
  in `jifto_results` says how many steps the field you read holds. Read results right after the job.

## Wind comfort

```json
jifto_settings {"set": {"wind.WindComfortDirections": 8, "wind.WindComfortWarmup": 2, "wind.WindComfortAveraging": 5}}
jifto_run {"module": "wind", "kind": "comfort", "wait_seconds": 600}
jifto_results {"module": "wind"}
```

- A comfort study runs every direction in turn (spun up for `WindComfortWarmup` and averaged for
  `WindComfortAveraging` domain depths each) and assesses the result with the site's hourly weather
  (Lawson by default). Progress is **directions** done of directions needed; it starts once the grid
  has refined to the target resolution (phase `refining`).
- Without hourly weather for the site the directions are weighted equally; the job's result says so.
- Anything that stops the wind solver (switching wind off, clearing the domain or the analysis
  surfaces) ends the study: the job fails with `stopped: ...`, and a study that cannot start fails
  with the solver's reason.
- Results: wind speed in m/s per point of the pedestrian surface. Compare the lee of a building with
  the free stream upwind; the statistics give the area in each speed band.
