flow "AnalogueCircuit" v1.0
# ---------- IDENTITY ----------
id: "engineering.circuit_and_pcb.analogue_circuit"
label: "Analogue Circuit"
category: "Circuit and PCB Entities"
language: "en-GB"
# ---------- AUTHORS ----------
authors:
- "Kireth Research — ontology source attribution"
- "Sky — Recursive AI — Flow Algebra representation"
# ---------- SOURCE ----------
source.url: "https://kirethresearch.org/booksai-core/entity-graph/engineering-entities/circuit-and-pcb-entities/analogue-circuit-ontology.html"
source.status: "URL supplied; live page contents not independently retrieved"
citation_backlink: source.url
licence_note: "Check the source page for the applicable Open Research Licence and citation requirements."
# ---------- PURPOSE ----------
purpose: "Represent analogue electronic circuits as interconnected continuous-signal entities with measurable electrical states, transformations, constraints and diagnostic inference."
scope: ["continuous voltage and current", "passive and active networks", "frequency response", "bias and feedback", "noise", "fault and safety assessment"]
# ---------- STATE_MODEL ----------
state S(t):
topology: graph(nodes, branches, terminals)
components: set(resistor, capacitor, inductor, diode, transistor, amplifier, source, sensor)
inputs: vector(voltage, current, frequency, temperature)
outputs: vector(voltage, current, power, phase)
operating_mode: one_of(unpowered, startup, steady_state, transient, saturated, unstable, fault)
measurements: map(signal_name -> measured_value)
limits: map(parameter -> permitted_range)
evidence: set(observation)
confidence: real in [0,1]
transition:
S(t+1) = update(S(t), observations(t), inferred_relations(t), validated_actions(t))
# ---------- ENTITIES ----------
entity "AnalogueCircuit":
is_a: "ElectronicCircuit"
contains: ["ElectricalNode", "Branch", "ElectronicComponent", "SignalPath"]
receives: ["ContinuousInputSignal", "PowerSupply"]
produces: ["ContinuousOutputSignal", "Heat", "Noise"]
governed_by: ["KirchhoffCurrentLaw", "KirchhoffVoltageLaw", "ComponentConstitutiveRelations"]
characterised_by: ["Gain", "Bandwidth", "InputImpedance", "OutputImpedance", "Noise", "Stability"]
entity "SignalPath":
from: "InputNode"
through: "ConnectedComponents"
to: "OutputNode"
properties: ["Attenuation", "Amplification", "PhaseShift", "Delay", "Distortion"]
entity "FeedbackPath":
relates: ["OutputSignal", "InputSummingNode"]
polarity: one_of(negative, positive)
affects: ["Gain", "Bandwidth", "Stability", "Linearity"]
# ---------- PATHWAYS ----------
pathway "DCOperatingPoint":
input: [topology, component_models, supply_values]
process:
- identify_reference_node()
- enforce_kcl_at_nodes()
- enforce_kvl_on_loops()
- solve_nonlinear_bias_conditions_if_required()
- check_component_operating_regions()
output: [node_voltages, branch_currents, operating_regions]
guard: "Solutions must satisfy topology, component ratings and physical consistency."
pathway "SmallSignalResponse":
input: [dc_operating_point, input_frequency, component_parameters]
process:
- linearise_components_about_valid_operating_point()
- form_frequency_domain_network()
- solve_transfer_function_H_of_jomega()
- derive_gain_phase_and_bandwidth()
output: [frequency_response, phase_response, bandwidth_estimate]
guard: "Small-signal results are valid only within the model's linearisation range."
pathway "TransientResponse":
input: [initial_conditions, input_waveform, component_models]
process:
- formulate_network_differential_equations()
- propagate_state_with_time_step_control()
- check_energy_conservation_and_numerical_stability()
output: [time_domain_waveforms, settling_behaviour, overshoot]
pathway "PowerAndThermalAssessment":
input: [branch_voltages, branch_currents, device_models, ambient_temperature]
process:
- calculate_component_power_dissipation()
- estimate_junction_or_body_temperature_where_modelled()
- compare_with_manufacturer_ratings()
output: [losses, temperature_estimates, margin_flags]
pathway "FaultAssessment":
input: [measurements, expected_response, limits, topology]
process:
- compare_observed_with_predicted_signals()
- consider_open_short_drift_and_supply_fault_hypotheses()
- rank_hypotheses_by_evidence_and_model_fit()
- request_non_destructive_verification()
output: [fault_candidates, confidence_scores, verification_steps]
guard: "Do not infer a unique fault from a single ambiguous symptom."
# ---------- MINI_RECURSION_ENGINE ----------
engine "AnalogueCircuitReasoner":
initialise: S(0) = parse(topology, components, constraints, measurements)
repeat:
candidates = expand(S(t), relevant_relations, observed_evidence)
valid = filter(candidates, electrical_laws, ratings, topology, safety_guards)
choice = argmax(valid, evidence_consistency * model_fit * confidence)
S(t+1) = update(S(t), choice)
until: convergence OR insufficient_evidence OR safety_limit OR iteration_limit
output: [validated_model, inferred_state, unresolved_questions]
# ---------- INFERENCE_RULES ----------
rule "OhmicBranch":
when: component.is_linear_resistor AND resistance > 0
infer: branch_current = branch_voltage / resistance
rule "CapacitiveBranch":
when: component.is_ideal_capacitor
infer: branch_current = capacitance * derivative(branch_voltage, time)
rule "InductiveBranch":
when: component.is_ideal_inductor
infer: branch_voltage = inductance * derivative(branch_current, time)
rule "KCL":
when: node.is_connected AND branch_orientation_is_defined
infer: sum(signed_branch_currents_at_node) = 0
rule "KVL":
when: closed_loop.is_defined
infer: sum(signed_branch_voltages_around_loop) = 0
rule "InvertingAmplifier":
when: ideal_op_amp_assumptions_hold AND negative_feedback_is_valid
infer: closed_loop_gain = -feedback_resistance / input_resistance
caveat: "Requires suitable supply headroom, bandwidth and unsaturated operation."
rule "RC_LowPass":
when: topology.matches_first_order_passive_RC_low_pass AND resistance > 0 AND capacitance > 0
infer: cutoff_frequency_hz = 1 / (2 * pi * resistance * capacitance)
rule "Overstress":
when: measured_or_predicted_parameter exceeds verified_component_rating
infer: state.operating_mode = fault
action: "Flag for qualified review; do not command unsafe live-circuit intervention."
# ---------- CONFIDENCE ----------
confidence:
evidence_priority: ["calibrated measurement", "verified schematic", "manufacturer datasheet", "validated simulation", "general heuristic"]
high: "Topology and measurements agree with a validated component model."
medium: "Partial measurements support multiple plausible explanations."
low: "Missing topology, ratings, operating point or measurements."
rule: "Never fabricate measurements or assert an unverified fault as confirmed."
# ---------- SEMANTIC_EQUIVALENCE ----------
equivalent_terms:
"Analogue Circuit": ["Analog Circuit", "Continuous-Signal Circuit"]
"Operating Point": ["DC Bias Point", "Quiescent Point"]
"Frequency Response": ["Gain-and-Phase Response"]
"Signal Attenuation": ["Signal Reduction"]
related_not_equivalent:
"Analogue Circuit": ["Digital Circuit", "Mixed-Signal Circuit", "PCB", "Electronic Component"]
# ---------- SAFETY ----------
safety:
- "Model results are not a substitute for electrical testing and competent design review."
- "Treat mains, stored capacitor charge, high-voltage and high-energy circuits as hazardous."
- "Use device-specific absolute maximum and safe-operating-area ratings."
- "Require isolation and verification by qualified personnel before physical work."
# ---------- FLOW_HASH ----------
flow_hash.algorithm: "SHA-256"
flow_hash.scope: "Canonical UTF-8 flow content, excluding hash value"
flow_hash.value: "UNSET — calculate after final publication"
# ---------- UPDATE_MODEL ----------
update_model.version: "1.0"
update_model.date: "2026-11-18"
update_model.trigger: ["ontology revision", "new measurement evidence", "component-model update", "safety correction"]
update_model.policy: "Preserve source attribution, log changes, regenerate canonical hash and revalidate inference rules."
# END FLOW
Download Code
Copy to Clipboard