The STAR-class opto-mechanical composition: an F-track result key's nodal displacements and temperatures deform and heat the named surfaces (OP11)
curl --request POST \
--url https://api.eddy.engineer/v1/optics.star \
--header 'Content-Type: application/json' \
--data '{}'import requests
url = "https://api.eddy.engineer/v1/optics.star"
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/optics.star', 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/optics.star",
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/optics.star"
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/optics.star")
.header("Content-Type", "application/json")
.body("{}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/optics.star")
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_bodyOptics
The STAR-class opto-mechanical composition: an F-track result key's nodal displacements and temperatures deform and heat the named surfaces (OP11)
The same body as `/v1/solve.optics` with `star` on the system: {result (a structural / thermal result key of this catalog, by content address), surfaces: [{surface, set (a named node set of the F-track mesh — a box's faces are x_min … z_max)}], displacement_field (displacement), temperature_field (temperature; empty = none), scale, unit_scale (the FEA metres in lens units: 1000 for mm), origin (the optical frame's origin in the scaled FEA frame; the axis is the FEA's z), fit: zernike | rigid, zernike_terms, apply_temperature, temperature_unit: K | C, temperature_offset_c}. Each surface's nodes fit a 6-DOF rigid motion (exact for a rigid motion) that becomes a coordinate-break pair around the surface, the residual normal displacement a Standard Zernike sag (the surface becomes a ZernikeStandardSag; the fit RMS is the Fit Assessment), the mean nodal temperature the medium's temperature (OP10's dn/dT). The run is the shared lifecycle's (content-addressed: the key is in the case's bytes); the STAR analyses STARAlignCheck / STARSysViewer / STAR2DDefPlot / STARPerfChange / STARIndexVsTemp / STARInspectFEA run on the composition. Answers {result_id, cached, consumed, surfaces: [{nodes, decenter, tilt_deg, rms_raw, rms_after_rbm, rms_after_fit, max_displacement, zernike_terms, mean_temperature_c}], performance_change (before / after / delta of the EFL, BFL, total track and every field's RMS spot), metrics}. Typed: an unknown key is 404, a missing field or node set names what the source has, a residual sag on a non-Standard base names OP11.b.
POST
/
v1
/
optics.star
The STAR-class opto-mechanical composition: an F-track result key's nodal displacements and temperatures deform and heat the named surfaces (OP11)
curl --request POST \
--url https://api.eddy.engineer/v1/optics.star \
--header 'Content-Type: application/json' \
--data '{}'import requests
url = "https://api.eddy.engineer/v1/optics.star"
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/optics.star', 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/optics.star",
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/optics.star"
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/optics.star")
.header("Content-Type", "application/json")
.body("{}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/optics.star")
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
the composition