Skip to main content
POST
Size a single-tuned harmonic filter and show the study with and without it (`ss.power.harmonics.filter/1`)

Authorizations

x-api-key
string
header
required

Required when the deployment sets SS_REQUIRE_AUTH=1

Body

application/json
filter
object
required

id, bus, tuned_order (4.7 for a filter tuned just below the 5th), quality_factor, sizing ({kind: filter_var, q_var} or {kind: capacitor_var, q_var}), rated_v and rated_var (the capacitor's ratings, for the duty)

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

on
string

The date the tables must be in force on, YYYY-MM-DD; today when left out

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

scan
object

A frequency scan to run with and without the filter: buses, order_from, order_to, step

settings
object

load_flow (the fundamental load flow's settings, as power_loadflow takes), load_model ({kind: mixed, series_share} with 0.5 by default, or {kind: none}), line_resistance and transformer_resistance ({kind: constant} or {kind: power, exponent}), max_order, limits (limits a person entered: table, citation, voltage rows, current rows; left out, they are read from a handed value table's harmonic_voltage/<row>/… and harmonic_current/<row>/… entries, and with neither nothing is judged)

state
string

The state the tables must be in force for (such as NSW), where a table is keyed by state

tables
string[]

Ids of adopted value tables (ss.mep.values/1, mep_values_import then a person's mep_values_adopt). The study case's own value_tables are added. At most 8

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: spec, design (the filter as harmonic data, C, L, the reactive powers), thd (each bus without and with the filter), duty, with_filter (the harmonic load flow with it in place), and the scans where asked for

The response is of type object.