Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Result schema

This page lists the fields of summary.json and of the phase profile. It is generated from the result_schema and phase_profile_schema fields of cfd-craft describe. What the files mean and which checks report repeats is in the result contract. A field without a default that is not required may be absent; null means unavailable, not zero.

Summary

The result of one native run (schema cfd-craft.result/0.1), written as summary.json: identities, the stopping reason and numerical verdict, work counters, geometry, the recomputed checks and per-constituent evidence. termination says why execution stopped; assessment says what the checks support; experimental validation is a separate question. Null means unavailable in the stated context, not zero.

Unknown fields are rejected.

FieldTypeRequiredDescription
assessmentstringrequiredNumerical verdict: steady_discrete_solution or transient_interval_completed (completed with every check passed), failed_checks (completed, some check failed) or incomplete (any other termination). Never upgraded because the last state looks reasonable.
build_versionstringrequiredPackage version and compiler of the producing build, as <version>; <rustc version>.
case_sha256stringrequiredSHA-256 of the consumed, normalized case as compact JSON.
checksarray of CheckrequiredEvery recomputed check of the returned state.
constituentsarray of ScalarEvidencerequiredEvidence for each constituent, in case order.
elapsed_snumberrequiredWall seconds of this invocation, from the creation of its control.
errorstring or nulloptionalThe failure that stopped the run, usually with its code (for example CFD-E033: pressure iteration limit 100), or cancelled / wall_time_limit when the stop came inside a step; null otherwise.
estimated_peak_mibnumberrequiredThe preflight memory estimate of the case check, in MiB.
experimental_validationstringrequiredAlways not_validated; see validation/data-inventory.json: numerical acceptance is not experimental validation.
fluid_cellsinteger (>= 0)requiredNumber of fluid cells.
fluid_componentsinteger (>= 0)requiredNumber of face-connected fluid regions, each with its own pressure gauge unless it touches an outlet.
frozen_flowFrozenFlowEvidence or nulloptionalOptional verified fixed-flow initialization and zero-flow-update evidence. Ordinary coupled runs omit this field.
initial_state_sha256stringrequiredSHA-256 of the starting state (cold or restored), so restarts from different states stay distinguishable.
mask_sha256stringrequiredSHA-256 of the cell mask, one byte per cell (1 fluid, 0 solid) in cell order; also in geometry.json.
model_scopestringrequiredModel label: incompressible_laminar, prescribed_flow_passive_transport or neutral_k_epsilon_rough_wall; the CLI prefixes preview: for a coarsened preview.
momentum_residualnumber or nulloptionalLargest normalized momentum residual, null for prescribed flow.
momentum_solver_iterationsinteger or null (>= 0)optionalInner iterations of implicit momentum-correction solves, when selected.
namestringrequiredThe case name.
particulate_matterobject with string keys and values of ParticulateEvidenceoptionalPM2.5/PM10 airborne mass and receptor sums for spherical particle bins. No interpolation within a bin: its representative aerodynamic diameter is either below the cutoff or excluded. Omitted without particles.
physical_time_snumberrequiredTime covered in seconds; pseudo-time in steady mode.
physics_sha256stringrequiredPhysics hash of the case: the case without name, run and output. Checkpoints are compatible across cases with the same value.
pressure_iterationsinteger (>= 0)requiredCumulative pressure PCG iterations of the retained steps.
receptor_relative_changenumber or nulloptionalLargest relative change between the means of three successive monitor windows over all monitor columns (flow norm, constituent masses, receptor values and, with neutral_rans, mean k and epsilon); null before three full windows. The monitor_stability value of steady runs.
schema_versionstringrequiredAlways cfd-craft.result/0.1.
solid_cellsinteger (>= 0)requiredNumber of solid cells.
source_sha256stringrequiredSource fingerprint of the producing build. A library run reports the core crate’s; the CLI and the Python binding combine it with their own.
stepsinteger (>= 0)requiredRetained steps (outer iterations with an implicit steady algorithm), cumulative across restarts.
terminationstringrequiredWhy execution stopped: completed, iteration_limit (step budget), wall_time_limit, cancelled or diverged (a failed step, recorded in error).
threadsinteger (>= 0)requiredThe case’s declared run.threads, not a measurement of the pool.
turbulence_residualnumber or nulloptionalLargest normalized k or epsilon residual, neutral_rans only.
turbulent_floor_eventsinteger (>= 0)requiredTurbulence updates that hit the k or epsilon floor; any event fails the turbulence checks.
vegetationEvidence or nulloptionalRecomputed porous canopy drag/coverage, absent without nonzero LAD.
velocity_max_m_snumberrequiredLargest absolute face velocity in m/s.

Check

