Skip to main content
POST
Balanced load flow: bus voltages, branch flows and loading, losses (`ss.power.loadflow/1`)

Authorizations

x-api-key
string
header
required

Required when the deployment sets SS_REQUIRE_AUTH=1

Body

application/json
async
boolean

true: run as a job and answer 202 with job_id, poll and events; the finished job's result is this route's body without the inline result (read result_key's blob). false: always inline. Left out: inline up to 2,000 buses, a job above

case
string

The study case to run, by id: its switch and source states, load levels, method and value tables are laid over the document. Left out: the document as it stands

network
object

The network document (ss.power.network/1), inline: name, frequency_hz, base_va, buses, sources, branches, shunts, loads, motors, devices, cases, extensions. SI units. Give exactly one of network, network_key, project

network_key
string

The key (b3:<hex>) of a stored network: what power_network, power_import and power_edit answer as key

project
string

The id of a project whose document is a network (app: "power"): its live head where it has one, else its last save

settings
object

method (newton_raphson, the default | fast_decoupled_xb | fast_decoupled_bx | dc), tolerance_pu (largest bus power mismatch, 1e-8), max_iterations, init (auto | flat | dc), enforce_q_limits (true), release_q_limits (true), max_control_iterations (20). Every member is optional; an unknown one is refused

variant
string

A variant of project, by slug

Response

study, schema, result_key (BLAKE3 of the result's canonical bytes; blob_uri reads it, report_uri is its certificate, which verify_result runs again), request_key, network {key, name, counts}, case, tables (each table read, by id, item, revision and content key), libraries, upstream (keys of the results it stands on), parts, validation (the document's own findings: errors, warnings, findings), summary, result_inline, and result: the load flow: converged, islands, buses (v_pu, angle_deg, p and q), branches (flows at both ends, losses, loading), sources, totals, findings

The response is of type object.