curl --request POST \
--url https://api.eddy.engineer/v1/power.dynamics.bench \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"async": true,
"max_points": 123,
"plant": {},
"plant_key": "<string>",
"settings": {},
"tests": [
"<string>"
]
}
'import requests
url = "https://api.eddy.engineer/v1/power.dynamics.bench"
payload = {
"async": True,
"max_points": 123,
"plant": {},
"plant_key": "<string>",
"settings": {},
"tests": ["<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({
async: true,
max_points: 123,
plant: {},
plant_key: '<string>',
settings: {},
tests: ['<string>']
})
};
fetch('https://api.eddy.engineer/v1/power.dynamics.bench', 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.dynamics.bench",
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([
'async' => true,
'max_points' => 123,
'plant' => [
],
'plant_key' => '<string>',
'settings' => [
],
'tests' => [
'<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.dynamics.bench"
payload := strings.NewReader("{\n \"async\": true,\n \"max_points\": 123,\n \"plant\": {},\n \"plant_key\": \"<string>\",\n \"settings\": {},\n \"tests\": [\n \"<string>\"\n ]\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.dynamics.bench")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"async\": true,\n \"max_points\": 123,\n \"plant\": {},\n \"plant_key\": \"<string>\",\n \"settings\": {},\n \"tests\": [\n \"<string>\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/power.dynamics.bench")
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 \"async\": true,\n \"max_points\": 123,\n \"plant\": {},\n \"plant_key\": \"<string>\",\n \"settings\": {},\n \"tests\": [\n \"<string>\"\n ]\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>"
}
}The GPS test bench: a plant on an infinite bus through DMAT v3.0's set-ups, one test or all (`ss.power.bench/1`)
DY13: the plant behind its connection point on a grid source of the test’s SCR and X/R; each test expanded into a reproducible study case (its network, dynamics and case hashes, and the run’s), run, and summarised at the connection point (P, Q, V, f) and the terminal; tests the RMS model cannot run are listed as not run with the reason; a run the plant does not ride through ends failed, naming the equation. Always on the heavy lane; more than a few tests run as a job (the whole bench is minutes). Refused by name: POWER_REQUEST (400: the body, a member the study does not take, a document given twice or not at all, an unknown test id), POWER_SETTINGS (400: a setting that does not read, with the field), DYNAMICS_DOCUMENT_INVALID (400: a dynamics document, study case or GPS that does not read), POWER_DOCUMENT_INVALID (400: the network), POWER_NETWORK_NOT_FOUND / POWER_DYNAMICS_NOT_FOUND (404: a key that names no such document), POWER_PROJECT_KIND (422), POWER_BUSY (429: the heavy lane is full; retry after Retry-After, or send async: true), BENCH_PLANT_INVALID (400: the plant does not read). The result is a screening study on generic positive-sequence RMS models, never an AEMO model submission or a DMAT: a person reviews it before it is relied on.
curl --request POST \
--url https://api.eddy.engineer/v1/power.dynamics.bench \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"async": true,
"max_points": 123,
"plant": {},
"plant_key": "<string>",
"settings": {},
"tests": [
"<string>"
]
}
'import requests
url = "https://api.eddy.engineer/v1/power.dynamics.bench"
payload = {
"async": True,
"max_points": 123,
"plant": {},
"plant_key": "<string>",
"settings": {},
"tests": ["<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({
async: true,
max_points: 123,
plant: {},
plant_key: '<string>',
settings: {},
tests: ['<string>']
})
};
fetch('https://api.eddy.engineer/v1/power.dynamics.bench', 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.dynamics.bench",
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([
'async' => true,
'max_points' => 123,
'plant' => [
],
'plant_key' => '<string>',
'settings' => [
],
'tests' => [
'<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.dynamics.bench"
payload := strings.NewReader("{\n \"async\": true,\n \"max_points\": 123,\n \"plant\": {},\n \"plant_key\": \"<string>\",\n \"settings\": {},\n \"tests\": [\n \"<string>\"\n ]\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.dynamics.bench")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"async\": true,\n \"max_points\": 123,\n \"plant\": {},\n \"plant_key\": \"<string>\",\n \"settings\": {},\n \"tests\": [\n \"<string>\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/power.dynamics.bench")
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 \"async\": true,\n \"max_points\": 123,\n \"plant\": {},\n \"plant_key\": \"<string>\",\n \"settings\": {},\n \"tests\": [\n \"<string>\"\n ]\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
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
The plant on DY13's bench, INVENTED or the engineer's: name, network (from the connection point down, with a grid source at it), dynamics, grid_source, poc_bus, device (the inverter), connection_branch (from the connection point into the plant), rated_w, poc_scr, poc_x_r, input_model (a wind plant's aerodynamic model, for Table 17), note. Give it or plant_key
The bench's own choices, each optional: step_s (0.001), event_at_s (1), event_run_s (10), step_at_s (5), step_run_s (15), mfrt_pre_s (5), mfrt_post_s (10), mfrt_seed, bolted_fault_zs (1e-3: a bolted fault through this fraction of |Zs|), keep_channels (false: each test's start, extremes and end only; true: its series at the connection point and terminal, Ipcmd, Iqcmd and the plant controller's frequency). An unknown member is refused
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: statement, test_list (cited), plant, settings, method, counts {run, failed, refused, not_run}, tests [{test, table, label, status, reason, set_up, network_hash, dynamics_hash, case_hash, run_hash, end_s, summary, time_s and channels with keep_channels, findings}], findings
The response is of type object.