Evaluate a result of an EM design over its solve (Y18)
curl --request POST \
--url https://api.eddy.engineer/v1/em.result \
--header 'Content-Type: application/json' \
--data '{}'import requests
url = "https://api.eddy.engineer/v1/em.result"
payload = {}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({})
};
fetch('https://api.eddy.engineer/v1/em.result', 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/em.result",
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([
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$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/em.result"
payload := strings.NewReader("{}")
req, _ := http.NewRequest("POST", url, payload)
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/em.result")
.header("Content-Type", "application/json")
.body("{}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/em.result")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{}"
response = http.request(request)
puts response.read_bodyFields (EM)
Evaluate a result of an EM design over its solve (Y18)
The design lowers and solves through the one lifecycle (the content-addressed cache makes a repeat free), then the result's spec is evaluated by the SHARED evaluator (`Orchestrator::fea_result`, the `em_*` ops). Three ways to ask: `result` = a Report object of the design (`ss_em::result::lower_result` is the spec, and the page's `lowerResult()` mirrors it byte for byte); `expressions` = an ad-hoc trace family in the same grammar (`category` defaults to Terminal Solution Data); neither = the Solution Data table, every stored metric named, united and scaled. The grammar: `dB` / `dB10` / `mag` / `re` / `im` / `ang_deg` / `ang_rad` over `S(i,j)` / `Y(i,j)` / `Z(i,j)` / `Gamma(p)` / `Zo(p)` / `VSWR(p)` / `GroupDelay(S(i,j))`, or a solved metric's name (`Z0`, `eps_eff`, `f`, `Q`, `s21_db_3`); an unwrapped complex quantity is its magnitude. Y and Z are converted from the stored S-matrix on a uniform `z0` reference (50 Ω by default) — never a second solve. The response carries `family` (`table` over the sweep / the mode index, `value` at a single point), `table` (rows of `{x, raw_x, values}`), `extra.x` (the axis with its unit and scale) and `extra.traces` (per trace: values, min, max, unit). A graphical display type also returns `figure` (deterministic SVG through the X-track figure engine — Rectangular, Rectangular Stacked, Polar and the Smith chart, with the report's markers, delta markers, limit lines and notes inside the bytes) and `figure_key`; pass `figure: false` to keep the numbers and drop the drawing, and a Data Table never has one. Every trace also carries `characteristics` (avg / max / min / pk2pk, plus the 3 dB `bandwidth` of a dB trace) and, for a complex quantity, its unreduced `complex` samples. A `field_overlay` result paints through the SHARED SSVIZ1 painter (F9's `field` op, unchanged). The Fields Calculator rides `expression` + `reduce` (field / max / min / avg / rms / sum / vol / mean; Y18.b: `surf` / `line` integrate by Gauss quadrature on the stored grid, their geometry in `integral` — `surface` {box: [[lo], [hi]]} (closed, outward) | {plane: {axis, at, lo, hi}} | {walls: [...]}, `line` {points, closed}, and an optional `vector` (a stored 3-component field) for the flux ∮V·n dA or the circulation ∫V·dl; the record comes back as `extra.integral`) with `$name` resolving the design's Named Expressions; `summary: true` returns the Fields Summary table; `markers` probes points on whatever was just evaluated. A report may carry `arithmetic` FFT or TDR over its complex traces (a uniform sweep is required), and a Dataset report reads the document's own table with no solve at all. A Far Fields / 3D-plot report is refused by name. Y18.b: `accumulate` = earlier solutions' traces `[{label, x, traces}]` (Report2D ▸ Accumulate) ride beside this solution's in `extra.traces` and the figure, each tagged with its label.
POST
/
v1
/
em.result
Evaluate a result of an EM design over its solve (Y18)
curl --request POST \
--url https://api.eddy.engineer/v1/em.result \
--header 'Content-Type: application/json' \
--data '{}'import requests
url = "https://api.eddy.engineer/v1/em.result"
payload = {}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({})
};
fetch('https://api.eddy.engineer/v1/em.result', 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/em.result",
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([
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$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/em.result"
payload := strings.NewReader("{}")
req, _ := http.NewRequest("POST", url, payload)
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/em.result")
.header("Content-Type", "application/json")
.body("{}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/em.result")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{}"
response = http.request(request)
puts response.read_bodyBody
application/json
The body is of type object.
Response
ok