Skip to main content
POST
Flat run: the documents with no event for 10 s, to catch initialisation errors (`ss.power.flat_run/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 the estimated work of 2e6 point-elements (SS_POWER_DYNAMICS_SYNC_WORK; about two dozen bench tests), a job above: the whole bench, a whole clause check and a long CCT search are jobs

dynamics
object

The dynamics document (ss.power.dynamics/1, DY2): name, models [{id, device, model (a registry name: GENCLS, GENROU, GENSAL, SEXS, IEEEX1, ESST1A, ESAC1A, TGOV1, IEEEG1, HYGOV, GAST, IEEEST, PSS2A, REGCA1, REECA1, REECB1, REECCU1, REPCA1, WTDTA1, WTARA1, WTPTA1, WTTQA1, REGFM_A1, MNLEX2, IEEEVC, PSAT loads and motors ...), params (the registry's names and units), mbase_va, refs}]. Give it or dynamics_key

dynamics_key
string

The key of a stored dynamics document (what power_dynamics_validate or power_dynamics_import answers)

dyncase
object

The dynamic study case (ss.power.dyncase/1, DY2): duration_s, step_s (the plan's default: 1 ms with inverter models, 2.5 ms synchronous only), variable_step {rtol, atol, max_step_s}, case (the PW2 study case whose load flow starts the run), events [{id, t_s, action: {kind: bus_fault (bus, r_ohm, x_ohm) | clear_fault | branch_trip | branch_close | device_trip | load_change | reference_step | reference_ramp | source_voltage_step | source_voltage_ramp | source_frequency_step | source_frequency_ramp | source_angle_step | source_strength}}], monitors [{element, quantity: voltage | angle | frequency | active_power | reactive_power | current | rotor_angle | speed | field_voltage | mechanical_power | active_current_command | reactive_current_command | plant_frequency | field_current | ...}]. Give it or dyncase_key

dyncase_key
string

The key of a stored dynamic study case

network
object

The network document (ss.power.network/1, PW2), inline. Give exactly one of network, network_key, project. Every document is run in its canonical form

network_key
string

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

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

variant
string

A variant of project, by slug

Response

study, schema, result_key (BLAKE3 of the result's canonical bytes, the crate's own hash; blob_uri reads it, report_uri is its certificate, which verify_result runs again), request_key, documents (each document the study read, by content key), network {key, name, counts}, tables, upstream, summary, work (the estimate the lane and the job threshold read), result_inline, series (how the series were cut), and result: schema, the documents' hashes, rule, and report {passed, max_derivative, derivative_state, max_drift, drift_variable, events, trajectory}

The response is of type object.