One numerical check, recomputed by the solver from the current fields. A check passes when its value is finite and at most its threshold. Continuity and residual values are normalized with the case’s velocity and length scales (neutral_rans: speed_m_s and reference_height_m; otherwise the reference speed, at least 1 m/s, and the shortest domain side).

Unknown fields are rejected.

FieldTypeRequiredDescription
methodstringrequiredHow the value was obtained, for example application recomputation from current fields.
namestringrequiredWhat is checked: local_continuity, boundary_volume_balance, steady_momentum_equations, steady_turbulence_equations, turbulence_floor_events, monitor_stability, or per constituent <id>.mass_budget, <id>.negative_mass, <id>.steady_equation and <id>.steady_mass_balance. The steady checks appear in steady mode only, the turbulence checks with neutral_rans only.
passedbooleanrequiredWhether the value is finite and at most the threshold.
thresholdnumberrequiredLargest accepted value, a fixed gate or the tolerance from the case.
valuenumber or nulloptionalThe measured value, or null when it is not finite or not available, such as monitor_stability before three full monitor windows. A null value fails.

Evidence

Instantaneous canopy evidence; integrated drag is per unit air density.

Unknown fields are rejected.

FieldTypeRequiredDescription
drag_power_per_density_m5_s3numberrequiredPositive rate of work against canopy drag, divided by density (m5/s3).
drag_quadraturestringrequiredQuadrature of the actual staggered momentum sink over active face dual volumes (area times face gradient distance).
integrated_drag_acceleration_m4_s2array of 3 numberrequiredIntegral of drag acceleration over fluid volume (m4/s2), with its sign.
validationstringrequiredThe model remains numerically verified and physically unvalidated.
volume_fluid_cellsobject with string keys and values of integer (>= 0)requiredNumber of represented fluid cells per vegetation ID; overlaps count twice.

FrozenFlowEvidence

Provenance for scalar responses on one accepted, immutable flow state.

Unknown fields are rejected.

FieldTypeRequiredDescription
assessmentstringrequiredSource flow assessment; only steady_discrete_solution is accepted.
flow_physics_sha256stringrequiredPhysics hash of the source flow-only case.
flow_state_sha256stringrequiredSHA-256 of length-prefixed little-endian f64 velocity,p,k,epsilon arrays.
initializationstringrequiredThe transport starts from the declared (required zero) concentration field.
native_flow_solvesinteger (>= 0)requiredNumber of nonprescribed native flow solves: 0 for analytic prescribed flow,1 otherwise.
preparation_stepsinteger (>= 0)requiredCoupled flow steps used in the preparation, counted separately.
response_flow_updatesinteger (>= 0)requiredFlow updates during this scalar response; always zero.
source_sha256stringrequiredSource implementation of the accepted flow preparation.

ParticulateEvidence

Sum over particle bins passing an aerodynamic-size cutoff.

Unknown fields are rejected.

FieldTypeRequiredDescription
mass_kgnumberrequiredIntegrated airborne mass, in kg.
receptors_kg_m3object with string keys and values of numberrequiredLocal-source concentration increments at receptors, in kg/m3.

PathEvidence

A path receptor sampled from one constituent’s returned concentration field.

Unknown fields are rejected.

FieldTypeRequiredDescription
concentrations_kg_m3array of numberrequiredLinear-interpolated concentration increments, in kg/m3.
distance_marray of numberrequiredArc length from the first route vertex, in meters.
mean_kg_m3numberrequiredArc-length trapezoidal mean, also in receptors_kg_m3 for this ID.
points_marray of array of 3 numberrequiredLocal east/north/up positions in meters, in route order.

ScalarEvidence

Evidence for one constituent at the returned state: mass budget, extrema, the steady residual, instantaneous rates and receptor values. Cumulative quantities are in kg, rates in kg/s, concentrations in kg/m3.

Unknown fields are rejected.

