PLANNED INTEGRATION, NOT NEW RESULTS. WRF and WPS executables are verified on Snellius. Complete geography/forcing readiness and benchmark remain pending. Current animations are still the original pilot.

WRF and OpenFOAM: equations, meshes and wet/dry integration

WRF to OpenFOAM: wet and dry Delft experiments

Status: design and preflight only. No WRF run, high-resolution CFD run or coupled animation is claimed complete. Existing published views remain unchanged science products.

Model comparison

Aspect WRF atmospheric model Current IHE OpenFOAM test Proposed local extension
Purpose Evolving regional weather, land/atmosphere exchanges and precipitation Building effects on a prescribed mean wind Local building-resolving flow forced by WRF
Mass equation Compressible continuity: ∂ρ/∂t + ∇·(ρu) = 0 Incompressible continuity: ∇·U = 0 Low-Mach incompressible approach, with buoyancy only if a thermal solver is explicitly selected
Momentum Physical form: Du/Dt = −∇p/ρ + g − 2Ω×u + F, with subgrid momentum tendency F; WRF discretises this in its atmospheric coordinates Steady RANS momentum: (U·∇)U = −∇p/ρ + ∇·[2(ν+νt)S] Initially a sequence of independently converged quasi-steady RANS cases; transient URANS/LES is a separate later choice
Meaning of symbols ρ: density; u: resolved velocity U: mean velocity; p: pressure; ν: molecular viscosity; νt: modelled turbulent viscosity; S: mean strain-rate tensor Both models average unresolved motions differently; equal numbers do not establish equal physics
Heat and moisture Prognostic thermodynamic and water-species equations, with radiation, land-surface and cloud schemes Not solved in our neutral steady test Add only after choosing surface energy, material, moisture and radiation treatment
Turbulence Subgrid mixing represented by selected boundary-layer and diffusion schemes k–omega SST closure Check compatibility of inlet turbulence with WRF closure, surface roughness and CFD wall functions
Buildings Urban canopy parameterisation in a conventional kilometre-scale configuration Explicit surfaces from 3DBAG, selected subset Separate quality-checked building meshes around IHE and TU Delft campus
Grid Nested structured terrain-following atmospheric grids 45,444 fitted finite-volume cells Target local 2–5 m cells for first neighbourhood pilot; 0.5–2 m sensitivity near selected facades only after cell-count measurement
Rain Cloud microphysics predicts regional/grid-cell precipitation No droplet or rain physics First show WRF precipitation as atmospheric forcing; solve size-dependent droplets separately if deposition is needed
Time Physical weather evolution 60 SIMPLE iterations, not physical seconds WRF timestamps plus explicit CFD case IDs; quasi-steady snapshots are not continuous physical turbulence
Outputs Wind profiles, temperature, pressure, water vapour, precipitation accumulations Native velocity samples on a 20 m plane Matching-height comparison, wind sections, selected streamlines and actual mesh cutaways
Validation Station, sounding and radar comparisons; sensitivity to physics/resolution Not yet converged or validated Independent observations and mesh/convergence checks at each site

Experiment A: one regional WRF simulation, two local sites

Candidate run period: 2025-09-09 12:00 UTC to 2025-09-11 00:00 UTC, with the first 12 hours treated as spin-up and the following 24 hours analysed. This preserves the existing 10 September rain context. A wet and a dry comparison hour must be selected from the resulting WRF precipitation, then checked against observations. The same hour need not be dry at every grid point. Do not advertise a dry scenario as clear-sky or thermally neutral merely because rainfall is zero.

Candidate nests, centred approximately on Delft, all proposed rather than generated:

Domain Nominal spacing Grid points E × N Approximate span Purpose
d01 9 km 101 × 101 900 × 900 km Western European synoptic context
d02 3 km 121 × 121 360 × 360 km North Sea and Netherlands weather
d03 1 km 121 × 121 120 × 120 km Delft regional/urban atmospheric forcing

Ratios 1:3:3. Candidate parent starts: (1,1), (31,31), (41,41). These are centred nested-grid arithmetic, not validated map placement. Confirm coastlines, domain edges, urban categories, terrain, nesting geometry and applicable time step in WPS before acceptance. Target 60 vertical levels with adequate near-surface resolution, subject to the actual generated first-layer heights. Do not infer a 1 m resolved street wind from a 1 km WRF grid.

Use one-way WRF nesting and one-way WRF → CFD coupling initially, without CFD feedback to WRF. Standard urban parameterisation and WRF near-surface diagnostics must not be mistaken for building-resolved inlet profiles. Check whether sampled WRF columns already include urban drag, and avoid inadvertently counting the same building drag twice in CFD.

Physics choices are candidate design settings, not a ready namelist: land-surface model and surface layer compatible with the selected PBL scheme, a documented microphysics and radiation configuration, and an appropriate urban-canopy option after confirming required static inputs. Cumulus treatment on d01 versus convection-permitting inner nests needs a deliberate documented choice. Existing land-use categories alone do not establish availability of detailed urban morphology, building-energy or anthropogenic-heat inputs.

Preprocessing and forcing contract

