HELM power-flow API

The HELM guide describes the supported load models, power-series calculation and convergence diagnostics. The power-flow comparison examines agreement with an iterative solution and the interpretation of failed calculations.

PowerOptLab.solve_pf_helm — Function
solve_pf_helm(net; config=_DEFAULT_CONFIG, switches=:alias,
              ideal_xfmrs=:constrain, max_order=40, tol=1e-8,
              embedding=:load_scaling, source_reference=:earth)
    -> Dict{String,Any}

Solve the power flow with HELM (helm_series) and return the standard result dictionary (SI units, same "bus" shape as the OPF results, compatible with write_result/read_result).

Top-level keys:

  • "termination_status" — "HELM_CONVERGED" | "HELM_SERIES_DIVERGED" (the computed coefficient tail is growing) | "HELM_MAX_ORDER" (series order exhausted before the tolerance was met). Neither non-converged status is a proof of power-flow non-existence.
  • "feasible" — true iff converged.
  • "solve_time" — wall-clock seconds.
  • "bus" — bus_id => terminal => {vr, vi, vm [V], va [rad]}. NaN-filled when HELM does not converge (the standard infeasible convention).
  • "coupling" — id => conductor => {kind, ir, ii [A], im [A]}: the PHYSICAL current through each ideal coupling (closed-switch conductor with switches = :constrain, ideal-transformer winding core).
  • "source_injection" — bus_id => terminal => {ir, ii, im [A]}: current injected into the network by the voltage-source boundary.
  • "helm" — diagnostics: order, residual (A), raw pade_spread, coefficient_tail_norms, coefficient_tail_ratios, the heuristic singularity_estimate, and the embedding / source_reference used. load_margin is retained as a compatibility alias.
source
PowerOptLab.helm_series — Function
helm_series(net; config=_DEFAULT_CONFIG, switches=:alias,
            ideal_xfmrs=:constrain, max_order=40, tol=1e-8,
            embedding=:load_scaling, source_reference=:earth) -> HelmResult

Solve the unbalanced multiconductor power flow of net with the Holomorphic Embedding Load-flow Method on the augmented nodal admittance matrix. Every explicit conductor (neutral, PE, …) keeps its own node.

Deterministic and non-iterative: no initial guess, one LU factorization for the germ and every series order. A converged result is the operational branch continuously connected to the germ. A non-converged result reports whether its finite coefficient tail grew (:series_diverged) or merely exhausted the requested order (:max_order_reached); neither is a proof that no power-flow solution exists.

Keywords:

  • switches, ideal_xfmrs — forwarded to ybus_augmented; switches = :constrain additionally yields every switch-conductor current.
  • max_order — highest series order (default 40).
  • tol — relative convergence tolerance on the s = 1 current mismatch, scaled by the largest load-current magnitude.
  • embedding — :load_scaling (default; the germ is the energized no-load network and the embedding parameter is a load multiplier) or :impedance_germ (constant-impedance parts in the matrix, other load parts blended from an equivalent admittance at the germ — needed when a node is held only by loads, e.g. an unearthed star point).
  • source_reference — :earth (default; source phase terminals fixed to their phasors and the source-bus neutral to 0 V, as in the OPF) or :neutral (phasors imposed phase-to-source-neutral; the source neutral floats with the network's earthing, so neutral-earthing impedances at the source are honoured).

Supported loads: constant power, constant current, constant impedance, ZIP and exponential models in WYE, DELTA and SINGLEPHASE connections. Networks with generators or IBRs raise an ArgumentError: they have no fixed power-flow law in the data model and are not silently dropped. Transformer support and validation follow `ybusaugmented: small or singular leakage is retained in bordered winding ports, finite shunts are included exactly once, andideal_xfmrs = :stamp` rejects units that require a border. Floating references and redundant ideal cycles may still make the germ singular.

source
PowerOptLab.HelmResult — Type
HelmResult

Result of helm_series — the HELM power-flow solution and its diagnostics.

Fields:

  • V — Dict{(bus,terminal),ComplexF64} node-to-earth voltages at s = 1 (every declared terminal, including source/fixed, aliased, and earth-referenced ones).
  • w — unscaled bordered-row solution entries; the PHYSICAL current of couplings[j] is couplings[j].scale * w[j].
  • couplings — the IdealCouplings of the underlying ybus_augmented matrix, in w order.
  • coeffs — series coefficients, one row per unknown (non-fixed nodes, then couplings, then source constraint rows) and one column per order (diagnostic).
  • converged — true iff the s = 1 nonlinear current mismatch is within tolerance.
  • status — :converged | :series_diverged (the finite coefficient tail is growing) | :max_order_reached.
  • residual — max |current mismatch| (A) over every non-Dirichlet node (source-bus terminals included when they are unknowns) and every constraint row, evaluated at the returned solution.
  • n_order — highest series order computed.
  • pade_spread — absolute difference between the last two Wynn-epsilon Padé estimates for each row of coeffs. Values have the units of their corresponding row.
  • coefficient_tail_norms — max-norm of the final coefficient orders used by the status classifier.
  • coefficient_tail_ratios — adjacent ratios of those tail norms. A tail with every ratio above one is classified as :series_diverged.
  • singularity_estimate — heuristic Domb–Sykes estimate of the nearest coefficient-dominating singularity in the embedding parameter. Under embedding = :load_scaling that parameter is a load multiplier; it is never a certified loading margin. NaN means the series is too short or featureless.
  • source_injection — Dict{(bus,terminal),ComplexF64} current (A) injected INTO the network by the voltage-source boundary at each node it acts on: the slack phase currents, and, with source_reference = :earth, the earthing current of the fixed source neutral.
  • embedding, source_reference — the embedding options used.

result.load_margin remains a compatibility alias for result.singularity_estimate; new code should use the latter name.

source