I

Current Source

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

Ideal or Norton-equivalent electrical current source supporting DC, sinusoidal AC, and real-time signal modulation via the optional Ctrl input port.

Mathematical Model

Current flows internally from terminal n to terminal p (delivering +I+I out of p into the circuit):

Iout=Isrc(t)−Vp−VnRp,Isrc(t)={uctrl(t)if Ctrl wiredI0sin⁡(2πft)ACI0DCI_{\text{out}} = I_{\text{src}}(t) - \frac{V_p - V_n}{R_p}, \qquad I_{\text{src}}(t) = \begin{cases} u_{\text{ctrl}}(t) & \text{if Ctrl wired} \\ I_0 \sin(2\pi f t) & \text{AC} \\ I_0 & \text{DC} \end{cases}

Inputs & Outputs

Direction ID Label Type Status
→ In p + number Required
→ In n - number Required
→ In in Ctrl number Optional

Parameters

Parameters Label Type Default Description
current Current (I) number 1 Output current amplitude in Amperes
source_type Type select DC DC constant current or AC sinusoidal current
frequency Frequency (Hz) number 50 AC frequency in Hertz
parallelResistance Parallel Resistance (Rp) number 0 Optional Norton parallel resistance in Ohms (0 = ideal infinite impedance)

Usage Examples

Example 1: Norton Current Divider

Set current = 2 A and parallelResistance = 100 Ω across a 100 Ω load resistor to observe 100 V100\text{ V} across the load.

Example 2: Controlled Current Charging

Wire a Step block into Ctrl to charge a Capacitor at a constant current (dV/dt=I/CdV/dt = I/C).

Remarks & Best Practices

  • Never Open-Circuit an Ideal Current Source: An ideal current source (parallelResistance = 0) without a closed return path to Ground makes the MNA matrix singular.
  • Norton Equivalence: Setting parallelResistance > 0 models a real current driver and keeps the node well-conditioned.

Related Components