Skip to main content
POST
Faults in the phase domain: earth faults on SWER lines and any line-to-earth, line-to-line or three-phase fault solved in PW4's phase-domain network with its electrodes; not IEC 60909 (`ss.power.phase_fault/1`)

Authorizations

x-api-key
string
header
required

Required when the deployment sets SS_REQUIRE_AUTH=1

Body

application/json
study
object
required

UD11.b's faults: faults [{id, bus, fault, r_ohm}], at least one and at most 500; fault is {kind: line_to_earth, conductor} | {kind: line_to_line, conductors: [a, b]} (a phase to a neutral conductor is one) | {kind: line_to_line_to_earth, conductors: [a, b]} | {kind: three_phase} | {kind: three_phase_to_earth}; r_ohm the fault resistance per conductor, 0 a bolted fault

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), and it runs within the job's budget (SS_POWER_DIST_JOB_WORK, 2e9 conductor-solves) rather than the crate's inline one. false: always inline. Left out: sized by the estimated work (work in the answer): inline up to 1e7 conductor-solves (SS_POWER_DIST_SYNC_WORK), on the heavy lane above 2e6 (SS_POWER_DIST_LIGHT_WORK), a job above 1e7

case
string

A study case of the document, by id: its switch and source states and in_service are laid over the document. A case that states load levels (load_scale, loads) or solver settings is refused (POWER_CASE_NOT_READ): profiles and the study's DER cases set the loads, settings the solver's. Left out: the document as it stands

network
object

The network document (ss.power.network/1), inline, with its ders, controls and profiles bindings (UD2). Give exactly one of network, network_key, project

network_key
string

The key (b3:<hex>) of a stored network: what power_network, power_import, power_gis 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

UD11.b's settings: prefault (loaded | flat), inverter_lag_deg (90: reactive current; 0 active), load_flow (PW4's phase-domain load flow settings: tolerance_pu, max_iterations, earth_model (carson | full_carson | deri), earth_resistivity_ohm_m, transformer_no_load, antifloat_ppm, load_voltage_window, switch_impedance_ohm; OpenDSS's where left out). The source is always taken behind its impedance

variant
string

A variant of project, by slug

Response

study, schema, result_key (BLAKE3 of the result's canonical bytes, the crate's own; 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; never its entries), upstream, parts, validation, summary, work (the estimate the lane was chosen by, and whether the job budget was used), result_inline, and result: method (phase_domain) and statement (not IEC 60909), settings, prefault (mode, whether the pre-fault load flow converged, its hash, the taps the faults were solved at), faults in the order given (each: status solved | not_converged | refused and the reason, currents per faulted conductor, earth_current_a, sequence, buses (every conductor's voltage before and during), branches (each end's currents per conductor and direction), devices, electrodes (current and earth potential rise epr_v), sources), findings

The response is of type object.