Skip to main content

Fluid Network Ontology

Fluid Engineering Entities
Authors: MArk Anthony Higgins - Sky Recursive Ai
© Mark Anthony Higgins 11 October 2025
Revised Date: 16 November 2026
Audio Overview
FLOW ALGEBRA — FLUID NETWORK ONTOLOGY
Version: 1.0
Date: 2026-11-16
Authors: Mark Anthony Higgins — Sky Recursive AI
Source: https://kirethresearch.org/booksai-core/entity-graph/engineering-entities/fluid-engineering-entities/fluid-network-ontology.html
Status: Newly generated semantic interpretation; not a verbatim extraction of the page's embedded code.
Citation: Kireth Research, Fluid Network Ontology (revised 04 August 2026).

flow "FluidNetworkOntology" v1.0

# PURPOSE
purpose:
  Represent a fluid network as an interconnected graph of components,
  junctions, boundaries and fluid streams. Support topology validation,
  conservation-based inference, state transitions and fault reasoning.

# ENTITY MODEL
entities:
  FluidNetwork:
    attributes: [network_id, medium, operating_mode, topology, boundary_set]
  FluidNode:
    attributes: [node_id, pressure, temperature, elevation, stored_mass]
  FluidEdge:
    attributes: [edge_id, source_node, target_node, mass_flow, pressure_loss]
  Pipe:
    isa: FluidEdge
    attributes: [length, internal_diameter, roughness, material]
  Pump:
    isa: FluidEdge
    attributes: [head_added, efficiency, speed, power]
  Valve:
    isa: FluidEdge
    attributes: [opening, resistance, control_state]
  Junction:
    isa: FluidNode
    attributes: [connected_ports, mixing_state]
  Reservoir:
    isa: FluidNode
    attributes: [volume, fluid_level, boundary_pressure]
  BoundaryCondition:
    attributes: [boundary_id, kind, imposed_value, unit]
  Fluid:
    attributes: [density, viscosity, compressibility, specific_heat]
  Sensor:
    attributes: [observed_entity, measured_property, value, timestamp]

# RELATIONSHIP MODEL
relations:
  contains(Network, Node)
  contains(Network, Edge)
  connects(Edge, SourceNode, TargetNode)
  carries(Edge, Fluid)
  has_boundary(Network, BoundaryCondition)
  measures(Sensor, Entity)
  upstream_of(NodeA, NodeB)
  feeds_into(EdgeA, Node)
  controls(Valve, FlowPath)

# STATE MODEL
state:
  NetworkState = {
    topology,
    node_pressures,
    node_temperatures,
    edge_mass_flows,
    component_conditions,
    boundary_conditions,
    fault_flags,
    time
  }
  lifecycle: [defined, configured, validated, operating, degraded, isolated, shutdown]
  transition:
    defined -> configured: topology_complete
    configured -> validated: constraints_satisfied
    validated -> operating: commissioned_and_enabled
    operating -> degraded: fault_detected
    degraded -> isolated: protective_isolation
    operating -> shutdown: stop_command

# FLOW ALGEBRA CORE
algebra:
  S_t = (I_t, R, B, K)
  E_t = expand(I_t, R)
  V_t = {x in E_t | constraints(x, B, K)}
  x_star = argmax_x_in_V_t P(x | I_t, R, B, K)
  I_(t+1) = update(I_t, x_star, observations_t)

  I_t: observed network state and query
  R: graph relationships and inference rules
  B: physical, operational and safety boundaries
  K: fluid mechanics and component knowledge

# PHYSICAL CONSTRAINTS
constraints:
  topology:
    - every_edge_has_two_valid_endpoint_nodes
    - no_unresolved_component_references
    - isolated_subgraphs_explicitly_identified
    - pressure_reference_available_for_each_solved_component
  mass_conservation:
    - at_steady_state_sum_mass_flow_into_junction_equals_sum_mass_flow_out
    - for_transient_storage_sum_in_minus_sum_out_equals_d_stored_mass_dt
  energy:
    - along_path_total_head_change_accounts_for_pumps_losses_and_elevation
    - thermal_energy_balance_includes_heat_transfer_and_work_where_applicable
  momentum:
    - pressure_loss_consistent_with_flow_rate_geometry_and_fluid_properties
  constitutive:
    - density_positive
    - viscosity_nonnegative
    - flow_resistance_nonnegative_for_passive_elements
  operating_limits:
    - pressure_within_component_ratings
    - temperature_within_component_ratings
    - velocity_and_cavitation_limits_checked_where_relevant