Stage / file Required information Acceptance gate
Static geography → geo_em.d0*.nc Elevation, land cover, soil categories, coastline and any supported urban inputs WPS geography datasets exist and cover every requested category/resolution; site positions and coastline inspected
Meteorological forcing → WPS intermediate files Full 3D atmospheric state plus surface fields spanning the period and outer-domain boundaries Supported GRIB source/Vtable or a validated converter, complete levels/variables/times, checksums recorded
met_em.d0*.YYYY-MM-DD_HH:mm:ss.nc Horizontally interpolated forcing from metgrid No missing timestamps or mandatory fields; units and vertical coverage checked
wrfinput_d0*, wrfbdy_d01 Initial and boundary states from real.exe Initialisation success and physically plausible profiles
wrfout_d03_* 3D U/V/W, PH/PHB, T/P/PB, QVAPOR, surface state and rain accumulations Completed time range, no NaNs, accepted stability and budget diagnostics
wrf-columns.nc (new adapter output) Earth-relative east/north wind, heights AGL and absolute elevation, potential temperature, pressure, humidity, surface flux context Destagger velocity/geopotential fields, rotate grid-relative winds, preserve UTC and vertical datum
boundary-profiles.nc + mapping manifest WRF values mapped to each CFD boundary/height/time with source columns and weights Lateral/vertical/time interpolation, extrapolation flags and a continuity-consistent inlet/outlet strategy; no arbitrary imposition of all fields on all boundaries
CFD native time directories / sampled planes Converged flow, turbulence quantities and model-specific pressure Mesh checks, inlet consistency, residual and integral convergence, conservation and independent validation
scene-weather.json (new proposed viewer contract) UTC frames, WRF source/time, CFD case/time, field units, precipitation intervals and QA state Missing/failed fields displayed as unavailable, never silently interpolated or fabricated

The currently downloaded Open-Meteo point response is not sufficient to initialise WRF. Existing Aurora surface products and ERA5 pressure-level subsets are not presumed complete WRF forcing. Confirm a full compatible source before staging a run. Download large data directly to Snellius project space, not the laptop. Account for provider access terms and queue delays.

Coordinate and physical mapping

  1. Destagger WRF U/V (and W/geopotential when used); use WRF map-rotation fields to obtain earth-relative wind. Compute height from geopotential (PH+PHB)/g, then consistently subtract model terrain for AGL. Keep the source terrain elevation and the CFD vertical reference in the mapping manifest.
  2. Convert lon/lat to local RD east/north, then into the chosen CFD frame. For changing wind direction, choose either a fixed CFD domain with a documented changing inlet/outlet strategy or separately rotated quasi-steady cases. Do not reuse the old rotated steady case for an arbitrary new direction without regenerating its mapping and boundary conditions.
  3. Build vertical wind and stability profiles from more than just U10/V10. WRF pressure is not directly OpenFOAM kinematic pressure; OpenFOAM pressure variable conventions and reference levels must be handled explicitly. Potential temperature is not Celsius air temperature. Water-vapour mixing ratio is not relative humidity.
  4. Do not directly equate WRF PBL turbulence variables with SST k and omega. Use a documented compatible derivation or measured inlet turbulence, with sensitivity tests. Match roughness and wall functions to avoid a spurious developing boundary layer.
  5. For the first mechanical-flow comparison, select a period with approximately neutral stability, or label the neutral CFD simplification. A stable night-time or convective daytime profile requires a suitable buoyant/thermal CFD configuration to represent stability. The old 23:00 UTC case is not automatically neutral.
  6. Compare WRF and CFD at the same UTC, AGL heights and temporal averages. The primary question is what building-resolved CFD adds to regional forcing, not whether the two fundamentally different grids produce identical point values.

Mesh visual and high-resolution gate

Extract the saved native OpenFOAM polyMesh, not a decorative scene grid. Produce a vertical section through IHE and a near-ground horizontal section with actual cell edges, refinement levels, building IDs, coordinates and a metre scale. Label whether the image is the existing 45,444-cell smoke mesh or a newly generated candidate mesh. No TU Delft CFD mesh exists yet.

Generate a bounded IHE high-resolution candidate before a large solve. Report cell count, cell-size distribution, nearest-wall spacing/y-plus strategy, skewness/non-orthogonality, excluded geometry, minimum street resolution and memory measured in meshing. Then generate and gate a separate campus case. The visual scene includes flagged buildings that cannot simply be assumed CFD-ready.

Use 2 m and 10 m AGL samples only where valid fluid cells exist; keep 20 m for comparison with the old pilot. A 2 m sample cut is not evidence of 2 m mesh resolution. Residual thresholds alone are insufficient: include stable sampled speeds, mass imbalance and sensitivity to refinement/domain extent.

Wet and dry animations

Mode What the viewer can show after successful runs What it must not imply
Dry WRF-driven CFD wind, mesh cutaways, matched UTC and a precipitation interval below a declared dry threshold No rain does not prove no cloud, no evaporation or a validated heat model
Wet, first stage WRF grid-cell precipitation amount/rate over a labelled interval, visual rain streaks, and CFD wind driven by the same WRF period Regional rain is not a solved street-scale distribution; tilted streaks are not computed droplet deposition
Wet, later droplet study Size-class droplet transport under gravity and aerodynamic drag through an accepted wind field, with impact fluxes Requires actual solver implementation, droplet spectrum, terminal velocities, mass-flux scaling and validation; not delivered by the current wind solver

Derive interval precipitation from accumulated RAINC + RAINNC and other applicable configured precipitation contributions, respecting restart/reset and bucket-counter conventions when enabled. Output units are usually mm accumulated, not instantaneous mm/h. Divide by the actual interval only when a rate is wanted. A rendering timestamp is not enough: display the interval bounds.

Choose wet/dry hours by a saved, explicit threshold and observed context. Maintain the same site framing, wind-speed legend and playback speed across comparison clips. Quasi-steady CFD snapshots must be described as such; do not blend unrelated steady solutions and call the interpolation a transient physical simulation.

Bounded execution and deliverables

Deliverables: this equation/assumption comparison, proposed domain map, WPS/WRF input inventory, mesh sections, benchmark report, boundary-mapping tests, site-specific CFD QA reports and explicitly labelled wet/dry animations. The domain map, adapter, benchmark and new animations are pending, not silently completed by writing this plan.

Primary references