How EKX calculates power flow
This page describes the model behind power flow analysis: the solver, how each component enters the network, how voltage drop is checked, and what the study leaves out. Use it to reconcile EKX results with a hand calculation or another program. To run the study and read its annotations, see Running power flow and Interpreting results.
Solver and convergence
EKX solves a balanced three-phase, positive-sequence AC power flow with the Newton-Raphson method. Bus angles are reported relative to the utility, whose angle is fixed at 0°, or to the reference generator in a part of the network that no utility reaches.
| Setting | Value |
|---|---|
| Method | Newton-Raphson |
| Starting point | DC power flow for the angles; each utility and generator bus starts at its set voltage, every other bus at the average of those set voltages (1.0 pu when all are at nominal) |
| Convergence test | Largest bus power mismatch below 1e-8 MVA |
| Iteration limit | 10 |
| Transformer equivalent circuit | T model |
| Generator reactive power limits | Not enforced |
None of these settings can be changed from the canvas. A run from the canvas always uses Newton-Raphson and the normal load profile. The REST API also accepts backward/forward sweep (bfsw, 100 iterations) or Gauss-Seidel (gs, 10,000 iterations), and a load profile that multiplies every load and motor: normal 1.0, peak 1.2, emergency 0.7, minimum 0.3. A profile does not scale capacitor banks or reactors.
When the solution does not converge, EKX first checks each radial cable on its own, at the nominal voltage of its supply end. If a cable cannot deliver the load beyond it at any voltage, the message names the cable, the load and what to change. Any other divergence is reported as a general failure; see Troubleshooting convergence.
Sources and the reference bus
A utility feed is an ideal voltage source. It holds its bus at its Operating Voltage (a percent of nominal on the utility's Study tab, default 100) and supplies whatever active and reactive power balances the network. Its short-circuit MVA and X/R do not enter power flow, so the utility bus voltage does not sag as load increases. A blank fault level blocks only the fault studies. With two utilities in one connected network, each holds its own voltage and the network impedances decide how they share the load.
A generator in a network that also has a utility is a voltage-controlled source. It delivers its Power entry and holds its bus at 1.0 pu, with no limit on the reactive power it supplies or absorbs. EKX calculates reactive limits from Capacity and Power Factor but does not enforce them. In a part of the network that no utility reaches, the in-service generator with the largest capacity becomes the reference: it holds 1.0 pu and supplies whatever balances that part. Only synchronous generators are modelled; another generator type stops the study with a message naming it.
The slack setting on a bus does not create a reference or a supply. Only utilities and generators do.
Each bus takes its nominal voltage from the utility, generator or transformer winding that feeds its voltage zone, and per-unit results use that base. If two sources set one zone to different voltages, the study stops and names each source and its voltage.
Loads
An ordinary load enters as active power P and reactive power Q at its operating level. A blank power factor is 0.8:
From power: P = entered kW, Q = P x tan(acos(PF)), negative when leading
From kW and kvar: P and Q as entered
From current: P = sqrt(3) x V_rated x I x PF (three-phase)
P = V_rated x I x PF (single-phase)
Operating load: P_op = P x demand factor x diversity factor x utilization factorEach factor must be above 0 and at most 1. A blank factor is 1.0. Power flow applies no other demand method, so the result reflects the running load you describe, not the connected nameplate load.
The Load Characteristic sets how power changes with voltage. Constant power keeps P and Q fixed. Constant current scales them with V, and constant impedance with V squared, where V is the per-unit voltage on the bus nominal voltage, not on the load's rated voltage. Each constant-current or constant-impedance load sits on its own internal node behind an ideal joint, so its characteristic is never averaged with other loads on the same bus. Its results still appear at the drawn bus.
The study is balanced. A single-phase load enters with its full power, spread evenly over the three phases.
When a load has no power entered, a run from the canvas models it at 0 kW and names it in a warning. The REST API refuses the run unless the request allows incomplete loads.
Motors
A motor is always a constant-power load, whatever its load characteristic. EKX takes its electrical input power from the first value entered, in this order:
Full-load amps: P = sqrt(3) x V_nameplate x FLA x PF
Kilowatts: P = entered kW (electrical input)
Horsepower: P = hp x 0.746 / efficiency (kW)
Operating load: P_op = P x demand factor x diversity factor x utilization factor
Q_op = P_op x tan(acos(PF))Efficiency affects only a motor entered in horsepower. Power factor and efficiency must be above 0 and at most 1. When no nameplate voltage is entered, EKX uses the standard motor voltage for the supply.
| Supply voltage | Motor voltage used |
|---|---|
| 120 V | 115 V |
| 208 V | 200 V |
| 240 V | 230 V |
| 480 V | 460 V |
| 600 V | 575 V |
| 2.4 kV | 2.3 kV |
| 4.16 kV | 4.0 kV |
At any other supply voltage, the motor voltage equals the supply voltage. A motor with no full-load amps, kilowatts or horsepower is left out of the network, and a warning names it. Locked-rotor current, R/X and motor class do not affect power flow.
Drives, starters, breakers, fuses and switches are ideal connections with no impedance and no losses. A motor behind a drive draws its own power and power factor through the drive.
Transformers
Each transformer is a two-winding T equivalent circuit on its own kVA base and rated winding voltages. Its series resistance comes from the first value available:
Load losses entered: %R = 100 x load losses (kW) / rating (kVA)
X/R entered: %R = %Z / sqrt(1 + (X/R)^2)
Neither: %R from the size band below; 0.3 x %Z if that is not below %Z
%X = sqrt(%Z^2 - %R^2)A new transformer with no entered no-load loss gets half the total loss the US Department of Energy efficiency standard allows a unit of its rating and construction at the standard's test load (10 CFR 431.196, units made from 2016). Liquid-immersed units use Table 5 at 50% load, dry-type units with both windings at 600 V or less use Table 2 at 35% load, and other dry-type units use Table 9 at 50% load, in the column for the standard insulation level of their higher winding voltage. A rating between two listed ratings is interpolated; one beyond the table keeps the nearest listed efficiency. When the construction is not set, EKX takes the largest loss of the constructions possible at the transformer's voltages.
No-load loss (kW) = 0.5 x kVA x test load x (1 / efficiency - 1)
1,500 kVA liquid-immersed: 0.5 x 1,500 x 0.50 x (1 / 0.9948 - 1) = 1.96 kWA transformer whose stored no-load loss is blank uses the size-band value below.
| Rating | Default %R | Default no-load loss when blank |
|---|---|---|
| Below 500 kVA | 1.8% | 1.2% of kVA |
| 500 to 2,499 kVA | 1.5% | 1.0% of kVA |
| 2,500 kVA and above | 1.2% | 0.8% of kVA |
An entered no-load loss, including zero, replaces the default. No-load current is fixed at 0.1% of rating. When the no-load loss alone exceeds 0.1% of the rating, EKX keeps the loss and sets the magnetizing reactive power to zero.
Taps are on the primary winding and stay where you set them; no tap changer moves automatically. The Tap setting raises the primary rated voltage by its percent, so a positive tap lowers the secondary voltage: with no load, a +5% tap gives a secondary voltage of 1 / 1.05 = 0.952 pu. A blank position is the neutral tap. A transformer with no tap changer runs at the neutral tap. A position outside the tap limits stops the study.
The vector group's phase shift is not applied, so angles on each side of a delta-wye transformer differ only by the drop across its impedance. Transformer loading is the larger of the two winding currents as a percent of that winding's rated current.
Cables
Each cable is a pi section. EKX takes resistance and reactance per kilometre from the conductor's catalogue entry. In steel conduit it uses the steel conduit pair when the entry has one; otherwise it uses the base pair. A cable that names no raceway uses the project's Typical raceway. See Cables for the source of each built-in value.
R = R_per_km x length / parallel runs
X = X_per_km x length / parallel runs
C = C_per_km x length x parallel runsResistance stays at its catalogue temperature. Built-in conductors use 75 °C values, and power flow makes no correction for operating temperature. A blank catalogue capacitance means the cable has no charging. A zero-length cable is an ideal joint and reports exactly 0% voltage drop. A blank length stops the study. Cable loading is current divided by the cable's installed ampacity, with all parallel runs together. The installed ampacity is the one cable sizing uses: the conductor's ampacity at the cable's termination temperature rating, corrected for ambient temperature, the number of current-carrying conductors and cable tray fill. A cable with no ampacity shows Loading unavailable.
Capacitor banks and reactors
A capacitor bank is a fixed shunt admittance, never a load:
Q = Rated kvar x (Energized Steps / steps) x (f_project / f_rated) x (V / V_rated)^2
P = Rated kvar x (Energized Steps / steps) x loss (W/kvar) / 1000 x (V / V_rated)^2A reactor load is also a fixed admittance. It gives its rated kvar at its rated voltage and frequency, its reactance scales with project frequency over rated frequency, and its entered resistance is in series. Load profiles do not scale banks or reactors.
Results and violations
Bus voltages are per unit of the bus nominal voltage. The study's violations list, which the load flow report uses, applies these limits:
| Check | Reported when | Severity |
|---|---|---|
| Undervoltage | Bus below 0.95 pu | High below 0.90 pu, otherwise medium |
| Overvoltage | Bus above 1.05 pu | High above 1.10 pu, otherwise medium |
| Cable or transformer overload | Loading above 100% | Critical above 120%, otherwise high |
| Bus overload | Through current above the bus rated amps | Critical above 120%, otherwise high |
| Capacitor bank overvoltage | Terminal voltage above 110% of rated | Graded by the excess |
Bus through current is the larger of the current entering and leaving the bus; with no rated amps entered, the bus has no loading. The canvas colours start earlier, at 0.97 and 1.03 pu and 90% loading. Interpreting results explains the colours and protection device loading.
Voltage drop
EKX reports two different voltage drop values.
Power flow reports the drop across each cable as the difference in solved voltage magnitude between its two ends, in percent of the bus nominal voltage. Transformers report the same difference between their windings. These values come from the solved operating point.
Cable sizing checks voltage drop before any study runs, with this approximation:
VD% = k x I x L x (R_design x PF + X x sin(acos(PF))) / runs / V x 100
k = sqrt(3) for three-phase (V line-to-line), 2 for single-phase
R_design = R_catalogue x (1 + alpha x (T_termination - T_catalogue))The current is the connected design current, with no demand, diversity or utilization factor. Resistance is corrected to the conductor's termination temperature; reactance is not corrected. The path check adds the segment drops from the nearest source boundary (a utility, generator or transformer secondary) to each load, motor or drive. A drive output is its own path. EKX never adds drops across a transformer, across a drive or between sibling branches.
| Code profile | Each circuit | Whole path |
|---|---|---|
| NEC 2026 | The cable's own limit, otherwise the project default, 3% unless changed (design target) | 5% (design target) |
| CEC 2024 | 3% code maximum, or a stricter target | 5% code maximum |
Under CEC 2024, EKX applies these maxima to circuits at the nominal voltages listed in Rule 8-100. Service conductors have no separate circuit maximum. Cable sizing describes the full workflow.
The two values can differ for one cable. Power flow uses the operating load, the solved voltage (a constant-power load draws more current as voltage falls) and 75 °C resistance. Sizing uses connected current at nominal voltage and resistance at the termination temperature.
Scenarios
Power flow runs on the scenario selected in the header. A scenario's overrides replace the Base values for that run. For power flow these include whether a component is in service, whether a device or wire is open, load power and factors, transformer tap position, generator power and power factor, utility operating voltage and capacitor bank energized steps. Part of the network that an open device, an open wire or an out-of-service component cuts off shows No supply and is left out of the solved results. A bus that nothing in the drawing joins to a source, even with everything closed, stops the study and is named. See Scenarios.
What power flow leaves out
- Unbalanced operation, single-phase networks and neutral currents.
- Utility source impedance, generator reactive power limits and any generator voltage other than 1.0 pu.
- Automatic tap changers, voltage regulators and transformer phase shift.
- Cable temperature correction, and charging for cables with no catalogue capacitance.
- Impedance, losses and input power factor of drives, starters and protection devices.
- Motor starting, time-varying load and any dynamic behaviour. Each run is one steady-state operating point.
- Harmonics, which have their own study: see How EKX calculates harmonics.