flow "LevelSensor" v1.0
# Kireth Research Semantic Library — Engineering / Sensor Entities
# Original semantic Flow Algebra representation; source page not verified.
IDENTITY:
entity: "Level Sensor"
class: "EngineeringSensor"
superclass: "Sensor"
domain: ["Instrumentation", "Process Engineering", "Measurement and Control"]
definition: "Device that detects or measures the position or quantity of material relative to a defined level reference."
distinction: "Continuous measurement estimates level across a range; point-level detection reports threshold crossing."
AUTHORS:
research: "Kireth Research"
co_author: "Sky — Recursive AI"
licence: "Open Research Licence — citation required"
SOURCE:
url: "https://kirethresearch.org/booksai-core/entity-graph/engineering-entities/sensor-entities/level-sensor-ontology.html"
source_role: "Ontology target and citation backlink"
provenance: "Original engineering model; not a verified transcription of the webpage"
PURPOSE:
- "Represent level-sensing equipment, its measured variable and operating context."
- "Link physical sensing mechanisms to electrical or digital outputs."
- "Support selection, calibration, diagnostics and maintenance reasoning."
- "Prevent unsupported inferences about safety or measurement accuracy."
STATE_MODEL:
S(t) = (I(t), R(t), B(t), K(t))
I(t):
sensor_id: string
technology: enum[float, hydrostatic, ultrasonic, radar, guided_wave_radar, capacitive, conductive, optical, vibrating_fork, differential_pressure, other]
mode: enum[continuous, point_level]
vessel_geometry: optional
medium: enum[liquid, slurry, powder, granular_solid, interface, unknown]
measured_signal: numeric_or_boolean
process_temperature: optional
process_pressure: optional
medium_density: optional
dielectric_properties: optional
foam_turbulence_condensation: optional
installation_geometry: optional
timestamp: datetime
R(t):
physical_principle: technology_specific
calibration_curve: signal_to_level_mapping
reference_datum: defined_height_or_position
operating_range: [lower, upper]
engineering_units: [mm, m, percent, other]
response_time: specified
uncertainty_model: documented
B(t):
minimum_level: lower_range_limit
maximum_level: upper_range_limit
temperature_pressure_limits: manufacturer_ratings
wetted_material_compatibility: required
environmental_and_electrical_ratings: required
safe_operating_constraints: application_specific
K(t):
calibration_history: records
maintenance_history: records
known_faults: records
verified_measurements: records
application_assumptions: records
transition:
S(t+1) = update(S(t), measurement, calibration, diagnostics, operator_review)
ENTITIES:
LevelSensor: {is_a: Sensor, measures: Level, installed_on: VesselOrProcess}
Level: {quantity_kind: height_or_threshold, relative_to: ReferenceDatum}
ReferenceDatum: {defines: zero_level, units: length}
VesselOrProcess: {has_geometry: Geometry, contains: ProcessMedium}
ProcessMedium: {properties: [density, dielectric_constant, conductivity, acoustic_properties, temperature]}
Transducer: {converts: PhysicalResponse, to: ElectricalSignal}
SignalConditioner: {processes: ElectricalSignal, produces: InstrumentSignal}
InstrumentSignal: {forms: [analogue, digital, switching], carries: MeasurementOrStatus}
CalibrationRecord: {links: [reference_standard, observed_output, adjustment, uncertainty]}
Controller: {receives: InstrumentSignal, may_command: Actuator}
Alarm: {triggered_by: ValidatedThresholdCondition}
DiagnosticEvent: {records: FaultOrAnomaly, has: Evidence}
MeasurementUncertainty: {depends_on: [sensor, installation, environment, calibration, method]}
PATHWAYS:
- name: "Continuous level acquisition"
steps: [identify_medium, validate_installation, excite_or_observe_physical_response, acquire_signal, compensate_environment, apply_calibration, estimate_level, assign_uncertainty, publish_result]
- name: "Point-level detection"
steps: [sense_threshold_state, apply_debounce_or_hysteresis, check_diagnostic_status, report_switch_state, update_alarm_if_authorised]
- name: "Hydrostatic measurement"
steps: [measure_pressure_difference, validate_density_and_gravity, infer_liquid_head, apply_reference_datum, report_level]
- name: "Non-contact ranging"
steps: [transmit_wave, receive_echo, estimate_distance, compensate_propagation_and_geometry, infer_surface_level, validate_echo_quality]
- name: "Calibration"
steps: [verify_reference, isolate_or_make_process_safe, apply_known_levels, record_as_found, compare_tolerances, adjust_if_authorised, record_as_left, restore_service]
- name: "Fault response"
steps: [detect_invalid_signal, distinguish_process_change_from_sensor_fault, preserve_evidence, classify_severity, invoke_approved_fallback, request_inspection]
PHYSICAL_RELATIONS:
hydrostatic_head:
relation: "p_gauge = rho * g * h"
conditions: "Static homogeneous fluid; pressure referenced appropriately; density and gravity known."
inference: "h = p_gauge / (rho * g) when assumptions hold."
time_of_flight:
relation: "distance = propagation_speed * round_trip_time / 2"
conditions: "Known propagation speed and valid reflected path."
inference: "level = reference_height - measured_surface_distance, subject to mounting geometry."
volume_conversion:
relation: "volume = vessel_geometry_function(level)"
conditions: "Verified vessel geometry and datum; volume is not universally linear in level."
percentage:
relation: "percent = 100 * (level - LRV) / (URV - LRV)"
conditions: "URV > LRV; defined engineering range; may be outside 0–100% on overrange."
signal_scaling:
relation: "I_mA = 4 + 16 * (level - LRV) / (URV - LRV)"
conditions: "Configured linear 4–20 mA transmitter in its valid measurement region; fault currents are separate."
MINI_RECURSION_ENGINE:
input: [current_state, new_signal, diagnostic_flags, environmental_context]
expand: "Generate candidate explanations: true_level_change, density_change, echo_loss, coating, blocked_port, wiring_fault, sensor_drift, installation_error."
filter: "Reject candidates violating sensor principle, range, verified constraints or available evidence."
score: "Rank remaining explanations by evidence consistency and validated likelihood, not fabricated certainty."
select: "Choose best supported interpretation or unresolved state."
update: "Store provenance, timestamp, uncertainty and review status."
stop: "Terminate when evidence is adequate or escalate for human inspection."
INFERENCE_RULES:
- "IF mode == continuous AND calibration_valid AND signal_valid THEN infer level with stated uncertainty."
- "IF mode == point_level THEN infer threshold state, NOT a precise continuous level."
- "IF hydrostatic AND density_unknown THEN level inference is conditional; do not assert exact height."
- "IF ultrasonic AND foam_or_vapour_or_turbulence_present THEN flag possible echo or propagation error."
- "IF radar AND strong_false_echo_or_obstruction THEN require echo validation and installation review."
- "IF capacitive AND dielectric_properties_change THEN consider recalibration or compensation."
- "IF level outside configured range THEN report overrange or underrange separately from normal reading."
- "IF measurement is stale OR diagnostics invalid THEN mark level unverified."
- "IF two independent channels disagree beyond combined uncertainty THEN investigate; do not arbitrarily average."
- "IF alarm threshold crossed AND measurement trusted THEN apply approved hysteresis and alarm logic."
- "IF instrument feeds safety function THEN rely on validated safety architecture and proof testing, not this ontology alone."
CONFIDENCE:
sources: [calibration_status, diagnostic_health, signal_quality, installation_validity, medium_properties, reference_traceability]
categories: [high, moderate, low, indeterminate]
high: "Validated calibration, stable signal, known process conditions and documented uncertainty."
moderate: "Plausible result with bounded installation or environmental effects."
low: "Unverified compensation, suspect signal, expired calibration or unstable process."
indeterminate: "Insufficient evidence; suppress unwarranted numerical precision."
rule: "Confidence is qualitative unless a statistically justified model is supplied."
SEMANTIC_EQUIVALENCE:
synonyms: ["level transmitter", "liquid level sensor", "tank level sensor", "level detector"]
related_not_identical: ["level switch", "level gauge", "volume sensor", "pressure sensor"]
distinctions:
- "A level switch is usually a point-level device, not a continuous level transmitter."
- "A pressure sensor can infer level only under suitable hydrostatic assumptions."
- "Measured level and inferred vessel volume are different quantities."
FLOW_HASH:
method: "SHA-256 of canonicalised Flow Algebra text when published"
value: "UNCOMPUTED"
note: "Do not claim a content digest until a canonicalisation procedure has been applied."
UPDATE_MODEL:
version: "1.0"
date: "2026-11-18"
change_policy: "Preserve source backlink; version material semantic changes; validate equations and instrument-specific assumptions."
triggers: [new_sensor_type, revised_calibration, revised_safety_constraints, corrected_physics, new_diagnostics]
review: "Engineering and metrology review required for safety-critical application."
Download Code
Copy to Clipboard