Appearance
Current Source
Single-phase ideal current source. Drives a configurable DC or sinusoidal current out of the p terminal, through the external circuit, and back in at n, whatever voltage that takes, optionally with a shunt resistance across its terminals (0 = ideal). Supports a soft-start amplitude ramp and monitoring of the delivered terminal current (A / kA) and the terminal voltage (V / kV). Use it as a stiff DC load on a rectifier, a harmonic or test-current injection, or a Norton source. An ideal source with no shunt needs a current path in the external circuit; in series with an open switch or with only an inductor it is ill-posed. Takes no part in the load flow.
Category: Single-Phase / Sources
Overview
The Current Source drives a prescribed current through whatever is connected to it, taking on whatever terminal voltage that requires. It is the dual of the voltage source: where a voltage source fixes p terminal, flows through the external circuit, and returns at n.
Typical uses:
- a stiff DC load on a rectifier (a large smoothing inductor makes the DC current nearly constant, which is exactly a current source);
- a harmonic or test-current injection into a network to measure its impedance;
- a Norton source, by giving it a shunt resistance.
Shunt resistance
With R_shunt = 0 the source is ideal: it has no internal path, and the whole source current flows in the external circuit. A non-zero R_shunt places a resistance across the terminals, turning the source into a Norton equivalent. The current delivered to the circuit is then
Ill-posed circuits
An ideal current source forces its current to flow somewhere. The circuit around it has to provide a path, otherwise the problem has no solution:
- Open circuit. A current source in series with an open breaker or an off switch has nowhere to send its current. Add a shunt resistance, or a large resistor across the switch.
- Inductor-only path. In series with an inductor only, the source sets the inductor current directly, and the inductor voltage
jumps whenever the source current does (at in particular). Use the soft-start ramp, or add a shunt resistance. - Two current sources in series with different currents contradict each other.
The soft-start ramp (t_ramp) raises the amplitude linearly from zero over t_ramp, which avoids the
Monitoring
Enable Measure current to record the delivered terminal current p into a load the terminal voltage is positive and the source delivers
Load flow
The current source takes no part in the load flow. Circuits that rely on the load flow to initialize machines and controllers treat it as absent; it acts from the start of the simulation.
Ports
| Port | Kind | Signal | Notes |
|---|---|---|---|
p | Electrical terminal | — | |
n | Electrical terminal | — |
Parameters
Config
| Parameter | Type | Default | Units | Description | ID |
|---|---|---|---|---|---|
| Mode | Choice: DC / AC | DC | — | 0=DC, 1=AC. In DC mode the source holds a constant current; the frequency and phase fields are hidden. | mode |
| I | Number | 1 | A (also kA) | Source current (RMS for AC, magnitude for DC). In AC mode the peak is sqrt(2) times this value, matching the voltage source. Positive current leaves the p terminal. | current |
| f | Number | 60 | Hz (also kHz) | Frequency of the AC current (Hz). | frequency |
| φ | Number | 0 | rad (also deg) | Phase angle of the AC current, I(t) = sqrt(2) I sin(2 pi f t + phi). Radians or degrees via the unit dropdown. | phase |
| t_ramp | Number | 0 | s (also ms) | Current ramp-up time. The amplitude scales linearly from 0 to full over t_ramp, then holds. Use it to start an inductive circuit without an inrush. 0 disables. | ramp_time |
| R_shunt | Number | 0 | Ω (also kΩ) | Resistance across the source terminals (a Norton source). 0 = ideal current source with no internal path. | shunt_resistance |
| Measure current | Choice: Off / On | Off | — | Emit the current delivered out of the p terminal (the source current less the shunt current) as an observable. Name and unit live on the Signal Names tab. | measure_current |
| Measure voltage | Choice: Off / On | Off | — | Emit the terminal voltage V(p) - V(n) as an observable. Name and unit live on the Signal Names tab. | measure_voltage |
Signal Names
| Parameter | Type | Default | Units | Description | ID |
|---|---|---|---|---|---|
| Current name | Text | I | A (also kA) | Signal name for the delivered terminal current. Blank = skip. Pick the unit from the dropdown; the published value is scaled to it. | current_name |
| Voltage name | Text | V | V (also kV) | Signal name for the terminal voltage V(p) - V(n). Blank = skip. Pick the unit from the dropdown; the published value is scaled to it. | voltage_name |
Observables
| Default name | Kind | Recorded when | Description | ID |
|---|---|---|---|---|
| set by Current name | Signal | Measure current is on | Current delivered out of the p terminal (and back in at n), scaled to the chosen unit (A / kA): the source current less the current the shunt resistance takes. Equal to the source current for an ideal source. | branchCurrent |
| set by Voltage name | Signal | Measure voltage is on | Terminal voltage V(p) - V(n), scaled to the chosen unit (V / kV). With the current leaving p into a load, V(p) - V(n) is positive and the source delivers V * I. | terminalVoltage |