curl --request POST \
--url https://api.eddy.engineer/v1/bim.coil \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"design": {},
"key": "<string>"
}
'import requests
url = "https://api.eddy.engineer/v1/bim.coil"
payload = {
"design": {},
"key": "<string>"
}
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({design: {}, key: '<string>'})
};
fetch('https://api.eddy.engineer/v1/bim.coil', 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.coil",
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([
'design' => [
],
'key' => '<string>'
]),
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.coil"
payload := strings.NewReader("{\n \"design\": {},\n \"key\": \"<string>\"\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.coil")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"design\": {},\n \"key\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/bim.coil")
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 \"design\": {},\n \"key\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"checks": {},
"coil": {},
"defaults": [
"<string>"
],
"findings": [
{}
],
"flows": {},
"gaps": [
{}
],
"key": "<string>",
"loads_key": "<string>",
"notes": [
{}
],
"pressure_from": "<string>",
"pressure_pa": 123,
"psychrometrics": "<string>",
"rooms": [
{}
],
"schema": "<string>",
"states": {},
"supply_temperature": {},
"system": "<string>",
"verdict": "meets"
}An air handler's cooling coil: the outside, room, mixed, off-coil and supply air states, coil sensible, latent and total load, apparatus dew point and bypass factor, condensate, and the supply air checked against the rooms' loads (`ss.mep.coil/1`, HV8)
A BIM worker on the light lane works out the coil of the air handler design.system names for the rooms it serves. Loads: design.loads is MEP20’s load report whole (/v1/bim.loads: each room’s sensible_cooling_w, latent_cooling_w, setpoint and outdoor air; a report of another document than key is the gap COIL_LOADS_OTHER_REVISION, verdict: unevaluable), with design.rooms naming the rows served (none: every cooled row) and any value entered in place of a row’s; or with no report, every room entered (name, sensible_w, latent_w, setpoint_c). Outside air is an input: outdoor_air_l_s for the system (0 for none), or every room’s (rooms[].outdoor_air_l_s, or the report’s rows where the rooms enter Outdoor air per person or Outdoor air per area); with none the request is refused, COIL_OUTDOOR_AIR_MISSING, naming the rooms without: no rate is assumed and none comes from a standard. States, each with dry bulb, wet bulb, dew point, humidity ratio, enthalpy, relative humidity and specific volume, by the load engine’s moist-air relations at one pressure (the design day’s, or pressure_pa, or the standard atmosphere at elevation_m): outside (entered, or the report’s cooling design day: its maximum dry bulb with the wet bulb or dew point entered with it), room (the return air, at the rooms’ setpoints mixed by their supply flows), mixed (by the outside air’s share of the supply, enthalpy and humidity ratio by mass), off_coil, supply (the off-coil air after the fan’s heat, fan_pickup_k or fan_heat_w, draw-through) and apparatus_dew_point. What fixes the answer: four relations tie the supply flow, the off-coil temperature and humidity ratio, the room’s humidity ratio, the apparatus dew point and the bypass factor (the rooms’ sensible loads carried by the supply air; their latent loads absorbed by it, a latent watt being a kilogram of vapour at the room’s temperature; the off-coil state on the line from the mixed state to saturation at the apparatus dew point, a bypass factor of the way from it), so the request gives two of: the supply temperature supply_c (or the rooms’ supply flows, rooms[].supply_l_s or MEP22’s answer whole in design.air, which fix it), the room’s design humidity (room_relative_humidity_percent or room_humidity_ratio, else the report’s cooling_room_rh_percent), the coil’s apparatus_dew_point_c, its bypass_factor (or contact_factor), or the supply_humidity_ratio stated outright. With no supply temperature and no flows it is chosen from the rooms’ sensible heat ratio and the coil: where the room ratio line from the room state meets the coil’s line from the mixed state; supply_temperature.chosen_by says which way it came about, states.room_humidity_from whether the room’s humidity was entered or found from the latent balance, coil.coil_from whether the coil’s two numbers were given or found. Fewer givens are refused COIL_INPUT_MISSING (the message lists every one missing), more COIL_OVER_DETERMINED, except the two that are checks: a supply temperature with flows, and a supply humidity ratio with a room humidity. Coil: total_kw (supply mass flow times the mixed less off-coil enthalpy, less the condensate’s own enthalpy), sensible_kw (at the off-coil air’s specific heat), latent_kw (the rest), apparatus_dew_point_c, bypass_factor, contact_factor, condensate_kg_h and condensate_l_h, and made_of (room sensible and latent, outside air sensible and latent, fan), which add to the air’s enthalpy drop. Checks and typed failures (verdict: fails, each in findings): COIL_SUPPLY_FLOW_SHORT (a room’s supply flow can’t carry its sensible load at that supply temperature; the finding lists each room, its capacity and the flow it needs), COIL_LATENT_NOT_ABSORBED (the off-coil air can’t absorb the room latent load: a stated supply is too wet, or no cooling coil leaves air dry enough at that temperature above the coldest apparatus dew point, coil.min_apparatus_dew_point_c, 0 C unless entered), COIL_OUTDOOR_AIR_EXCEEDS_SUPPLY, COIL_NO_SUPPLY_TEMPERATURE. Notes: COIL_DRY (nothing condenses), ROOM_DRIER_THAN_DESIGN, ROOM_SURPLUS_AIR. rooms gives each room’s flow, sensible capacity and its own humidity. defaults names every value assumed (no fan heat, 1.2 kg/m3 for an entered L/s, the 0 C floor): ours, not a standard’s. Refusals, each 400: COIL_BAD_INPUT, COIL_INPUT_MISSING, COIL_OUTDOOR_AIR_MISSING, COIL_OVER_DETERMINED; an unknown field 422.
curl --request POST \
--url https://api.eddy.engineer/v1/bim.coil \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"design": {},
"key": "<string>"
}
'import requests
url = "https://api.eddy.engineer/v1/bim.coil"
payload = {
"design": {},
"key": "<string>"
}
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({design: {}, key: '<string>'})
};
fetch('https://api.eddy.engineer/v1/bim.coil', 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.coil",
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([
'design' => [
],
'key' => '<string>'
]),
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.coil"
payload := strings.NewReader("{\n \"design\": {},\n \"key\": \"<string>\"\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.coil")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"design\": {},\n \"key\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/bim.coil")
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 \"design\": {},\n \"key\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"checks": {},
"coil": {},
"defaults": [
"<string>"
],
"findings": [
{}
],
"flows": {},
"gaps": [
{}
],
"key": "<string>",
"loads_key": "<string>",
"notes": [
{}
],
"pressure_from": "<string>",
"pressure_pa": 123,
"psychrometrics": "<string>",
"rooms": [
{}
],
"schema": "<string>",
"states": {},
"supply_temperature": {},
"system": "<string>",
"verdict": "meets"
}Body
system (the air handler's name); loads? (ss.mep.loads/1, whole); air? (ss.mep.air/1, whole: its rooms' airflows); rooms? [{name, sensible_w?, latent_w?, setpoint_c?, supply_l_s?, outdoor_air_l_s?}]; outside? {dry_bulb_c, and one of wet_bulb_c | dew_point_c | relative_humidity_percent | humidity_ratio}; design_day? (the report's cooling day by name, where it has several); pressure_pa? | elevation_m?; room_relative_humidity_percent? | room_humidity_ratio?; outdoor_air_l_s?; supply_c?; supply_humidity_ratio?; fan_pickup_k? | fan_heat_w?; coil? {apparatus_dew_point_c?, bypass_factor? | contact_factor?, min_apparatus_dew_point_c?}; air_density_kg_m3? (for entered L/s; 1.2)
Response
OK