curl --request POST \
--url https://api.eddy.engineer/v1/bim.water \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"key": "<string>",
"min_pressure_kpa": 123,
"roughness_mm": 123,
"source": 123,
"supply_pressure_kpa": 123,
"demand_table": "<string>",
"detail": "full",
"max_velocity": 123,
"on": "<string>",
"propose_sizes": true,
"pump_element": 123,
"pumps": [
"<string>"
],
"sizes": [
{}
],
"state": "<string>",
"temperature_c": 123
}
'import requests
url = "https://api.eddy.engineer/v1/bim.water"
payload = {
"key": "<string>",
"min_pressure_kpa": 123,
"roughness_mm": 123,
"source": 123,
"supply_pressure_kpa": 123,
"demand_table": "<string>",
"detail": "full",
"max_velocity": 123,
"on": "<string>",
"propose_sizes": True,
"pump_element": 123,
"pumps": ["<string>"],
"sizes": [{}],
"state": "<string>",
"temperature_c": 123
}
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({
key: '<string>',
min_pressure_kpa: 123,
roughness_mm: 123,
source: 123,
supply_pressure_kpa: 123,
demand_table: '<string>',
detail: 'full',
max_velocity: 123,
on: '<string>',
propose_sizes: true,
pump_element: 123,
pumps: ['<string>'],
sizes: [{}],
state: '<string>',
temperature_c: 123
})
};
fetch('https://api.eddy.engineer/v1/bim.water', 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/bim.water",
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([
'key' => '<string>',
'min_pressure_kpa' => 123,
'roughness_mm' => 123,
'source' => 123,
'supply_pressure_kpa' => 123,
'demand_table' => '<string>',
'detail' => 'full',
'max_velocity' => 123,
'on' => '<string>',
'propose_sizes' => true,
'pump_element' => 123,
'pumps' => [
'<string>'
],
'sizes' => [
[
]
],
'state' => '<string>',
'temperature_c' => 123
]),
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/bim.water"
payload := strings.NewReader("{\n \"key\": \"<string>\",\n \"min_pressure_kpa\": 123,\n \"roughness_mm\": 123,\n \"source\": 123,\n \"supply_pressure_kpa\": 123,\n \"demand_table\": \"<string>\",\n \"detail\": \"full\",\n \"max_velocity\": 123,\n \"on\": \"<string>\",\n \"propose_sizes\": true,\n \"pump_element\": 123,\n \"pumps\": [\n \"<string>\"\n ],\n \"sizes\": [\n {}\n ],\n \"state\": \"<string>\",\n \"temperature_c\": 123\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/bim.water")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"key\": \"<string>\",\n \"min_pressure_kpa\": 123,\n \"roughness_mm\": 123,\n \"source\": 123,\n \"supply_pressure_kpa\": 123,\n \"demand_table\": \"<string>\",\n \"detail\": \"full\",\n \"max_velocity\": 123,\n \"on\": \"<string>\",\n \"propose_sizes\": true,\n \"pump_element\": 123,\n \"pumps\": [\n \"<string>\"\n ],\n \"sizes\": [\n {}\n ],\n \"state\": \"<string>\",\n \"temperature_c\": 123\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/bim.water")
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 \"key\": \"<string>\",\n \"min_pressure_kpa\": 123,\n \"roughness_mm\": 123,\n \"source\": 123,\n \"supply_pressure_kpa\": 123,\n \"demand_table\": \"<string>\",\n \"detail\": \"full\",\n \"max_velocity\": 123,\n \"on\": \"<string>\",\n \"propose_sizes\": true,\n \"pump_element\": 123,\n \"pumps\": [\n \"<string>\"\n ],\n \"sizes\": [\n {}\n ],\n \"state\": \"<string>\",\n \"temperature_c\": 123\n}"
response = http.request(request)
puts response.read_body{
"basis": {},
"commands_for_parameters": [
{}
],
"design_point": {},
"domain": "<string>",
"fixtures": [
{}
],
"flags": [
{}
],
"gaps": [
{}
],
"group": 123,
"issue_count": 123,
"issues": [
{}
],
"issues_by_class": {},
"key": "<string>",
"network": {},
"parameters": [
{}
],
"pipes": [
{}
],
"pump": {},
"schema": "<string>",
"sizing": {},
"sizing_refused": {},
"source": 123,
"verdict": "meets",
"worst": {}
}One cold or hot water system of a document: flows, pressure at every fixture, the worst fixture, proposed sizes as commands, pumps checked against the duty (MEP10)
Read off the system graph (/v1/bim.systems/{key}) by a BIM worker and solved by the network solver (Darcy–Weisbach, Colebrook; water’s properties at its temperature). The system is the group fed by source’s connector of domain, at supply_pressure_kpa gauge. Read verdict and design_point first: not_valid is a starved system (a fixed demand solves to negative pressure) and no fixture of it reads as meeting anything; unevaluable names every gap in gaps (a graph finding, a flow, a bore or a fitting’s loss not entered, a table entry missing); short names the fixtures under their minimum; meets is the only pass. Flows are each fixture’s entered Cold water flow or Hot water flow, else MEP2’s Design flow (all at once, no diversity), or, with demand_table, an adopted value table’s probable flows (fixture:<type> in LU, flow:<LU> in L/s, read straight-line and never past either end; a tree only). A run’s bore is its entered Internal diameter or its type’s row in sizes, never its outside diameter. A two-connector fitting with an entered Loss coefficient is a link of that K; one without is a gap; tees are junctions, listed. propose_sizes (with max_velocity) gives sizing: the changes, the commands that accept them (type where the project lacks the pipe type, modify), and the system as proposed, solved. pump checks each pump (the records pumps names, or the seed’s pumps with a curve) by solving again with it in series at the source. detail: full adds the solved network. Everything rests on entered values; the result is a design aid for a person to review. R9 (W3): where the verdict is short and pumps were checked for the duty (pump), questions holds the typed question WATER_BOOSTER (ss.question/1): add a booster pump at the source (possible where a checked pump meets the duty; it changes what is built) or none. The brief’s answer may ride on the request as booster, which only the verdict reads (a short system with a booster the brief accepted, and a pump meeting it, passes the verdict’s water check).
curl --request POST \
--url https://api.eddy.engineer/v1/bim.water \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"key": "<string>",
"min_pressure_kpa": 123,
"roughness_mm": 123,
"source": 123,
"supply_pressure_kpa": 123,
"demand_table": "<string>",
"detail": "full",
"max_velocity": 123,
"on": "<string>",
"propose_sizes": true,
"pump_element": 123,
"pumps": [
"<string>"
],
"sizes": [
{}
],
"state": "<string>",
"temperature_c": 123
}
'import requests
url = "https://api.eddy.engineer/v1/bim.water"
payload = {
"key": "<string>",
"min_pressure_kpa": 123,
"roughness_mm": 123,
"source": 123,
"supply_pressure_kpa": 123,
"demand_table": "<string>",
"detail": "full",
"max_velocity": 123,
"on": "<string>",
"propose_sizes": True,
"pump_element": 123,
"pumps": ["<string>"],
"sizes": [{}],
"state": "<string>",
"temperature_c": 123
}
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({
key: '<string>',
min_pressure_kpa: 123,
roughness_mm: 123,
source: 123,
supply_pressure_kpa: 123,
demand_table: '<string>',
detail: 'full',
max_velocity: 123,
on: '<string>',
propose_sizes: true,
pump_element: 123,
pumps: ['<string>'],
sizes: [{}],
state: '<string>',
temperature_c: 123
})
};
fetch('https://api.eddy.engineer/v1/bim.water', 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/bim.water",
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([
'key' => '<string>',
'min_pressure_kpa' => 123,
'roughness_mm' => 123,
'source' => 123,
'supply_pressure_kpa' => 123,
'demand_table' => '<string>',
'detail' => 'full',
'max_velocity' => 123,
'on' => '<string>',
'propose_sizes' => true,
'pump_element' => 123,
'pumps' => [
'<string>'
],
'sizes' => [
[
]
],
'state' => '<string>',
'temperature_c' => 123
]),
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/bim.water"
payload := strings.NewReader("{\n \"key\": \"<string>\",\n \"min_pressure_kpa\": 123,\n \"roughness_mm\": 123,\n \"source\": 123,\n \"supply_pressure_kpa\": 123,\n \"demand_table\": \"<string>\",\n \"detail\": \"full\",\n \"max_velocity\": 123,\n \"on\": \"<string>\",\n \"propose_sizes\": true,\n \"pump_element\": 123,\n \"pumps\": [\n \"<string>\"\n ],\n \"sizes\": [\n {}\n ],\n \"state\": \"<string>\",\n \"temperature_c\": 123\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/bim.water")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"key\": \"<string>\",\n \"min_pressure_kpa\": 123,\n \"roughness_mm\": 123,\n \"source\": 123,\n \"supply_pressure_kpa\": 123,\n \"demand_table\": \"<string>\",\n \"detail\": \"full\",\n \"max_velocity\": 123,\n \"on\": \"<string>\",\n \"propose_sizes\": true,\n \"pump_element\": 123,\n \"pumps\": [\n \"<string>\"\n ],\n \"sizes\": [\n {}\n ],\n \"state\": \"<string>\",\n \"temperature_c\": 123\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/bim.water")
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 \"key\": \"<string>\",\n \"min_pressure_kpa\": 123,\n \"roughness_mm\": 123,\n \"source\": 123,\n \"supply_pressure_kpa\": 123,\n \"demand_table\": \"<string>\",\n \"detail\": \"full\",\n \"max_velocity\": 123,\n \"on\": \"<string>\",\n \"propose_sizes\": true,\n \"pump_element\": 123,\n \"pumps\": [\n \"<string>\"\n ],\n \"sizes\": [\n {}\n ],\n \"state\": \"<string>\",\n \"temperature_c\": 123\n}"
response = http.request(request)
puts response.read_body{
"basis": {},
"commands_for_parameters": [
{}
],
"design_point": {},
"domain": "<string>",
"fixtures": [
{}
],
"flags": [
{}
],
"gaps": [
{}
],
"group": 123,
"issue_count": 123,
"issues": [
{}
],
"issues_by_class": {},
"key": "<string>",
"network": {},
"parameters": [
{}
],
"pipes": [
{}
],
"pump": {},
"schema": "<string>",
"sizing": {},
"sizing_refused": {},
"source": 123,
"verdict": "meets",
"worst": {}
}Body
Response
OK
R1 of the rules plan: the answer's findings as ss.issue/1 (at most 500, in the answer's own order), beside its own fields, which are unchanged: {id (stable), domain, code (the domain's own), kind, outcome, cause {class: model | method | brief | undetermined, also?, why, by? (the evidence a split reads), read? (whether it was read), census}, subjects, at?, measure?, threshold?, unit?, margin?, message, ladder? (R3: {ladder, tried [{rung, params {key: {value, source: ours | brief}}, result: cleared | improved | no_change | refused, why}], next?, stopped: cleared | question | exhausted | budget}), question? (the id of the typed question it raised)}.