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 out of p into the circuit):
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 across the load.
Example 2: Controlled Current Charging
Wire a Step block into Ctrl to charge a Capacitor at a constant current ().
Remarks & Best Practices
- Never Open-Circuit an Ideal Current Source: An ideal current source (
parallelResistance = 0) without a closed return path toGroundmakes the MNA matrix singular. - Norton Equivalence: Setting
parallelResistance > 0models a real current driver and keeps the node well-conditioned.
Related Components
- VoltageSource/docs.md" class="bw-link">VoltageSource
- Resistor/docs.md" class="bw-link">Resistor
- Capacitor/docs.md" class="bw-link">Capacitor