curl --request POST \
--url https://api.eddy.engineer/v1/power.dynamics.frequency \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"async": true,
"dynamics": {},
"dynamics_key": "<string>",
"dyncase": {},
"dyncase_key": "<string>",
"max_points": 123,
"network": {},
"network_key": "<string>",
"on": "<string>",
"project": "<string>",
"settings": {},
"state": "<string>",
"tables": [
"<string>"
],
"variant": "<string>"
}
'import requests
url = "https://api.eddy.engineer/v1/power.dynamics.frequency"
payload = {
"async": True,
"dynamics": {},
"dynamics_key": "<string>",
"dyncase": {},
"dyncase_key": "<string>",
"max_points": 123,
"network": {},
"network_key": "<string>",
"on": "<string>",
"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({
async: true,
dynamics: {},
dynamics_key: '<string>',
dyncase: {},
dyncase_key: '<string>',
max_points: 123,
network: {},
network_key: '<string>',
on: '<string>',
project: '<string>',
settings: {},
state: '<string>',
tables: ['<string>'],
variant: '<string>'
})
};
fetch('https://api.eddy.engineer/v1/power.dynamics.frequency', 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.frequency",
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,
'dynamics' => [
],
'dynamics_key' => '<string>',
'dyncase' => [
],
'dyncase_key' => '<string>',
'max_points' => 123,
'network' => [
],
'network_key' => '<string>',
'on' => '<string>',
'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.dynamics.frequency"
payload := strings.NewReader("{\n \"async\": true,\n \"dynamics\": {},\n \"dynamics_key\": \"<string>\",\n \"dyncase\": {},\n \"dyncase_key\": \"<string>\",\n \"max_points\": 123,\n \"network\": {},\n \"network_key\": \"<string>\",\n \"on\": \"<string>\",\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.dynamics.frequency")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"async\": true,\n \"dynamics\": {},\n \"dynamics_key\": \"<string>\",\n \"dyncase\": {},\n \"dyncase_key\": \"<string>\",\n \"max_points\": 123,\n \"network\": {},\n \"network_key\": \"<string>\",\n \"on\": \"<string>\",\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.dynamics.frequency")
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 \"dynamics\": {},\n \"dynamics_key\": \"<string>\",\n \"dyncase\": {},\n \"dyncase_key\": \"<string>\",\n \"max_points\": 123,\n \"network\": {},\n \"network_key\": \"<string>\",\n \"on\": \"<string>\",\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>"
}
}Frequency response after a contingency: nadir, RoCoF, settling, fast frequency response, the single-bus closed form (`ss.power.frequency/1`)
DY10: one run of the study case holding the contingency (a generator or the largest infeed tripped, a load change, a branch trip); the centre of inertia’s frequency and every bus’s (REPCA1’s measurement); nadir or zenith, the rate of change of frequency over a window, settling; each plant’s fast frequency response through REPCA1’s droop; a single-bus closed form beside the run (unevaluable, with the reason, where it does not apply). Criteria are entered, never built in: entries frequency/<key> of adopted value tables (the frequency operating standard is a table the engineer fills); a criterion with no entry is unevaluable, named. 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), POWER_VALUE_TABLE (422), and, where the documents cannot be run as they are, 422 with the engine’s own code (the first error: DYN_MODEL_UNSUPPORTED, DYN_INIT_FAILED, DYN_SOURCE_NO_MODEL, TS_STUDY_INVALID, FREQ_NO_CONTINGENCY, …) and every error in the message. What happens inside a run (Newton does not converge, a limiter, a stopped run) is in the result, typed and naming the equation or element, with status 200. 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.frequency \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"async": true,
"dynamics": {},
"dynamics_key": "<string>",
"dyncase": {},
"dyncase_key": "<string>",
"max_points": 123,
"network": {},
"network_key": "<string>",
"on": "<string>",
"project": "<string>",
"settings": {},
"state": "<string>",
"tables": [
"<string>"
],
"variant": "<string>"
}
'import requests
url = "https://api.eddy.engineer/v1/power.dynamics.frequency"
payload = {
"async": True,
"dynamics": {},
"dynamics_key": "<string>",
"dyncase": {},
"dyncase_key": "<string>",
"max_points": 123,
"network": {},
"network_key": "<string>",
"on": "<string>",
"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({
async: true,
dynamics: {},
dynamics_key: '<string>',
dyncase: {},
dyncase_key: '<string>',
max_points: 123,
network: {},
network_key: '<string>',
on: '<string>',
project: '<string>',
settings: {},
state: '<string>',
tables: ['<string>'],
variant: '<string>'
})
};
fetch('https://api.eddy.engineer/v1/power.dynamics.frequency', 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.frequency",
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,
'dynamics' => [
],
'dynamics_key' => '<string>',
'dyncase' => [
],
'dyncase_key' => '<string>',
'max_points' => 123,
'network' => [
],
'network_key' => '<string>',
'on' => '<string>',
'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.dynamics.frequency"
payload := strings.NewReader("{\n \"async\": true,\n \"dynamics\": {},\n \"dynamics_key\": \"<string>\",\n \"dyncase\": {},\n \"dyncase_key\": \"<string>\",\n \"max_points\": 123,\n \"network\": {},\n \"network_key\": \"<string>\",\n \"on\": \"<string>\",\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.dynamics.frequency")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"async\": true,\n \"dynamics\": {},\n \"dynamics_key\": \"<string>\",\n \"dyncase\": {},\n \"dyncase_key\": \"<string>\",\n \"max_points\": 123,\n \"network\": {},\n \"network_key\": \"<string>\",\n \"on\": \"<string>\",\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.dynamics.frequency")
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 \"dynamics\": {},\n \"dynamics_key\": \"<string>\",\n \"dyncase\": {},\n \"dyncase_key\": \"<string>\",\n \"max_points\": 123,\n \"network\": {},\n \"network_key\": \"<string>\",\n \"on\": \"<string>\",\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
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 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
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
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.