Skip to main content
POST
Stochastic adoption of rooftop PV, home batteries and EV charging: which customers adopt at each level, drawn from a named seed, each sample a time-series run; percentiles per level (`ss.power.adoption/1`)

Authorizations

x-api-key
string
header
required

Required when the deployment sets SS_REQUIRE_AUTH=1

Body

application/json
study
object
required

UD10's adoption study: seed (the named seed, required), samples (per level, at least two), levels [{pv_pct, battery_pct, ev_pct}] (each share not falling from one level to the next), run (UD3's time-series study: start, steps, step_s, scale, control, limits; one step is a snapshot), and optionally customers {loads, max_nominal_v} (every load in service where left out), pv and battery {model (UD2's pv or storage model at a reference size), profile (the binding that drives it), modes, size_w (a distribution, W), round_w}, ev {rated_w, round_w, arrival_h, energy_wh, charge_probability, rule ({kind: unmanaged} | {kind: off_peak, start_h, end_h} | {kind: cap, max_w}), reactive, voltage_model}, limits {v_min_pu, v_max_pu, loading_max_pct, reverse_flow_w}, allowances (UD9's: overvoltage_h, undervoltage_h, thermal_h, reverse_flow_h, curtailed_pct, added_tap_steps, added_capacitor_steps), percentiles ([5, 50, 95]), confidence_pct (95), convergence (the settling check's percentiles and bands). A distribution is {kind: fixed, value} | {kind: uniform, min, max} | {kind: triangular, min, mode, max} | {kind: normal, mean, sd, min, max} | {kind: log_normal, mu, sigma, min, max} | {kind: choice, values, weights}. Inverter settings come from tables, never inline

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

on
string

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

profiles
object[]

Profile documents (ss.power.profile/1) given inline: each is stored first, so the network's profiles bindings find it by key. The rest are read from the store (power_profile, or an OpenDSS power_import)

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

PW4's phase-domain load flow settings: tolerance_pu (1e-8), max_iterations, source (ideal | behind_impedance), earth_model (carson | full_carson | deri), earth_resistivity_ohm_m, transformer_no_load, antifloat_ppm, load_voltage_window ([low, high] per unit), switch_impedance_ohm ([R, X] Ω a conductor of every closed switch that states no resistance, in place of an ideal tie: OpenDSS gives a switch=yes line 0.001 + j0.001 Ω; none by default)

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), handed to the study where it reads them. At most 8. A table is never given inline

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: seed, generator and percentile_rule (how the draws and percentiles are made, in words), customers, base (the run with nothing added), samples (each sample's draw key), levels (per level: the shares, adopters, each sample's row with its installed DER, metrics, pass and breaches, passed, not_converged, pass_share, percentiles per measure), hosting (where allowances are given: found, all or none, the level, the first failing level and the allowance most often broken there), settling (half against all, each row within its band or not; settled), runs, step_solves, findings

The response is of type object.