Ⓐ

Current Sensor

Physical Networks
Run the live example Free · no sign-up · runs in your browser

The CurrentSensor block measures the electrical through-current flowing along an active physical branch and converts it into a standard causal numerical signal. The sensor introduces zero voltage drop across its terminals, acting as an ideal zero-resistance ammeter inserted in series with the load.

The measured current is output as a standard signal on port out for downstream visualization, analysis, or feedback loops. By bridging the acausal physical network with the causal block diagram, it allows continuous observation of branch currents without altering circuit behavior.

Real-World Analog: Represents an ideal ammeter, current shunt, or Hall-effect current clamp measuring branch current with zero series resistance.

Mathematical Model

The sensor measures branch current through an ideal zero-impedance constraint:

V(p)−V(n)=0andIout(t)=I(p→n)V(p) - V(n) = 0 \quad \text{and} \quad I_{out}(t) = I(p \to n)

Where:

  • V(p) is the voltage potential at input terminal p (V).
  • V(n) is the voltage potential at output terminal n (V).
  • I(p \to n) is the conserving branch current entering p and leaving n (A).
  • I_{out}(t) is the continuous causal output signal (A).

Inputs & Outputs

Direction ID Label Type Status
→ In p in number Required
→ In n out number Required
← Out out I number Output

Usage Examples

Inline Branch Current Measurement

In examples/basic-currentsensor.json, the sensor measures through-current flowing from a 12 V source into a 24 Ω resistive branch (I = 0.5 A) with zero inserted voltage burden.

Inductor Current Measurement

Monitor inductive energy discharge in an RLC resonant circuit:

`VoltageSource(+) → CurrentSensor(p)

CurrentSensor(n) → Inductor

CurrentSensor(out) → Scope`

Remarks & Best Practices

  • Zero Resistance: Inserts zero parasitic resistance or voltage burden into the measured branch.
  • Series Insertion: Must be connected in series with the monitored branch to measure through-flow.
  • Signed Directionality: Current entering terminal p and exiting terminal n registers as a positive value.
  • MNA Formulation: Implemented via an auxiliary branch current equation in the MNA solver.

Related Components

  • VoltageSensor: Measure potential difference across two nodes
  • Resistor: Linear dissipative branch component
  • Inductor: Linear inductive element with continuous current state
  • Scope: Visualize measured branch currents