Architecture Overview¶
htcie is implemented as a layered deterministic system. Each layer has a single responsibility and produces a serializable output that can be audited independently.
The seven layers are:
State — The canonical
EngineeringStateobject captures fluid properties, geometry, boundary conditions, and flow state. It is the single source of truth passed through all layers.Registry — The
CorrelationRegistryloads correlation metadata fromdata/correlations/*.yamlat startup. Each entry describes the correlation’s formula, validity rules, required inputs, assumptions, and source.Applicability — The
ApplicabilityEnginefilters the registry to correlations whose validity ranges and geometry requirements match the current state. Excluded correlations are returned with explicit reasons.Evaluation — The
EvaluationEnginecomputes the Nusselt number (and derived quantities) for each applicable correlation, given the state.Ranking — The
RankingEnginescores applicable correlations using the versioned scoring model (see Scoring) and returns an ordered list with scores.Confidence / Uncertainty — The uncertainty layer combines literature-reported accuracy, extrapolation distance, and regime fidelity into a confidence interval for each result.
Explanation and Reporting — The explanation layer produces a human-readable audit trail: which correlations were considered, why others were excluded, what score each received, and the resulting recommendation.
See also the source file docs/architecture/overview.md for the original
design notes.