Skip to main content
POST
Frequency response after a contingency: nadir, RoCoF, settling, fast frequency response, the single-bus closed form (`ss.power.frequency/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

max_points
integer

The points each series is returned with in the answer (2,000): every n-th point, the last, and both sides of every event; the stored result keeps every point

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)

on
string

The date the tables must be in force on, YYYY-MM-DD (today when left out; written into the record only where a table was read)

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

contingency (the event id; left out, the first trip or load change), lost_power_mw, rocof_window_s (0.5), settling_tolerance_hz (0.01), settling_hold_s (2), phase_jump_window_s (0.1), buses, load_damping_pu (0), response_fraction (0.9), closed_form_flag (0.1). Every member optional

state
string

The state the tables must be in force for (NSW, VIC, ...)

tables
string[]

Ids of adopted value tables (ss.mep.values/1, MEP8's routes) the study reads; one that is missing, not adopted or not in force refuses the study (POWER_VALUE_TABLE)

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: contingency, largest_infeed, inertia, coi_hz, coi (metrics), buses [{bus, metrics}], worst_bus, ffr, closed_form, criteria, findings, simulation (the run judged, its series cut in the answer)

The response is of type object.