pub fn step(
c: &Case,
g: &Grid,
s: &mut State,
sources: &[Vec<f64>],
dt: f64,
control: &Control,
) -> Result<()>Expand description
Advances s by one step (one outer iteration with an implicit steady
algorithm) of size dt, transactionally.
The candidate state is built beside s: flow (SSPRK2 with a projection
per stage, or one implicit correction and projection), turbulence and the
constituents with their budgets. It replaces s only when every gate
passes, so on Err the state is unchanged. sources are the source
densities of transport::source_fields, one per constituent; a shorter
slice leaves the remaining constituents unchanged. Errors are the
control’s "cancelled" / "wall_time_limit", or a coded failure such as
CFD-E033 (pressure limit), CFD-E051 (nonfinite state), CFD-E052
(velocity divergence) or CFD-E053 (negative concentration).
The monitor history is not updated; run appends monitor rows.