FieldTypeRequiredDescription
aerodynamic_diameter_mnumber or nulloptionalUnit-density equivalent aerodynamic diameter used for PM sums.
boundary_inflow_rate_kg_snumberrequiredCurrent rate of mass entering through boundary faces.
boundary_outflow_rate_kg_snumberrequiredCurrent rate of mass leaving through boundary faces.
budget_defect_kgnumberrequiredmass_kg minus initial, emitted and inflow mass plus outflow mass.
deposited_kgobject with string keys and values of numberoptionalCumulative particle deposition by surface class, in kg.
deposition_rate_kg_sobject with string keys and values of numberoptionalCurrent deposition rate by surface class, in kg/s.
emitted_kgnumberrequiredCumulative mass emitted by the sources.
idstringrequiredThe constituent ID.
inflow_kgnumberrequiredCumulative mass that entered through boundary faces.
mass_kgnumberrequiredMass in the domain, the sum of concentration times cell volume.
maximum_kg_m3numberrequiredLargest concentration over all cells, at least 0.
minimum_kg_m3numberrequiredSmallest concentration over the fluid cells.
negative_mass_kgnumberrequiredMass of the negative concentrations, as a positive number; never clipped.
outflow_kgnumberrequiredCumulative mass that left through boundary faces.
pathsobject with string keys and values of PathEvidenceoptionalOrdered path samples and their arc-length means, keyed by path ID. Omitted when no path receptor is declared, preserving legacy output bytes.
receptors_kg_m3object with string keys and values of numberrequiredConcentration at each receptor, keyed by receptor ID. JSON maps are sorted lexically (R10 before R2), so look values up by ID.
relative_budget_defectnumberrequiredAbsolute budget defect over the sum of initial, emitted, inflow and outflow mass; the mass_budget check requires at most 1e-9.
settling_velocity_m_snumber or nulloptionalResolved particle settling speed; omitted for gases.
source_rate_kg_snumberrequiredEmission rate of the represented sources.
steady_residualnumberrequiredLargest steady-equation residual |dc/dt| over the cells, normalized by the velocity scale, the length scale and maximum_kg_m3.

The phase profile is the timing field of the profile.json that cfd-craft profile writes.

Profile

A phase profile (schema cfd-craft.phase-profile/0.1): wall time and work per solver phase. Only exclusive times may be added. Work includes failed attempts, so it can exceed the counters of the retained state.

Unknown fields are rejected.

FieldTypeRequiredDescription
accounted_exclusive_snumberrequiredSum of the exclusive seconds of all phases.
elapsed_snumberrequiredWall seconds since the control was created, at the snapshot.
phasesobject with string keys and values of PhaseTimingrequiredTiming of each phase that ran, keyed by its snake_case phase name.
schema_versionstringrequiredAlways cfd-craft.phase-profile/0.1.
unattributed_snumberrequiredElapsed minus exclusive phases for a single serial invocation. Parallel callers may have aggregate phase time exceeding elapsed wall time.

MultigridWork

Attempted work, accumulated locally without timers or locks inside PCG. Hierarchy dimensions/storage are maxima, not sums over repeated solves.

Unknown fields are rejected.

FieldTypeRequiredDescription
block_level_cell_visitsinteger (>= 0)optionalCells of the block-smoothed levels per visit; omitted when zero. Then smoothing = 4 x residual - 2 x block visits.
block_smoothing_cell_updatesinteger (>= 0)optionalCell updates of block sweeps; omitted when zero. Twice the block level visits.
block_solvesinteger (>= 0)optionalExact line or plane block solves; omitted when zero.
coarse_solvesinteger (>= 0)requiredDense direct solves on the coarsest level, one per cycle.
cyclesinteger (>= 0)requiredV-cycles applied, one per preconditioner application.
hierarchy_buildsinteger (>= 0)requiredHierarchy constructions (0 when a cached hierarchy was reused).
hierarchy_bytesinteger (>= 0)requiredRetained hierarchy storage in bytes (maximum over the merged solves).
hierarchy_cellsinteger (>= 0)requiredUnknowns over all levels (maximum over the merged solves).
hierarchy_levelsinteger (>= 0)requiredNumber of levels (maximum over the merged solves).
hierarchy_nonzerosinteger (>= 0)requiredStored matrix entries over all levels (maximum over the merged solves).
prolongation_cell_updatesinteger (>= 0)requiredCell updates of prolongations; equal to the residual updates.
residual_cell_updatesinteger (>= 0)requiredCell updates of residual evaluations, one per cell and nonterminal level visit.
restriction_cell_updatesinteger (>= 0)requiredCell updates of restrictions; equal to the residual updates.
smoothing_cell_updatesinteger (>= 0)requiredCell updates of all smoothing sweeps, point and block.

PhaseTiming

Accumulated time and work of one phase over all its calls.

Unknown fields are rejected.

FieldTypeRequiredDescription
callsinteger (>= 0)requiredNumber of finished spans of this phase.
exclusive_snumberrequiredWall seconds excluding nested phases; these add up to accounted_exclusive_s.
inclusive_snumberrequiredWall seconds including nested phases. Do not add these up.
multigridMultigridWork or nulloptionalMultilevel work of pressure_solve with the multigrid preconditioner; omitted otherwise.
operator_applicationsinteger (>= 0)requiredOperator products: the compact pressure products plus the independent true-residual products of pressure_solve, and one (CG) or two (BiCGStab) per inner iteration of the implicit solves.
preconditioner_applicationsinteger (>= 0)requiredApplications of the selected preconditioner.
true_residual_checksinteger (>= 0)requiredIndependent face-by-face residual recomputations of pressure_solve.
work_unitsinteger (>= 0)requiredAttempted inner iterations: PCG for pressure_solve, the implicit correction solves for momentum_solve and turbulence_solve; zero for other phases.