An EM design's extracted circuit as SPICE, Modelica and an E1 netlist; the Maxwell ECE from a table (Y19.b / Y16.b)
curl --request POST \
--url https://api.eddy.engineer/v1/em.netlist \
--header 'Content-Type: application/json' \
--data '
{
"design": "<string>",
"document": {},
"length_m": 123,
"name": "<string>",
"setup": "<string>",
"table": {}
}
'import requests
url = "https://api.eddy.engineer/v1/em.netlist"
payload = {
"design": "<string>",
"document": {},
"length_m": 123,
"name": "<string>",
"setup": "<string>",
"table": {}
}
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({
design: '<string>',
document: {},
length_m: 123,
name: '<string>',
setup: '<string>',
table: {}
})
};
fetch('https://api.eddy.engineer/v1/em.netlist', 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.netlist",
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([
'design' => '<string>',
'document' => [
],
'length_m' => 123,
'name' => '<string>',
'setup' => '<string>',
'table' => [
]
]),
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.netlist"
payload := strings.NewReader("{\n \"design\": \"<string>\",\n \"document\": {},\n \"length_m\": 123,\n \"name\": \"<string>\",\n \"setup\": \"<string>\",\n \"table\": {}\n}")
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.netlist")
.header("Content-Type", "application/json")
.body("{\n \"design\": \"<string>\",\n \"document\": {},\n \"length_m\": 123,\n \"name\": \"<string>\",\n \"setup\": \"<string>\",\n \"table\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/em.netlist")
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 = "{\n \"design\": \"<string>\",\n \"document\": {},\n \"length_m\": 123,\n \"name\": \"<string>\",\n \"setup\": \"<string>\",\n \"table\": {}\n}"
response = http.request(request)
puts response.read_bodyFields (EM)
An EM design's extracted circuit as SPICE, Modelica and an E1 netlist; the Maxwell ECE from a table (Y19.b / Y16.b)
With `source: solve` (the default) the design lowers and solves through the one lifecycle (the cache makes a repeat free) and its extracted parameters lower to the circuit world: a Q3D design's Maxwell capacitance matrix (C_i,gnd = Σ_j c_ij, C_ij = −c_ij), each terminated net's R_dc and self inductance in series and the mutual inductances as SPICE `K` couplings (k = M / √(L₁L₂)), all AFTER the design's Reduce Matrix operations (Float / Ground / Join in Parallel / Reorder and Y16.b's Join in Series / Return Path / Change Ground Net — the engine's em_reduce over the stored matrices); a Maxwell magnetic design's coil R and L; a driven HFSS design's S-matrix as Y9's E1 `sparam` N-port on the result key; a 2D Extractor's line as a SPICE `T` element of `length_m`. The response carries `elements`, `couplings`, `netlist` (the E1 NetlistDoc — /v1/solve.circuit runs it), `spice` (a .subckt deck), `modelica` (the N track's SystemDoc) and `modelica_text` (/v1/system.parse reads it back, /v1/solve.system simulates it) with `modelica_refusals` for what the N library cannot carry (a mutual inductance, a line, an N-port), and a content-addressed `netlist_key`. With `source: ece` the `table` {inputs: [one variable], outputs, rows, origin} — the Optimetrics parametric solutions or an imported table — lowers to SPICE lookup elements (`.func … table()`, an L / R / C element per inductance / resistance / capacitance output, a behavioural readout otherwise, the `.step` list).
POST
/
v1
/
em.netlist
An EM design's extracted circuit as SPICE, Modelica and an E1 netlist; the Maxwell ECE from a table (Y19.b / Y16.b)
curl --request POST \
--url https://api.eddy.engineer/v1/em.netlist \
--header 'Content-Type: application/json' \
--data '
{
"design": "<string>",
"document": {},
"length_m": 123,
"name": "<string>",
"setup": "<string>",
"table": {}
}
'import requests
url = "https://api.eddy.engineer/v1/em.netlist"
payload = {
"design": "<string>",
"document": {},
"length_m": 123,
"name": "<string>",
"setup": "<string>",
"table": {}
}
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({
design: '<string>',
document: {},
length_m: 123,
name: '<string>',
setup: '<string>',
table: {}
})
};
fetch('https://api.eddy.engineer/v1/em.netlist', 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.netlist",
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([
'design' => '<string>',
'document' => [
],
'length_m' => 123,
'name' => '<string>',
'setup' => '<string>',
'table' => [
]
]),
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.netlist"
payload := strings.NewReader("{\n \"design\": \"<string>\",\n \"document\": {},\n \"length_m\": 123,\n \"name\": \"<string>\",\n \"setup\": \"<string>\",\n \"table\": {}\n}")
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.netlist")
.header("Content-Type", "application/json")
.body("{\n \"design\": \"<string>\",\n \"document\": {},\n \"length_m\": 123,\n \"name\": \"<string>\",\n \"setup\": \"<string>\",\n \"table\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/em.netlist")
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 = "{\n \"design\": \"<string>\",\n \"document\": {},\n \"length_m\": 123,\n \"name\": \"<string>\",\n \"setup\": \"<string>\",\n \"table\": {}\n}"
response = http.request(request)
puts response.read_body