# INFERENCE RULES
rules:
  R01:
    when: connected(Edge, A, B) and mass_flow(Edge) > 0
    infer: net_transport_direction(Edge, A, B)
  R02:
    when: junction_mass_residual_exceeds_tolerance
    infer: possible_leak_or_measurement_error_or_unmodelled_storage
  R03:
    when: unexpected_pressure_drop_across_edge
    infer: possible_obstruction_or_valve_restriction_or_flow_change
  R04:
    when: pump_active and downstream_pressure_rise_below_expected
    infer: possible_pump_degradation_or_cavitation_or_bypass
  R05:
    when: disconnected_component_has_no_supply_path
    infer: unavailable_flow_service
  R06:
    when: boundary_pressure_below_vapour_pressure_at_local_temperature
    infer: cavitation_risk_where_liquid_flow_applies
  R07:
    when: edge_flow_reverses_sign
    infer: reverse_flow_event
  R08:
    when: network_state_violates_component_rating
    infer: unsafe_operating_condition

# SEMANTIC EQUIVALENCE
semantic_equivalence:
  FluidNetwork: [hydraulic_network, piping_network, fluid_distribution_network]
  FluidNode: [hydraulic_node, connection_point]
  FluidEdge: [flow_branch, hydraulic_branch]
  Junction: [flow_junction, branching_point]
  PressureLoss: [pressure_drop, hydraulic_resistance_effect]
  BoundaryCondition: [network_boundary, imposed_operating_condition]
  notes:
    - synonyms_are_contextual_not_unconditional_identity
    - distinguish_open_channel_networks_from_pressurised_pipe_networks
    - distinguish_mass_flow_from_volumetric_flow

# VALIDATION
validation:
  V01: verify_unique_entity_identifiers
  V02: verify_edge_endpoint_integrity
  V03: verify_unit_consistency
  V04: verify_mass_balance_residual_within_tolerance
  V05: verify_energy_balance_residual_within_tolerance
  V06: verify_physical_property_domains
  V07: verify_operating_limits
  V08: flag_underconstrained_or_overconstrained_boundary_conditions
  V09: flag_unobservable_network_regions
  V10: record_provenance_for_inferred_states

# MINI RECURSION ENGINE
mini_recursion_engine:
  input: [network_graph, observations, boundary_conditions, query]
  cycle:
    1: normalise_entities_and_units
    2: resolve_connectivity_and_paths
    3: propagate_boundary_conditions
    4: infer_candidate_flows_and_pressures
    5: enforce_mass_energy_and_component_constraints
    6: compare_predictions_with_observations
    7: classify_residuals_and_possible_faults
    8: update_state_and_confidence
    9: repeat_until_converged_or_iteration_limit
  termination:
    - residuals_within_tolerance
    - stable_state_estimate
    - iteration_limit_reached
    - invalid_or_infeasible_model

# CONFIDENCE MODEL
confidence:
  evidence_sources: [measured, calculated, inferred, assumed]
  score_factors: [sensor_quality, topology_completeness, model_fit, constraint_residual]
  rule: never_report_inferred_values_as_direct_measurements

# UPDATE MODEL
update_model:
  triggers: [new_sensor_data, component_change, topology_change, boundary_change, detected_fault]
  preserve: [source_provenance, previous_state, revision_history]
  revalidate_after_each_update: true

# EXAMPLE QUERY PATHWAYS
pathways:
  - query: identify_all_paths_from_reservoir_to_outlet
    steps: [resolve_nodes, traverse_edges, exclude_closed_valves, return_paths]
  - query: estimate_flow_distribution
    steps: [load_boundaries, solve_network, validate_balances, report_results]
  - query: locate_possible_restriction
    steps: [compare_pressure_observations, rank_candidate_edges, test_consistency]
  - query: assess_isolation_impact
    steps: [remove_target_edge, recompute_connectivity, identify_unserved_nodes]

# OUTPUT CONTRACT
output:
  fields: [network_id, inferred_state, evidence, violated_constraints, confidence, provenance]
  require_explicit_uncertainty: true
  prohibit_unverified_safety_certification: true

end flow
Kireth Research
38 Thorndale Croft, Wetwang, Driffield
East Riding of Yorkshire YO25 9XZ