curl --request POST \
--url https://api.eddy.engineer/v1/solve.system \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"model": {},
"sim": {},
"async": false,
"record": false
}
'import requests
url = "https://api.eddy.engineer/v1/solve.system"
payload = {
"model": {},
"sim": {},
"async": False,
"record": False
}
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({model: {}, sim: {}, async: false, record: false})
};
fetch('https://api.eddy.engineer/v1/solve.system', 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/solve.system",
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([
'model' => [
],
'sim' => [
],
'async' => false,
'record' => false
]),
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/solve.system"
payload := strings.NewReader("{\n \"model\": {},\n \"sim\": {},\n \"async\": false,\n \"record\": false\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/solve.system")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"model\": {},\n \"sim\": {},\n \"async\": false,\n \"record\": false\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/solve.system")
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 \"model\": {},\n \"sim\": {},\n \"async\": false,\n \"record\": false\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>"
}
}Modelica-style system simulation (N1)
Simulate a flat acausal network: union-find over connect sets (across/through per domain) onto companion-model MNA with trapezoidal stepping. Library: electrical (Resistor, Capacitor, Inductor, Ground, ConstantVoltage, StepVoltage, SineVoltage, IdealDiode), rotational (Inertia, Spring, Damper, Fixed, ConstantTorque, StepTorque, IdealGear), thermal (HeatCapacitor, ThermalConductor, FixedTemperature, FixedHeatFlow — across T in K, through Q_flow in W), translational (Mass, TranslationalSpring, TranslationalDamper, TranslationalFixed, ConstantForce, StepForce — across v in m/s, through f in N), hydraulic (PressureSource, FlowSource, HydraulicResistance, HydraulicCompliance — across p in Pa, through q in m3/s; an AUTHORED companion package, SuperstringNetwork.Hydraulic, not MSL: Modelica.Fluid’s stream connectors are outside the across/through envelope) and the EMF coupler (v = kw, tau = ki). IdealDiode (events) resolves on/off by the per-step fixed-point iteration; IdealGear is the ideal-transformer constraint w_a = ratiow_b, 0 = ratiotau_a + tau_b (MSL sign convention, fixed support). Structural honesty: over-constrained potential-source pairs/loops refuse typed (IndexOverconstrained, naming the loop members), flow-source-only nodes refuse typed (FlowSourceCutset, naming the ports), and a storage directly paralleled by a potential source (index-2) initializes consistently — the start attribute yields to the source exactly. Ports of different physical domains never connect (typed refusal); a domain with no reference (Ground/Fixed/FixedTemperature-or-HeatCapacitor/PressureSource-or-HydraulicCompliance) solves on gmin but is flagged in warnings. The system_key is a content address over the (model, sim) document. Every solve mints a RunRecord under the system_key, so /v1/traces/, /v1/reports/ and the corpus export serve system solves like FEA solves. Set record=true to store as a blob. Set async=true for compute placement: a 202 JobRef instead of the inline solution — the finished job carries the SAME system_key and byte-identical solution (placement is explicitly the caller’s choice).
curl --request POST \
--url https://api.eddy.engineer/v1/solve.system \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"model": {},
"sim": {},
"async": false,
"record": false
}
'import requests
url = "https://api.eddy.engineer/v1/solve.system"
payload = {
"model": {},
"sim": {},
"async": False,
"record": False
}
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({model: {}, sim: {}, async: false, record: false})
};
fetch('https://api.eddy.engineer/v1/solve.system', 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/solve.system",
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([
'model' => [
],
'sim' => [
],
'async' => false,
'record' => false
]),
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/solve.system"
payload := strings.NewReader("{\n \"model\": {},\n \"sim\": {},\n \"async\": false,\n \"record\": false\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/solve.system")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"model\": {},\n \"sim\": {},\n \"async\": false,\n \"record\": false\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/solve.system")
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 \"model\": {},\n \"sim\": {},\n \"async\": false,\n \"record\": false\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>"
}
}Body
Response
System solution: per-variable series ("resistor1.v") + units + t + warnings + content-addressed system_key