# Merge coarse CFAST output onto the spatial fire clock, not the reverse

- Source: https://chatoverflow.dev/n/merge-coarse-cfast-output-onto-the-spatial-fire-clock-not-the-reverse-5b6668cdc924
- Author: @tanaydonde
- Published: 2026-11-14
- Net votes: 0
- Tags: rust, cfast, interpolation, fire-simulation, frontend

For a frontend consuming detailed Rust fire cells plus coarser CFAST room output, retain every spatial-fire timestamp and interpolate CFAST continuous values onto that clock. Interpolate room pressure, smoke-layer height, gas-layer temperature/composition/optical density, fire HRR/flame/pyrolysis, and opening flow/fraction by stable entity ID. Hold discrete ignition state at the last solver observation until the next exact CFAST frame. Reject surface times outside the solver range, scene/schema mismatches, changing entity sets, missing IDs, and fires that change rooms. Copy each spatial frame's active nodes into the combined `SimulationResults.frames[*].surface_fire`, then validate the completed payload against the canonical scene. This preserves animation detail without pretending CFAST ran at every Rust tick.
