curl --request POST \
--url https://api.eddy.engineer/v1/cfd.export \
--header 'Content-Type: application/json' \
--data '
{
"document": {},
"fields": [
"<string>"
],
"name": "<string>",
"patches": [
"<string>"
],
"result_key": "<string>"
}
'import requests
url = "https://api.eddy.engineer/v1/cfd.export"
payload = {
"document": {},
"fields": ["<string>"],
"name": "<string>",
"patches": ["<string>"],
"result_key": "<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: {},
fields: ['<string>'],
name: '<string>',
patches: ['<string>'],
result_key: '<string>'
})
};
fetch('https://api.eddy.engineer/v1/cfd.export', 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/cfd.export",
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' => [
],
'fields' => [
'<string>'
],
'name' => '<string>',
'patches' => [
'<string>'
],
'result_key' => '<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/cfd.export"
payload := strings.NewReader("{\n \"document\": {},\n \"fields\": [\n \"<string>\"\n ],\n \"name\": \"<string>\",\n \"patches\": [\n \"<string>\"\n ],\n \"result_key\": \"<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/cfd.export")
.header("Content-Type", "application/json")
.body("{\n \"document\": {},\n \"fields\": [\n \"<string>\"\n ],\n \"name\": \"<string>\",\n \"patches\": [\n \"<string>\"\n ],\n \"result_key\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/cfd.export")
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 \"fields\": [\n \"<string>\"\n ],\n \"name\": \"<string>\",\n \"patches\": [\n \"<string>\"\n ],\n \"result_key\": \"<string>\"\n}"
response = http.request(request)
puts response.read_bodyWrite the case, its mesh or its result as a file (O16)
{document, format, result_key?, fields?, patches?, name?}. The mesh formats msh (the Fluent ASCII mesh: one cell zone, the interior faces, one face zone per boundary typed by the document’s zones), polymesh (files: points / faces / owner / neighbour / boundary) and stl (bytes_base64; patches selects the faces) write the mesh the case solves on (the imported blob, or the kernel’s mesh of the lowered case). The result formats tecplot (ASCII, FEBRICK / FEPOLYHEDRON, the fields CELLCENTERED), ensight (Gold ASCII: files = .case, .geo, one per scalar) and csv (cell centres + fields) write the stored cell fields of result_key (fields selects: cell_velocity -> x-/y-/z-velocity + magnitude, cell_pressure -> pressure, …). prof writes the O13 profile of patches[0]. case / data / case_data are the suite’s own JSON files: the document with its study hash, the run’s provenance report with the fields. Every response carries bytes and the blake3 hash of the payload. O18: format scp writes the System Coupling schedule (.scp.json: the fluid case and one structure participant per solid zone, the coupling regions, the data transfers, the one-way schedule).
curl --request POST \
--url https://api.eddy.engineer/v1/cfd.export \
--header 'Content-Type: application/json' \
--data '
{
"document": {},
"fields": [
"<string>"
],
"name": "<string>",
"patches": [
"<string>"
],
"result_key": "<string>"
}
'import requests
url = "https://api.eddy.engineer/v1/cfd.export"
payload = {
"document": {},
"fields": ["<string>"],
"name": "<string>",
"patches": ["<string>"],
"result_key": "<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: {},
fields: ['<string>'],
name: '<string>',
patches: ['<string>'],
result_key: '<string>'
})
};
fetch('https://api.eddy.engineer/v1/cfd.export', 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/cfd.export",
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' => [
],
'fields' => [
'<string>'
],
'name' => '<string>',
'patches' => [
'<string>'
],
'result_key' => '<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/cfd.export"
payload := strings.NewReader("{\n \"document\": {},\n \"fields\": [\n \"<string>\"\n ],\n \"name\": \"<string>\",\n \"patches\": [\n \"<string>\"\n ],\n \"result_key\": \"<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/cfd.export")
.header("Content-Type", "application/json")
.body("{\n \"document\": {},\n \"fields\": [\n \"<string>\"\n ],\n \"name\": \"<string>\",\n \"patches\": [\n \"<string>\"\n ],\n \"result_key\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/cfd.export")
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 \"fields\": [\n \"<string>\"\n ],\n \"name\": \"<string>\",\n \"patches\": [\n \"<string>\"\n ],\n \"result_key\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body