curl --request POST \
--url https://api.eddy.engineer/v1/power.envelope \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"study": {},
"async": true,
"case": "<string>",
"network": {},
"network_key": "<string>",
"on": "<string>",
"profiles": [
{}
],
"project": "<string>",
"settings": {},
"state": "<string>",
"tables": [
"<string>"
],
"variant": "<string>"
}
'import requests
url = "https://api.eddy.engineer/v1/power.envelope"
payload = {
"study": {},
"async": True,
"case": "<string>",
"network": {},
"network_key": "<string>",
"on": "<string>",
"profiles": [{}],
"project": "<string>",
"settings": {},
"state": "<string>",
"tables": ["<string>"],
"variant": "<string>"
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
study: {},
async: true,
case: '<string>',
network: {},
network_key: '<string>',
on: '<string>',
profiles: [{}],
project: '<string>',
settings: {},
state: '<string>',
tables: ['<string>'],
variant: '<string>'
})
};
fetch('https://api.eddy.engineer/v1/power.envelope', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.eddy.engineer/v1/power.envelope",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'study' => [
],
'async' => true,
'case' => '<string>',
'network' => [
],
'network_key' => '<string>',
'on' => '<string>',
'profiles' => [
[
]
],
'project' => '<string>',
'settings' => [
],
'state' => '<string>',
'tables' => [
'<string>'
],
'variant' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.eddy.engineer/v1/power.envelope"
payload := strings.NewReader("{\n \"study\": {},\n \"async\": true,\n \"case\": \"<string>\",\n \"network\": {},\n \"network_key\": \"<string>\",\n \"on\": \"<string>\",\n \"profiles\": [\n {}\n ],\n \"project\": \"<string>\",\n \"settings\": {},\n \"state\": \"<string>\",\n \"tables\": [\n \"<string>\"\n ],\n \"variant\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.eddy.engineer/v1/power.envelope")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"study\": {},\n \"async\": true,\n \"case\": \"<string>\",\n \"network\": {},\n \"network_key\": \"<string>\",\n \"on\": \"<string>\",\n \"profiles\": [\n {}\n ],\n \"project\": \"<string>\",\n \"settings\": {},\n \"state\": \"<string>\",\n \"tables\": [\n \"<string>\"\n ],\n \"variant\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/power.envelope")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"study\": {},\n \"async\": true,\n \"case\": \"<string>\",\n \"network\": {},\n \"network_key\": \"<string>\",\n \"on\": \"<string>\",\n \"profiles\": [\n {}\n ],\n \"project\": \"<string>\",\n \"settings\": {},\n \"state\": \"<string>\",\n \"tables\": [\n \"<string>\"\n ],\n \"variant\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{}{
"events": "/v1/jobs/job-000001-…/events",
"job_id": "<string>",
"phase": "queued",
"poll": "/v1/jobs/job-000001-…"
}{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}Dynamic operating envelopes: each customer connection's export and import limit at every interval of a time-series run, every connection at its limit at once holding the network's limits (`ss.power.envelope/1`)
UD13: each connection (a customer’s loads and DER, replaced by one element at its net power) gets, for every interval of UD3’s run, an export limit and an import limit such that with every connection at its limit at once every limit the study gives holds: overvoltage, thermal and reverse flow at regulators exporting; undervoltage and thermal importing. Method: the forecast run with every connection at zero, a perturbed run for the sensitivities, an allocation rule (equal, or proportional to each connection’s rating), then replays of the whole range with every connection at its envelope, tightening each interval that breaks a limit and raising each with room, until a replay is clean; the result is that replay (its extremes, headroom and binding quantity per interval). Computed ahead, not dispatched: no communications with any connection (stated on every result). compare replays a fixed limit per connection beside the envelopes and states where it breaks. No limit is built in: each is the study’s input, a network operator’s published limit. An interval whose limit is broken with every connection at zero is unmet; one the replays could not settle is unsettled, each named. A year of steps is a job. Not drawn on the map yet (power_resultmap refuses it by name). Refused by name: POWER_REQUEST (400: the body, a member the study does not take, not exactly one network source, a study missing, a value table given inline), POWER_SETTINGS (400: settings or study does not read, with the field), POWER_DOCUMENT_INVALID (400), POWER_NETWORK_NOT_FOUND (404), POWER_PROFILE_NOT_FOUND (404: a profile the network binds is not stored), POWER_PROJECT_KIND (422), POWER_VALUE_TABLE (422: a named table missing, not adopted or not in force), POWER_CASE_NOT_FOUND, POWER_CASE_NOT_READ (422), POWER_BUSY (429: the heavy lane is full; retry after Retry-After, or send async: true), POWER_ENVELOPE_INVALID (422: a limit not above zero, a direction held to no limit, crossed voltage limits, a power factor outside (0, 1], an unknown load or DER, a load in two connections, a rating missing under proportional, …), POWER_ENVELOPE_OVER_BUDGET (422: the runs’ work or the kept forecast over its budget, before anything runs), POWER_ENVELOPE_UNEVALUABLE (422: an inverter setting read from a value table the study was not given or that lacks it, naming the table and key). A design aid: a person reviews it before it is relied on.
curl --request POST \
--url https://api.eddy.engineer/v1/power.envelope \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"study": {},
"async": true,
"case": "<string>",
"network": {},
"network_key": "<string>",
"on": "<string>",
"profiles": [
{}
],
"project": "<string>",
"settings": {},
"state": "<string>",
"tables": [
"<string>"
],
"variant": "<string>"
}
'import requests
url = "https://api.eddy.engineer/v1/power.envelope"
payload = {
"study": {},
"async": True,
"case": "<string>",
"network": {},
"network_key": "<string>",
"on": "<string>",
"profiles": [{}],
"project": "<string>",
"settings": {},
"state": "<string>",
"tables": ["<string>"],
"variant": "<string>"
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
study: {},
async: true,
case: '<string>',
network: {},
network_key: '<string>',
on: '<string>',
profiles: [{}],
project: '<string>',
settings: {},
state: '<string>',
tables: ['<string>'],
variant: '<string>'
})
};
fetch('https://api.eddy.engineer/v1/power.envelope', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.eddy.engineer/v1/power.envelope",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'study' => [
],
'async' => true,
'case' => '<string>',
'network' => [
],
'network_key' => '<string>',
'on' => '<string>',
'profiles' => [
[
]
],
'project' => '<string>',
'settings' => [
],
'state' => '<string>',
'tables' => [
'<string>'
],
'variant' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.eddy.engineer/v1/power.envelope"
payload := strings.NewReader("{\n \"study\": {},\n \"async\": true,\n \"case\": \"<string>\",\n \"network\": {},\n \"network_key\": \"<string>\",\n \"on\": \"<string>\",\n \"profiles\": [\n {}\n ],\n \"project\": \"<string>\",\n \"settings\": {},\n \"state\": \"<string>\",\n \"tables\": [\n \"<string>\"\n ],\n \"variant\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.eddy.engineer/v1/power.envelope")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"study\": {},\n \"async\": true,\n \"case\": \"<string>\",\n \"network\": {},\n \"network_key\": \"<string>\",\n \"on\": \"<string>\",\n \"profiles\": [\n {}\n ],\n \"project\": \"<string>\",\n \"settings\": {},\n \"state\": \"<string>\",\n \"tables\": [\n \"<string>\"\n ],\n \"variant\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/power.envelope")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"study\": {},\n \"async\": true,\n \"case\": \"<string>\",\n \"network\": {},\n \"network_key\": \"<string>\",\n \"on\": \"<string>\",\n \"profiles\": [\n {}\n ],\n \"project\": \"<string>\",\n \"settings\": {},\n \"state\": \"<string>\",\n \"tables\": [\n \"<string>\"\n ],\n \"variant\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{}{
"events": "/v1/jobs/job-000001-…/events",
"job_id": "<string>",
"phase": "queued",
"poll": "/v1/jobs/job-000001-…"
}{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}Body
UD13's envelope study: run (UD3's time-series study: start, steps, step_s, scale, control, limits; the profiles' own step where it states none) and limits {v_min_pu, v_max_pu, loading_max_pct, reverse_flow_w} (each the study's input; none built in), and optionally connections [{id, loads, ders, max_w}] (every load in service where left out), allocation (equal | proportional), directions ([export, import]), max_w (equal: every connection's cap; 1,000 resolution steps), resolution_w (100 W on LV, 1 kW otherwise), sensitivity_step_w, power_factor (1), reactive (absorbing | producing), max_replays (12), raise_passes (3), compare {export_w, import_w} (a fixed limit per connection replayed beside), store_budget_bytes. Inverter settings come from tables, never inline
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
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
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)
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: dispatch (computed ahead, not dispatched), allocation and method (stated), step_s, steps, resolution_w, connections (each its element, bus, phases, loads, DER and cap), export and import (each: the limits judged, intervals with the envelope per unit of every cap and in W, status, limits broken, binding quantity, the replay's extremes and headroom; total_mwh, the least, mean and most limit, counts held, ceiling, unmet and unsettled; fixed: the fixed limit's energy, intervals broken and the envelopes' energy over it), runs, step_solves, findings
The response is of type object.