A /system model with S-parameter N-port blocks, solved through the circuit engine (Y9.b)
curl --request POST \
--url https://api.eddy.engineer/v1/system.nport \
--header 'Content-Type: application/json' \
--data '{}'import requests
url = "https://api.eddy.engineer/v1/system.nport"
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/system.nport', 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/system.nport",
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/system.nport"
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/system.nport")
.header("Content-Type", "application/json")
.body("{}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/system.nport")
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_body1D
A /system model with S-parameter N-port blocks, solved through the circuit engine (Y9.b)
The N track's model document carries scalar parameters only, so an S-parameter block is posted here: `model` {name, components, connects} as /v1/solve.system takes it, where a component of type `SParameterNPort` carries `em_result` (a stored driven EM solve's result key — its ports p1..pN, N from the solve's S-matrix) and `params.z0`, beside Resistor / Capacitor / Inductor / Ground / ConstantVoltage / StepVoltage / SineVoltage. The connects merge by union-find into nets (a Ground pin's net is node 0), each block becomes Y9's E1 `sparam` element on its key (port k between p<k> and ground) and the network solves through the engine's circuit solve (the S-matrix read by content address). `analysis` is an E1 analysis (`transient` / `ac` / `dc_op`); absent, a transient over `sim` {stop, steps}. The answer is in the system's naming (`solution.series`: `<component>.v` = p − n, `<component>.i` where E1 has the branch current, `<block>.p<k>.v`; an AC sweep's magnitudes over `solution.freqs` with `x_label`), with `system_key` / `circuit_key`, the E1 `netlist`, the net of every pin (`nodes`), each block's S-matrix summary (`nports`: n_ports, z0, points, band, |S| in dB at the first frequency) and `warnings` (in a transient a block stands as its DC-limit conductances — E1's transient form; a broadband N-port in time is not claimed). A mechanical / thermal / hydraulic component beside a block refuses 422 NOT_YET naming Y9.c; a model without a block is a 400 (it solves through /v1/solve.system).
POST
/
v1
/
system.nport
A /system model with S-parameter N-port blocks, solved through the circuit engine (Y9.b)
curl --request POST \
--url https://api.eddy.engineer/v1/system.nport \
--header 'Content-Type: application/json' \
--data '{}'import requests
url = "https://api.eddy.engineer/v1/system.nport"
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/system.nport', 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/system.nport",
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/system.nport"
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/system.nport")
.header("Content-Type", "application/json")
.body("{}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/system.nport")
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