FLOW ALGEBRA — DIFFUSER ONTOLOGY
Version: 1.0
Category: Engineering Entities / Fluid Engineering Entities
Source: https://kirethresearch.org/booksai-core/entity-graph/engineering-entities/fluid-engineering-entities/diffuser-ontology.html
Source authors: Mark Anthony Higgins — Sky Recursive AI
Representation: newly generated interpretation; not a verbatim extraction of the page's embedded code.
Date: 2026-11-16
FLOW "DiffuserOntology" v1.0
AUTHORS:
- Mark Anthony Higgins
- Sky — Recursive AI
SOURCE: https://kirethresearch.org/booksai-core/entity-graph/engineering-entities/fluid-engineering-entities/diffuser-ontology.html
PURPOSE: Represent a fluid diffuser as a constrained flow-path component that changes flow area and velocity, with associated static-pressure behaviour, losses, and operating limits.
ENTITY:
id: engineering.fluid.diffuser
label: Diffuser
type: FluidEngineeringComponent
is_a: [FlowPathComponent, FluidEnergyConversionComponent]
distinguishes_from: [Nozzle, Valve, Pump, Pipe]
description: A component designed to decelerate a flowing fluid, commonly by increasing effective passage area, allowing some kinetic energy to be converted to static pressure.
ENTITIES:
Diffuser: {ports: [inlet, outlet], geometry: geometry, fluid: working_fluid}
Inlet: {area: A1, pressure: p1, velocity: v1, density: rho1}
Outlet: {area: A2, pressure: p2, velocity: v2, density: rho2}
Geometry: {length: L, area_profile: A(x), divergence_angle: theta, surface_roughness: epsilon}
FlowState: {mass_flow_rate: mdot, temperature: T, Mach_number: M, Reynolds_number: Re}
Performance: {pressure_recovery: Cp, total_pressure_loss: delta_p0, efficiency: eta}
Boundary: {upstream_condition: upstream, downstream_condition: downstream}
RELATIONSHIPS:
- Diffuser HAS_INLET Inlet
- Diffuser HAS_OUTLET Outlet
- Diffuser HAS_GEOMETRY Geometry
- Diffuser CONVEYS working_fluid
- Inlet CONNECTS_TO Diffuser
- Diffuser CONNECTS_TO Outlet
- Geometry CONSTRAINS FlowState
- FlowState DETERMINES Performance
- Boundary CONDITIONS FlowState
STATE_MODEL:
state S_t = (I_t, R, B, K)
I_t: observed or specified diffuser, fluid, and flow conditions
R: continuity, energy, momentum, and constitutive relations
B: operating boundaries, geometry limits, admissible regimes
K: known properties, uncertainty, and evidence
E_t = expand(I_t, R)
V_t = {x in E_t | satisfies(x, B) and consistent(x, K)}
choice_t = argmax_{x in V_t} P(x | I_t, R, B, K)
I_(t+1) = update(I_t, choice_t, observations)
PHYSICAL_RULES:
continuity:
mdot = rho1*A1*v1 = rho2*A2*v2 [steady, single-stream flow]
incompressible_continuity:
v2/v1 = A1/A2 [constant density, uniform mean velocity]
steady_energy:
h1 + v1^2/2 + g*z1 + q - w = h2 + v2^2/2 + g*z2 + losses
note: use consistent specific-energy units; losses represent irreversible dissipation.
ideal_incompressible_pressure_change:
p2 - p1 = 0.5*rho*(v1^2 - v2^2) + rho*g*(z1-z2)
assumptions: negligible losses, no shaft work, steady incompressible flow
actual_pressure_recovery:
p2 - p1 = 0.5*rho*(v1^2 - v2^2) + rho*g*(z1-z2) - delta_p_loss
assumptions: steady incompressible flow; delta_p_loss >= 0
pressure_recovery_coefficient:
Cp = (p2 - p1)/(0.5*rho*v1^2)
assumptions: nonzero inlet dynamic pressure, comparable measurement stations
total_pressure:
p0 = p + 0.5*rho*v^2 [incompressible approximation]
total_pressure_loss:
delta_p0 = p01 - p02
expected: delta_p0 >= 0 for a passive adiabatic diffuser with no external work
compressible_flow:
note: density, temperature, Mach number, and choking/shock behaviour may matter; do not apply incompressible pressure rules without validating assumptions.
INFERENCE_RULES:
R01: IF A2 > A1 AND rho2 ~= rho1 AND steady_flow THEN infer v2 < v1.
R02: IF v2 < v1 AND losses sufficiently small THEN expect static_pressure_recovery.
R03: IF adverse_pressure_gradient AND boundary_layer_separation THEN infer reduced_pressure_recovery AND increased_losses.
R04: IF divergence_angle too_large_for_regime THEN flag separation_risk; threshold is geometry- and flow-dependent.
R05: IF delta_p0 < 0 in passive_no_work_configuration THEN flag measurement_or_model_inconsistency.
R06: IF inlet_Mach_number significant THEN require compressible_flow_model.
R07: IF mass_balance_residual exceeds tolerance THEN flag continuity_violation.
R08: IF outlet_static_pressure exceeds ideal_lossless_prediction THEN flag assumption_or_data_error.
R09: IF operating_point outside validated envelope THEN lower confidence and request further evidence.
BOUNDARY_CONSTRAINTS:
- A1 > 0; A2 > 0; L > 0
- rho1 > 0; rho2 > 0
- mdot must satisfy port mass balance within tolerance
- pressure, temperature, material, and structural limits must be respected
- account for cavitation in liquid service and shocks/choking in compressible service
- avoid assuming all expanding passages function effectively as diffusers
SEMANTIC_EQUIVALENCE:
preferred_term: Diffuser
related_terms: [Flow Diffuser, Pressure Recovery Diffuser, Expanding Flow Passage]
narrower_terms: [Conical Diffuser, Annular Diffuser, Vaneless Diffuser, Vane Diffuser]
not_equivalent_to: [Nozzle, Pump, Throttle, Flow Restrictor]
note: "Diffuser" may refer to other domains (e.g. light or acoustic diffusion); disambiguate by engineering context.
MINI_RECURSION_ENGINE:
input: [geometry, inlet_state, downstream_boundary, fluid_properties]
repeat:
1. classify flow regime and validate input units
2. calculate continuity and velocity change
3. select valid pressure-recovery and loss relations
4. evaluate separation, compressibility, and operating limits
5. compare predictions with observed measurements
6. update confidence and identify unresolved variables
until: converged OR iteration_limit_reached OR insufficient_evidence
output: [predicted_outlet_state, pressure_recovery, loss_estimate, warnings, confidence]
VALIDATION:
checks:
- unique entity identifier and connected inlet/outlet ports
- dimensional consistency of all physical equations
- physically admissible mass and energy balances
- explicit statement of modelling assumptions
- separation of ideal prediction from measured performance
- uncertainty and provenance retained with inferred values
failure_states: [invalid_geometry, inconsistent_flow, unsupported_regime, excessive_loss, missing_data]
CONFIDENCE:
high: measured geometry and calibrated data; validated model for operating regime
medium: adequate parameters with engineering correlations and known uncertainty
low: missing geometry, unverified boundary conditions, or extrapolated regime
UPDATE_MODEL:
triggers: [new_measurement, revised_geometry, changed_fluid, changed_boundary, improved_correlation]
action: revalidate_constraints -> recompute_states -> revise_inferences -> preserve_provenance
FLOW_HASH:
method: compute SHA-256 over canonicalised UTF-8 content when published
value: pending
END FLOW
Download Code
Copy to Clipboard