Field lines, particle traces, 3D contours, the phase animation and Save As over an EM design's stored fields (Y18.b)
curl --request POST \
--url https://api.eddy.engineer/v1/em.field_plot \
--header 'Content-Type: application/json' \
--data '
{
"document": {},
"design": "<string>",
"params": {},
"setup": "<string>"
}
'import requests
url = "https://api.eddy.engineer/v1/em.field_plot"
payload = {
"document": {},
"design": "<string>",
"params": {},
"setup": "<string>"
}
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({document: {}, design: '<string>', params: {}, setup: '<string>'})
};
fetch('https://api.eddy.engineer/v1/em.field_plot', 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.field_plot",
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([
'document' => [
],
'design' => '<string>',
'params' => [
],
'setup' => '<string>'
]),
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.field_plot"
payload := strings.NewReader("{\n \"document\": {},\n \"design\": \"<string>\",\n \"params\": {},\n \"setup\": \"<string>\"\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.field_plot")
.header("Content-Type", "application/json")
.body("{\n \"document\": {},\n \"design\": \"<string>\",\n \"params\": {},\n \"setup\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/em.field_plot")
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 \"document\": {},\n \"design\": \"<string>\",\n \"params\": {},\n \"setup\": \"<string>\"\n}"
response = http.request(request)
puts response.read_bodyFields (EM)
Field lines, particle traces, 3D contours, the phase animation and Save As over an EM design's stored fields (Y18.b)
The design lowers and solves through the one lifecycle (the content-addressed cache makes a repeat free); `kind` picks one op over the fields the solve ALREADY stored — no new solve. `fieldlines`: streamlines of a stored vector (`field`, default the first of e_field / b_field / h_field / d_field) by fixed-length RK4 on F/|F| from `seeds` (or a `seed_count`³ lattice), `direction` both / forward / backward, `step` (default a quarter of the smallest cell), `steps`; rows of {seed, points, values = |F|}. `particles`: a charged particle (`charge_c`, `mass_kg`; an electron by default) from each seed with `velocity`, the Boris push through the stored static E (`e_field`) and B (`b_field`), `dt` (default a tenth of a cell under the peak acceleration and 1/40 of the cyclotron period), `steps`; rows of {points, times, speeds, energy_ev, stop}. A traced family also returns `figure` (a deterministic SVG projection). `contour3d`: iso-surfaces of a stored field (`field`, `scalar` magnitude / x / y / z) at `levels` (or `count` evenly spaced) by marching tetrahedra — one SSVIZ1 blob under `viz`. `animate`: the frames Re{(F_re + jF_im) e^{jφ}} of a stored complex field (`field`, its `<field>_im` blob; a real field animates as F cos φ) over `frames` phases — each frame an SSVIZ1 blob, the extremes over every node per frame. `export`: Fields ▸ Save As — the stored field at every node as a `.fld` table in `text`. Every sample is the Hex8 trilinear interpolation of the S-track probe.
POST
/
v1
/
em.field_plot
Field lines, particle traces, 3D contours, the phase animation and Save As over an EM design's stored fields (Y18.b)
curl --request POST \
--url https://api.eddy.engineer/v1/em.field_plot \
--header 'Content-Type: application/json' \
--data '
{
"document": {},
"design": "<string>",
"params": {},
"setup": "<string>"
}
'import requests
url = "https://api.eddy.engineer/v1/em.field_plot"
payload = {
"document": {},
"design": "<string>",
"params": {},
"setup": "<string>"
}
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({document: {}, design: '<string>', params: {}, setup: '<string>'})
};
fetch('https://api.eddy.engineer/v1/em.field_plot', 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.field_plot",
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([
'document' => [
],
'design' => '<string>',
'params' => [
],
'setup' => '<string>'
]),
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.field_plot"
payload := strings.NewReader("{\n \"document\": {},\n \"design\": \"<string>\",\n \"params\": {},\n \"setup\": \"<string>\"\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.field_plot")
.header("Content-Type", "application/json")
.body("{\n \"document\": {},\n \"design\": \"<string>\",\n \"params\": {},\n \"setup\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/em.field_plot")
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 \"document\": {},\n \"design\": \"<string>\",\n \"params\": {},\n \"setup\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body