Skip to content

REST API & MCP integrations

Calculator REST API: requests, results and diagnostics

Current contracts for six finned-coil engines, eight calculation routes and two lookup/health routes. Complete synthetic examples evaluated locally, without HTTP or customer data.

Reviewed

1. Access and route inventory

Lite: US$9/month. Six thermal coil calculators, basic geometry and 10 calculations/day total (UTC). Reports and advanced engineering require higher plans. Free accounts have no engineering access. Lite costs US$9/month and includes the six thermal finned-tube calculators and basic geometry, with 10 calculations per day total (UTC). No reports, project saving, 2D/3D, exports, API, MCP, psychrometrics or builders. Lite accounts have no engineering access. Use the deployed ExCoil origin with the exact paths below. Send Authorization: Bearer <REST_API_KEY> and Content-Type: application/json for POST requests. REST keys start with exk_; keep them server-side and out of logs, repositories and browser bundles. Access requires an Enterprise or Manufacturer subscription with active or trialing status; Lite/Professional calculation access in the app does not grant REST access.

Calculations and /refrigerants require calc:read when the key has a permission list. A null permission list is unrestricted, an empty list grants none, and * satisfies the check. /health requires authentication but has no calc:read check. All these requests consume the key’s rate allowance. This API does not expose Shell & Tube, psychrometrics, project writes, PDF/CAD or manufacturing exports. MCP uses a separate token and /api/mcp; MCP is Manufacturer-only.

MethodPathJSON root
POST/api/v1/calculate/dx-evaporatorair, coil, ref, calib
POST/api/v1/calculate/dx-evaporator/balancedinputs, options?
POST/api/v1/calculate/dx-condenserair, coil, ref, calib
POST/api/v1/calculate/dx-condenser/balancedair, coil, ref, calib
POST/api/v1/calculate/chilled-waterair, water, coil, hydraulic, calib
POST/api/v1/calculate/hot-waterair, water, coil, hydraulic, calib
POST/api/v1/calculate/steam-coilair, steam, coil, hydraulic, calib
POST/api/v1/calculate/dry-coolerair, fluid, coil, hydraulic, calib
GET/api/v1/refrigerants—
GET/api/v1/health—

2. Build SI inputs, not UI form objects

The complete JSON examples below show request and response separately: send only request, not the surrounding example or response. Numeric values are synthetic demonstration points, not prescribed designs. Every example passed the current input schema and its pure engine in memory. The REST router itself does not call the Zod schemas used by tRPC/MCP: it forwards the body to the engine, with only shallow object/refrigerant checks. Do not assume schema-shaped errors, automatic unit conversion or default filling.

Except for dry cooler, air uses Vdot_m3_s, T_in_C, RH_in and P_Pa: m³/s, °C dry bulb, relative humidity as 0–1 and local absolute atmospheric pressure in Pa. Condenser RH_in is optional (engine default 0.5). Geometry is coil, not geometry: height_m, width_m, Pt_m, Pl_m, Do_m, wall_m and fin_m are metres; rows is a positive integer; fpi remains fins per inch; tube_k/fin_k are W/(m·K); freeAreaRatio is a fraction. Provide positive dimensions and conductivities, Do_m > 2·wall_m and pitches larger than Do_m. DX tubesPerRow explicitly fixes active height at tubesPerRow × Pt_m. For water/steam/dry cooler hydraulic.tubeCountOverride is tubes per row, not total tubes.

Use finType plain, wavy, louver or slit, except condenser accepts only plain/wavy/louver. Water/steam/dry cooler coil also carries tubeMat and finMat identifiers; conductivity is supplied explicitly. Include calib with module-specific fields; do not move them into options. segments is optional numerical resolution, not the number of physical tubes. The schema’s usual freeAreaRatio range is 0.1–0.9; condenser schema allows 0–1 but its engine requires >0 and ≤1. DX f_maldistribution must be >0 and ≤1. Validate physical relationships yourself; schema acceptance alone does not prove feasibility.

Optional circuitryPD goes under ref for DX and hydraulic for other modules. Required arrays below must describe the same real circuits in the same order; counts are integers, lengths metres, loss coefficients dimensionless, flow fractions 0–1. Hydraulic lines require positive inner diameter and nonnegative length, roughness and localK. Optional system IDs and accessory paths allow pressure-drop diagnostics; they do not make the thermal solver a fully resolved per-system circuit simulation. Without explicit paths, accessory losses are approximations. Do not fabricate this structure from arbitrary counts.

text

// Optional: ref.circuitryPD (DX) or hydraulic.circuitryPD (water/steam/dry cooler)
{
  tubesPerCircuit: number[], returnBendsPerCircuit: number[],
  crossoversPerCircuit: number[], circuitLengths_m: number[],
  maxTubesPerCircuit: number, maxReturnBends: number, isUnbalanced: boolean,
  systemCount?: number, circuitSystemIds?: string[], feederLengths_m?: number[],
  localKPerCircuit?: number[], lengthImbalance_pct?: number,
  hydraulicPaths?: Array<{
    circuitId: number, systemId: string, systemFlowFraction: number,
    circuitFlowFraction: number, tubeLength_m: number, connectorLength_m: number,
    inletCommon: Line, inletBranch: Line, outletBranch: Line, outletCommon: Line
  }>
}
// Line = { length_m: number, innerDiameter_m: number, roughness_m: number, localK: number }

3. DX evaporator: fixed-flow rating

POST /api/v1/calculate/dx-evaporator takes the bare input object. ref contains fluid, Tevap_C, superheat_K, circuits, mode and, for RATING, positive mdot_ref_kg_s. x_in is inlet quality (default 0.2); the engine requires 0 ≤ x_in < 1, even though the shared schema allows 1. Tevap_C is saturation temperature at the suction connection; pressure coupling can make tube-inlet saturation warmer. fluid must be an exact supported table key.

RATING keeps the supplied mass flow: outlet quality and achievedSuperheat_K are results, while superheat_K is a target. SIZING requires Q_target_W and computes mass flow from target duty and the design enthalpy rise, then rates the same geometry; it does not automatically grow the coil. Optional fouling.R_ext/R_int are nonnegative m²·K/W and are read by the engine although absent from this shared evaporator Zod schema. Read outlet, perf, zones, htc, geometry and flags; inspect targetMet, hydraulicFeasible, pressureDropExcessive and notes, not just energy balance. Frost and near-dryout physics are not resolved.

json

{
  "request": {
    "air": {
      "Vdot_m3_s": 1.5,
      "T_in_C": 27,
      "RH_in": 0.5,
      "P_Pa": 101325
    },
    "coil": {
      "height_m": 0.508,
      "tubesPerRow": 20,
      "width_m": 1,
      "rows": 4,
      "fpi": 12,
      "Pt_m": 0.0254,
      "Pl_m": 0.022,
      "Do_m": 0.00952,
      "wall_m": 0.0003,
      "fin_m": 0.0001,
      "tube_k": 386,
      "fin_k": 200,
      "freeAreaRatio": 0.6,
      "finType": "plain"
    },
    "ref": {
      "fluid": "R410A",
      "Tevap_C": 5,
      "superheat_K": 5,
      "circuits": 10,
      "mode": "RATING",
      "mdot_ref_kg_s": 0.04,
      "x_in": 0.2
    },
    "calib": {
      "C_air": 1,
      "C_tp": 1,
      "C_sh": 1,
      "f_maldistribution": 1
    },
    "segments": 40
  },
  "response": {
    "success": true,
    "data": {
      "outlet": {
        "T_out_C": 23.49883696449892,
        "RH_out": 0.5951224553222765,
        "W_out": 0.01076357974635124,
        "h_out": 51029.9957183522,
        "Tdp_out_C": 15.165690704059124
      },
      "perf": {
        "Q_total_W": 7909.303263873674,
        "Q_sens_W": 6229.595529054708,
        "Q_lat_W": 1679.7077348189664,
        "SHR": 0.7876288620147928,
        "mcond_kg_s": 0.0006600788155553462,
        "v_face_m_s": 2.952755905511811,
        "dP_air_Pa": 83.01172194416893,
        "dP_ref_Pa": 1516.4350589804817,
        "Q_ref_W": 7909.303263873688,
        "balanceError_pct": 1.4948764421579912e-13,
        "mdot_ref_kg_s": 0.04,
        "x_out": 1,
        "achievedSuperheat_K": 21.745191335740323,
        "targetSuperheat_K": 5,
        "refrigerantOutlet": {
          "T_C": 26.745191335740323,
          "h_in_J_kg": 250687.86399999997,
          "h_out_J_kg": 448420.44559684215,
          "phase": "superheated"
        },
        "refrigerantPressure": {
          "P_in_Pa": 937723.0350589807,
          "P_out_Pa": 936206.6000000002,
          "T_sat_in_C": 5.0521987063866804,
          "T_sat_out_C": 5,
          "satDrop_K": 0.05219870638668045,
          "x_in_local": 0.19968718691574538,
          "dP_twoPhase_Pa": 520.582915294799,
          "dP_vapor_Pa": 995.8955933460854,
          "dP_accessoriesInlet_Pa": 0,
          "dP_accessoriesOutlet_Pa": 0,
          "massFlux_kg_m2s": 64.00890550459303,
          "hydraulicFeasible": true
        }
      },
      "geometry": {
        "A_face_m2": 0.508,
        "A_ext_m2": 39.10246205044688,
        "A_int_m2": 2.2418405176016765,
        "n_tubes": 80,
        "n_tubes_H": 20,
        "L_circuit_m": 8,
        "Di_m": 0.00892
      },
      "htc": {
        "h_air_avg": 66.80366999738932,
        "h_ref_avg": 507.4101139521869,
        "U_overall": 15.758299149814324,
        "eta_fin": 0.7703542918753953,
        "eta_surface": 0.7837297035150003
      },
      "flags": {
        "wetCoil": true,
        "superheated": true,
        "converged": true,
        "oversized": true,
        "targetMet": true,
        "hydraulicFeasible": true,
        "pressureDropExcessive": false,
        "notes": [
          "Refrigerant ΔP 1.5 kPa (G = 64 kg/m²s per circuit): saturation 5.05 °C at the tube inlets → 5.00 °C at the suction connection (drop 0.05 K, coupled into capacity).",
          "Warning: Liquid velocity (0.06 m/s) is too low (<0.3 m/s). Risk of poor oil return and flow stratification.",
          "Warning: Vapor velocity (1.78 m/s) is too low (<3 m/s). Risk of poor oil return.",
          "Refrigerant-limited: achieved superheat 21.7 K exceeds target by more than 2 K (66 % of area superheating vapour). A TXV would increase mass flow and capacity.",
          "Wet surface on 34 % of the coil area: SHR = 0.788, condensate 2.38 kg/h",
          "Model: mean-circuit crossflow moving boundary with pressure-coupled saturation (MSH friction, Domanski–Hermes bends, homogeneous momentum); Chen two-phase HTC does not model dryout near x → 1."
        ]
      },
      "zones": {
        "tp_fraction": 0.34306774086665626,
        "sh_fraction": 0.6569322591333437,
        "wet_fraction": 0.34306774086665626,
        "Q_tp_W": 6885.446862985299,
        "Q_sh_W": 1023.8564008883747
      },
      "timestamp": "2026-11-02T15:44:41.927Z",
      "engineVersion": "6.1.0"
    }
  }
}

4. DX condenser: heat rejection, not cooling load

POST /api/v1/calculate/dx-condenser accepts ref.fluid, Tcond_C, Tin_gas_C, subcool_K, circuits, mode and RATING mdot_ref_kg_s. Tin_gas_C is absolute inlet gas temperature in °C, not discharge superheat. Require Tin_gas_C ≥ Tcond_C and subcool_K ≥ 0. Tcond_C must be within the selected table’s subcritical range. In SIZING, Q_target_W is condenser heat rejection, including upstream compressor heat; mass flow follows the target enthalpy drop, not a search for a smaller artificial load.

calib has C_air, C_dsh, C_cond, C_sc and f_maldistribution; optional fouling has R_ext and R_int in m²·K/W. Results use airOut (not outlet), perf.Q_dsh_W/Q_cond_W/Q_sc_W, achievedSubcool_K, status and refrigerantOutlet.phase. zones fractions describe circuit area/length, not heat fractions; heat_fractions is separate. Check capacityShortfall_pct, targetMet and pressureDropExcessive. Thermal rating holds Tcond constant: estimated ΔP does not feed back into saturation along the coil; temperature glide and detailed row/circuit interactions are not resolved.

json

{
  "request": {
    "air": {
      "Vdot_m3_s": 1.5,
      "T_in_C": 30,
      "RH_in": 0.5,
      "P_Pa": 101325
    },
    "coil": {
      "height_m": 0.508,
      "tubesPerRow": 20,
      "width_m": 1,
      "rows": 4,
      "fpi": 12,
      "Pt_m": 0.0254,
      "Pl_m": 0.022,
      "Do_m": 0.00952,
      "wall_m": 0.0003,
      "fin_m": 0.0001,
      "tube_k": 386,
      "fin_k": 200,
      "freeAreaRatio": 0.6,
      "finType": "plain"
    },
    "ref": {
      "fluid": "R410A",
      "Tcond_C": 45,
      "subcool_K": 5,
      "Tin_gas_C": 75,
      "circuits": 10,
      "mode": "RATING",
      "mdot_ref_kg_s": 0.04
    },
    "calib": {
      "C_air": 1,
      "C_dsh": 1,
      "C_cond": 1,
      "C_sc": 1,
      "f_maldistribution": 1
    },
    "fouling": {
      "R_ext": 0,
      "R_int": 0
    },
    "segments": 40
  },
  "response": {
    "success": true,
    "data": {
      "engineVersion": "dx-cond-6.1.0",
      "airOut": {
        "T_out_C": 34.905833102639996,
        "RH_out": 0.37920635932683405,
        "W_out": 0.01331020383863019,
        "h_out_J_kgda": 69268.25088365117
      },
      "perf": {
        "Q_total_W": 8646.863272072569,
        "Q_dsh_W": 1798.625303999998,
        "Q_cond_W": 5929.402399999996,
        "Q_sc_W": 918.8355680725742,
        "v_face_m_s": 2.952755905511811,
        "dP_air_Pa": 82.1050884443191,
        "dP_ref_Pa": 265.3632161326799,
        "mdot_ref_kg_s": 0.04,
        "achievedSubcool_K": 12.142056810891162,
        "status": "OK",
        "satDrop_K": 0.004153328462578543,
        "propertyModel": "coolprop_grid",
        "Q_ref_W": 8646.863272072569,
        "balanceError_pct": 1.8932766850595476e-13,
        "requiredHeatRejection_W": 8124.959035999998,
        "capacityShortfall_pct": 0,
        "refrigerantOutlet": {
          "T_C": 32.85794318910884,
          "h_in_J_kg": 469048.89259999996,
          "h_out_J_kg": 252877.31079818573,
          "quality": null,
          "phase": "subcooled"
        },
        "pressureDropBreakdown": {
          "vapor_Pa": 103.73388610449132,
          "liquid_Pa": 24.3684210978554,
          "condensationFriction_Pa": 158.1821536620547,
          "condensationBends_Pa": 8.76982049279011,
          "acceleration_Pa": -29.691065224511664,
          "accessories_Pa": 0
        }
      },
      "zones": {
        "dsh_fraction": 0.18317599713921148,
        "cond_fraction": 0.5251466837984806,
        "sc_fraction": 0.29167731906230787,
        "heat_fractions": {
          "dsh": 0.20800899093769123,
          "cond": 0.6857287103348375,
          "sc": 0.10626229872747119
        }
      },
      "htc": {
        "h_air_W_m2K": 66.77541103267734,
        "h_ref_avg_W_m2K": 600.8301332918751,
        "U_avg_W_m2K": 18.87836136527455,
        "U_fouled_W_m2K": 18.87836136527455,
        "eta_fin": 0.7704249008937955,
        "eta_surface": 0.7837962000041732,
        "h_dsh_W_m2K": 237.6991690054887,
        "h_cond_W_m2K": 904.9932282548654,
        "h_sc_W_m2K": 281.2531278597104
      },
      "geometry": {
        "A_face_m2": 0.508,
        "A_ext_m2": 39.10246205044688,
        "A_int_m2": 2.2418405176016765,
        "totalTubes": 80,
        "tubesH": 20,
        "L_circuit_m": 8,
        "Di_m": 0.00892
      },
      "flags": {
        "converged": true,
        "oversized": false,
        "targetMet": true,
        "pressureDropExcessive": false,
        "notes": [
          "Mean-circuit pure-crossflow moving-boundary model: uniform air and refrigerant flow; not a row-by-row circuit simulation.",
          "Single-phase enthalpies from the CoolProp superheated/subcooled property grid (piecewise cp = Δh/ΔT); temperature glide and saturation-pressure variation along the circuit are not resolved.",
          "Target duty is condenser heat rejection, not evaporator cooling capacity; compressor power must be included upstream.",
          "Multiple depth rows use a mean-crossflow approximation; row mixing and circuit/airflow interaction require independent validation.",
          "Refrigerant ΔP uses mean-circuit area lengths, MSH friction, homogeneous acceleration and distributed bend estimates; gravity and pressure/thermal coupling are not resolved.",
          "Warning: Liquid velocity (0.07 m/s) is too low (<0.3 m/s). Risk of poor oil return and flow stratification.",
          "Warning: Vapor velocity (0.53 m/s) is too low (<3 m/s). Risk of poor oil return."
        ]
      }
    }
  }
}

5. Chilled water: provide mass flow

POST /api/v1/calculate/chilled-water requires water.flowType (mass or volumetric), mdot_kg_s, T_in_C and glycol_pct. Vdot_m3_s is optional metadata in this contract: the engine uses mdot_kg_s directly and does not convert a volumetric-only request. glycol_pct is ethylene-glycol mass percentage, 0–60; zero means water. Chilled water must enter colder than the air. There is no water.T_out_C target or mode field for this route.

hydraulic contains circuits and passes, with optional tubeCountOverride/circuitryPD. calib contains C_air, C_w, f_fouling, f_maldistribution and approach_K. approach_K is retained for compatibility but ignored; use 0 rather than treating it as an outlet constraint. passes is not multiplied into the circuit length again. The engine clamps lumped fouling and maldistribution to 0.5–1. Results include airOutlet, waterOutlet, sensible/latent duty, condensate kg/s, SHR, wetAreaFraction and rowProfile. dP_water_kPa is kPa; dP_air_Pa is Pa. Review regime, notes and convergence, including wet-air and velocity warnings.

json

{
  "request": {
    "air": {
      "Vdot_m3_s": 1.5,
      "T_in_C": 27,
      "RH_in": 0.5,
      "P_Pa": 101325
    },
    "water": {
      "flowType": "mass",
      "mdot_kg_s": 0.8,
      "T_in_C": 7,
      "glycol_pct": 0
    },
    "coil": {
      "height_m": 0.508,
      "width_m": 1,
      "rows": 4,
      "fpi": 12,
      "Pt_m": 0.0254,
      "Pl_m": 0.022,
      "Do_m": 0.00952,
      "wall_m": 0.0003,
      "fin_m": 0.0001,
      "tube_k": 386,
      "fin_k": 200,
      "freeAreaRatio": 0.6,
      "finType": "plain",
      "tubeMat": "Cu",
      "finMat": "Al"
    },
    "hydraulic": {
      "circuits": 10,
      "passes": 1,
      "tubeCountOverride": 20
    },
    "calib": {
      "C_air": 1,
      "C_w": 1,
      "f_fouling": 1,
      "f_maldistribution": 1,
      "approach_K": 0
    },
    "segments": 40
  },
  "response": {
    "success": true,
    "data": {
      "airOutlet": {
        "T_out_C": 17.59280443908688,
        "RH_out": 0.7765505714650607,
        "W_out": 0.009740516735050291,
        "h_out": 42378.12881134521,
        "Tdp_out_C": 13.647149565122389
      },
      "waterOutlet": {
        "T_out_C": 13.83298923251135,
        "dT_K": 6.83298923251135
      },
      "perf": {
        "Q_total_W": 22902.7552948312,
        "Q_sens_W": 16738.15895260657,
        "Q_lat_W": 6164.596342224632,
        "SHR": 0.7308360385959376,
        "mcond_kg_s": 0.0024330194247277745,
        "v_face_m_s": 2.952755905511811,
        "v_water_m_s": 1.2806100545209298,
        "dP_air_Pa": 102.16101340852097,
        "dP_water_kPa": 31.131087580896573,
        "balanceError_pct": 1.588445914152848e-14
      },
      "geometry": {
        "A_face_m2": 0.508,
        "A_ext_m2": 39.10246205044688,
        "A_int_m2": 2.2418405176016765,
        "n_tubes": 80,
        "n_tubes_H": 20,
        "L_circuit_m": 8,
        "Di_m": 0.00892
      },
      "htc": {
        "h_air_avg": 66.82202962012009,
        "h_water_avg": 5727.92773098421,
        "U_overall": 45.13852142146351,
        "eta_fin": 0.7703084264602427,
        "eta_surface": 0.7836865094705112
      },
      "flags": {
        "wetCoil": true,
        "converged": true,
        "oversized": false,
        "regime": "Turbulent",
        "notes": [
          "Air ΔP includes a +30 % condensate allowance on the wet area (75 % wet); dry value 83 Pa.",
          "Wet coil: 75 % of the area condensing, SHR = 0.731, latent 6.16 kW",
          "Condensate rate: 8.76 kg/h"
        ],
        "wetAreaFraction": 0.75,
        "topology": "counter-cross-flow",
        "rowProfile": [
          {
            "row": 1,
            "Q_W": 5499.31813897424,
            "T_air_out_C": 23.90926813806179,
            "W_air_out": 0.011144473622459834,
            "T_w_mean_C": 13.026969682536295,
            "wetFraction": 0
          },
          {
            "row": 2,
            "Q_W": 5494.681101553189,
            "T_air_out_C": 21.71020036768415,
            "W_air_out": 0.010785290417758279,
            "T_w_mean_C": 11.3995916157579,
            "wetFraction": 1
          },
          {
            "row": 3,
            "Q_W": 5820.603392148445,
            "T_air_out_C": 19.617081166279927,
            "W_air_out": 0.010308018617014768,
            "T_w_mean_C": 9.711871818476336,
            "wetFraction": 1
          },
          {
            "row": 4,
            "Q_W": 6088.1526621553285,
            "T_air_out_C": 17.59280443908688,
            "W_air_out": 0.009740516735050291,
            "T_w_mean_C": 7.936579335221592,
            "wetFraction": 1
          }
        ]
      },
      "timestamp": "2026-11-02T15:44:41.973Z",
      "engineVersion": "6.0.0"
    }
  }
}

6. Hot water: sensible heating

POST /api/v1/calculate/hot-water uses the same water, coil, hydraulic and calib field names as chilled water, but water.T_in_C must be greater than air.T_in_C. Always provide positive mdot_kg_s even when flowType is volumetric. glycol_pct describes ethylene glycol by mass; this route has no fluidType selector for propylene glycol.

The engine rates the supplied geometry and flows; it does not target water outlet temperature or automatically size the coil. It ignores approach_K and does not double-count passes, just like chilled water. Heating keeps air humidity ratio W_out unchanged while RH changes with temperature. Results have airOutlet, waterOutlet, perf.Q_total_W, dP_water_kPa and row-by-row diagnostics; there are no common sensibleCapacity_kW or coilCode fields. Inspect regime, velocity warnings and flags.converged before selection.

json

{
  "request": {
    "air": {
      "Vdot_m3_s": 1.5,
      "T_in_C": 15,
      "RH_in": 0.5,
      "P_Pa": 101325
    },
    "water": {
      "flowType": "mass",
      "mdot_kg_s": 0.8,
      "T_in_C": 70,
      "glycol_pct": 0
    },
    "coil": {
      "height_m": 0.508,
      "width_m": 1,
      "rows": 4,
      "fpi": 12,
      "Pt_m": 0.0254,
      "Pl_m": 0.022,
      "Do_m": 0.00952,
      "wall_m": 0.0003,
      "fin_m": 0.0001,
      "tube_k": 386,
      "fin_k": 200,
      "freeAreaRatio": 0.6,
      "finType": "plain",
      "tubeMat": "Cu",
      "finMat": "Al"
    },
    "hydraulic": {
      "circuits": 10,
      "passes": 1,
      "tubeCountOverride": 20
    },
    "calib": {
      "C_air": 1,
      "C_w": 1,
      "f_fouling": 1,
      "f_maldistribution": 1,
      "approach_K": 0
    },
    "segments": 40
  },
  "response": {
    "success": true,
    "data": {
      "airOutlet": {
        "T_out_C": 45.761722198035464,
        "RH_out": 0.08548275287573397,
        "W_out": 0.0052785443390815584,
        "h_out": 59687.224743425075
      },
      "waterOutlet": {
        "T_out_C": 52.970971133489016,
        "dT_K": 17.029028866510984
      },
      "perf": {
        "Q_total_W": 56935.16608498108,
        "v_face_m_s": 2.952755905511811,
        "v_water_m_s": 1.3104547892703775,
        "dP_air_Pa": 82.60160250830555,
        "dP_water_kPa": 26.25240208261644,
        "balanceError_pct": 2.5558747306799374e-14
      },
      "geometry": {
        "A_face_m2": 0.508,
        "A_ext_m2": 39.10246205044688,
        "A_int_m2": 2.2418405176016765,
        "n_tubes": 80,
        "n_tubes_H": 20,
        "L_circuit_m": 8,
        "Di_m": 0.00892
      },
      "htc": {
        "h_air_avg": 66.7732116534083,
        "h_water_avg": 9792.613943179225,
        "U_overall": 47.844060775088444,
        "eta_fin": 0.7704303970347292,
        "eta_surface": 0.7838013760296212
      },
      "flags": {
        "converged": true,
        "oversized": false,
        "regime": "Turbulent",
        "notes": [],
        "topology": "counter-cross-flow",
        "rowProfile": [
          {
            "row": 1,
            "Q_W": 16668.64454630135,
            "T_air_out_C": 24.00596675498907,
            "T_w_mean_C": 55.41380080380971
          },
          {
            "row": 2,
            "Q_W": 14933.338963764221,
            "T_air_out_C": 32.07435851144329,
            "T_w_mean_C": 60.1476061140732
          },
          {
            "row": 3,
            "Q_W": 13369.768306539849,
            "T_air_out_C": 39.297962599714644,
            "T_w_mean_C": 64.38509129379582
          },
          {
            "row": 4,
            "Q_W": 11963.414268375656,
            "T_air_out_C": 45.761722198035464,
            "T_w_mean_C": 68.17579603667396
          }
        ]
      },
      "timestamp": "2026-11-02T15:44:41.983Z",
      "engineVersion": "6.0.0"
    }
  }
}

7. Steam: gauge pressure and drainage limits

POST /api/v1/calculate/steam-coil uses steam.P_steam_kPa in kPa gauge, referred to air.P_Pa. The pressure table requires absolute inlet pressure >20 and ≤2000 kPa, and saturation temperature must exceed entering air by more than 1 °C. steam.controlType is modulating or on_off; it is not a dynamic control simulation. Supply mode RATING or SIZING explicitly; the REST route does not apply the schema’s default. subcooling_K is optional (engine default 5 K). There is no quality input: dry saturated steam is assumed.

calib contains C_air, C_steam, f_fouling and f_noncondensables. SIZING requires positive steam.Q_target_W, tests rows 1–4 and returns the smallest feasible count meeting duty; otherwise it returns the four-row result with targetMet false. Inspect selectedRows, pressureDropLimited, notes, steamOutlet and dP_steam_kPa. steamTrapCapacity_kg_h and dP_steamAssemblies_kPa are preliminary guidance, not a drainage or trap certification. Condensate subcooling area is not modelled separately; gravity drainage, water hammer, available trap differential and mechanical pressure rating need independent engineering checks.

json

{
  "request": {
    "air": {
      "Vdot_m3_s": 1.5,
      "T_in_C": 15,
      "RH_in": 0.5,
      "P_Pa": 101325
    },
    "steam": {
      "P_steam_kPa": 100,
      "controlType": "modulating",
      "subcooling_K": 5,
      "mode": "RATING"
    },
    "coil": {
      "height_m": 0.508,
      "width_m": 1,
      "rows": 1,
      "fpi": 8,
      "Pt_m": 0.0254,
      "Pl_m": 0.022,
      "Do_m": 0.01588,
      "wall_m": 0.0008,
      "fin_m": 0.0001,
      "tube_k": 386,
      "fin_k": 200,
      "freeAreaRatio": 0.65,
      "finType": "plain",
      "tubeMat": "Cu",
      "finMat": "Al"
    },
    "hydraulic": {
      "circuits": 20,
      "passes": 1,
      "tubeCountOverride": 20
    },
    "calib": {
      "C_air": 1,
      "C_steam": 1,
      "f_fouling": 1,
      "f_noncondensables": 1
    },
    "segments": 40
  },
  "response": {
    "success": true,
    "data": {
      "airOutlet": {
        "T_out_C": 34.079225932632134,
        "RH_out": 0.15946330926782845,
        "W_out": 0.0052785443390815584,
        "h_out": 47819.933671807084
      },
      "steamOutlet": {
        "T_sat_C": 120.4008265,
        "T_condensate_C": 115.40022902366081,
        "mdot_steam_kg_s": 0.015890787995762996,
        "mdot_steam_kg_h": 57.206836784746784
      },
      "perf": {
        "Q_total_W": 35312.68146348002,
        "v_face_m_s": 2.952755905511811,
        "dP_air_Pa": 79.84088218559907,
        "dP_steamAssemblies_kPa": 0,
        "steamTrapCapacity_kg_h": 143.01709196186695,
        "dP_steam_kPa": 0.004148565054761704,
        "v_steam_in_m_s": 4.3669848655833485,
        "satTempDrop_K": 0.0005974763391805027,
        "balanceError_pct": 2.0604375857744306e-14,
        "effectiveness": 0.18101641744854888,
        "NTU": 0.19969124105470984,
        "UA_W_K": 369.59744652696935
      },
      "geometry": {
        "A_face_m2": 0.508,
        "A_ext_m2": 5.494324834912423,
        "A_int_m2": 0.8972388618652448,
        "n_tubes": 20,
        "n_tubes_H": 20,
        "L_circuit_m": 1,
        "Di_m": 0.014279999999999998
      },
      "htc": {
        "h_air_avg": 69.05378275896463,
        "h_steam_avg": 16452.208245445134,
        "U_overall": 67.26894707397848,
        "eta_fin": 0.9040208158032803,
        "eta_surface": 0.9208501857263931
      },
      "flags": {
        "converged": true,
        "oversized": false,
        "notes": [
          "In-tube condensation: max(Chato gravity-driven, Shah shear-driven) — governing: Chato (stratified); inlet vapour Re = 5474.",
          "Steam ΔP in governing circuit 0.00 kPa → T_sat drop 0.00 K; capacity uses T_sat at the mean circuit pressure (120.4 °C).",
          "Condensate hydrostatic head across the coil: 4.7 kPa (0 return bends per circuit). Ensure gravity drainage and trap differential.",
          "Steam use includes 5.0 K condensate subcooling (h_fg + cp·ΔT_sub); the subcooling area is not modelled separately."
        ],
        "pressureDropLimited": false,
        "condensationModel": "Chato (stratified)",
        "rowProfile": [
          {
            "row": 1,
            "Q_W": 35312.68146348002,
            "T_air_out_C": 34.079225932632134,
            "h_steam_W_m2K": 16452.208245445134
          }
        ]
      },
      "timestamp": "2026-11-02T15:44:41.989Z",
      "engineVersion": "5.0.0"
    }
  }
}

8. Dry cooler: the REST route is single-coil rating

POST /api/v1/calculate/dry-cooler uses a different air object: T_db_C, RH, altitude_m and either Vdot_m3_s or v_face_m_s. Positive v_face_m_s takes precedence if both are supplied. fluid uses fluidType water/eg/pg, glycolPct (mass %, 0–60), T_in_C and positive mdot_kg_s or Vdot_m3_s; mass flow takes precedence. Fluid inlet must be warmer than entering air. calib uses C_air, C_fluid, f_fouling_air, f_fouling_fluid, optional R_fouling_air_m2KW/R_fouling_fluid_m2KW (m²·K/W), f_maldistribution and approach_K; approach_K is ignored.

This REST handler calls solveDryCooler only. Although shared types mention fluid.T_out_C, vShape and vAngle_deg, these do not activate target-temperature sizing or the V-shape solver through this endpoint. No /dry-cooler/balanced route exists here. The result is single-coil rating with airOutlet, fluidOutlet, Q_total_W, LMTD_K, F_correction, effectiveness, NTU and freezing diagnostics. Q_lat_W is zero and wetCoil false in this heat-rejection model; it is not an adiabatic spray/evaporative cooler. Review nearFreezing, freezingMargin_K, regime, convergence and notes.

json

{
  "request": {
    "air": {
      "T_db_C": 30,
      "RH": 0.5,
      "altitude_m": 0,
      "Vdot_m3_s": 1.5
    },
    "fluid": {
      "fluidType": "eg",
      "glycolPct": 30,
      "T_in_C": 45,
      "mdot_kg_s": 0.8
    },
    "coil": {
      "height_m": 0.508,
      "width_m": 1,
      "rows": 4,
      "fpi": 10,
      "Pt_m": 0.0254,
      "Pl_m": 0.022,
      "Do_m": 0.01588,
      "wall_m": 0.0005,
      "fin_m": 0.0002,
      "tube_k": 386,
      "fin_k": 200,
      "freeAreaRatio": 0.55,
      "finType": "plain",
      "tubeMat": "Cu",
      "finMat": "Al"
    },
    "hydraulic": {
      "circuits": 10,
      "passes": 1,
      "tubeCountOverride": 20
    },
    "calib": {
      "C_air": 1,
      "C_fluid": 1,
      "f_fouling_air": 1,
      "f_fouling_fluid": 1,
      "R_fouling_air_m2KW": 0,
      "R_fouling_fluid_m2KW": 0,
      "f_maldistribution": 1,
      "approach_K": 0
    },
    "segments": 40
  },
  "response": {
    "success": true,
    "data": {
      "airOutlet": {
        "T_out_C": 37.963588732151216,
        "RH_out": 0.32077369527978405,
        "W_out": 0.01331020383863019,
        "h_out": 72420.05383927401
      },
      "fluidOutlet": {
        "T_out_C": 40.1532216213745,
        "dT_K": 4.846778378625501
      },
      "perf": {
        "Q_total_W": 14036.364768477986,
        "Q_sens_W": 14036.364768477986,
        "Q_lat_W": 0,
        "v_face_m_s": 2.952755905511811,
        "v_fluid_m_s": 0.44169081528152904,
        "dP_air_Pa": 220.66091438182707,
        "dP_fluid_kPa": 3.170390159951273,
        "balanceError_pct": 2.2030504600253869e-13,
        "LMTD_K": 8.499786553833324,
        "F_correction": 0.9964684620436388,
        "effectiveness": 0.530905915476746,
        "NTU": 0.9402368011687094
      },
      "geometry": {
        "A_face_m2": 0.508,
        "A_ext_m2": 26.353776660889263,
        "A_int_m2": 3.7397518948332893,
        "n_tubes": 80,
        "n_tubes_H": 20,
        "L_circuit_m": 8,
        "Di_m": 0.014879999999999997
      },
      "htc": {
        "h_air_avg": 158.41035024054196,
        "h_fluid_avg": 784.605812708763,
        "U_overall": 62.88400693514512,
        "UA_W_K": 1657.2310743106261,
        "eta_fin": 0.8992749036562225,
        "eta_surface": 0.9133028338448336
      },
      "flags": {
        "wetCoil": false,
        "wetFraction": 0,
        "converged": true,
        "oversized": false,
        "regime": "Transitional",
        "nearFreezing": false,
        "freezingPoint_C": -13.544999999999998,
        "freezingMargin_K": 53.6982216213745,
        "notes": [
          "Warning: Glycol mixture velocity (0.44 m/s) below 0.5 m/s. Glycol mixtures need higher velocity for adequate heat transfer.",
          "Notice: Fluid flow is transitional (Re = 2798). Results may have higher uncertainty.",
          "Dry cooler: the fin surface is warmer than the air, so no condensation can occur (latent capacity = 0)."
        ],
        "topology": "counter-cross-flow",
        "rowProfile": [
          {
            "row": 1,
            "Q_W": 3885.8246219918224,
            "T_air_out_C": 32.20463842919675,
            "T_w_mean_C": 40.80778501827438
          },
          {
            "row": 2,
            "Q_W": 3634.220318092688,
            "T_air_out_C": 34.266528131601234,
            "T_w_mean_C": 42.10730054946271
          },
          {
            "row": 3,
            "Q_W": 3382.1877594860885,
            "T_air_out_C": 36.18542613516059,
            "T_w_mean_C": 43.31977794477613
          },
          {
            "row": 4,
            "Q_W": 3134.1320689073873,
            "T_air_out_C": 37.963588732151216,
            "T_w_mean_C": 44.445822404284186
          }
        ]
      },
      "timestamp": "2026-11-02T15:44:42.006Z",
      "engineVersion": "2.0.0"
    }
  }
}

9. Balanced routes have different contracts

Evaporator POST /api/v1/calculate/dx-evaporator/balanced requires {inputs: <complete evaporator input>, options?: {tolPct?, maxIt?}}. It searches refrigerant mass flow to achieve requested outlet superheat (TXV operating point); capacity is a result, not merely Q_air = Q_ref closure. It temporarily uses RATING internally and a positive seed if flow is omitted. maxIt defaults to 60. For original SIZING input, tolPct (default 1) checks capacity shortfall, not the superheat search tolerance; the superheat acceptance is 0.05 K in the engine. A returned result can have targetMet or converged false. It does not tune calibration.

Condenser POST /api/v1/calculate/dx-condenser/balanced accepts the bare condenser input, NOT {inputs, options}. It calls the normal condenser solver, leaves RATING flow unchanged, sets iterations to 1, and in SIZING checks duty, liquid outlet phase and subcooling. The REST handler supplies no third options argument: sending an options object does not expose internal mdot bounds, maxIt or tolerances. Never describe this route as searching a new condenser flow to hide a shortfall. Both return the same result structure as their normal module.

json

[
  {
    "method": "POST",
    "path": "/api/v1/calculate/dx-evaporator/balanced",
    "request": {
      "inputs": {
        "air": {
          "Vdot_m3_s": 1.5,
          "T_in_C": 27,
          "RH_in": 0.5,
          "P_Pa": 101325
        },
        "coil": {
          "height_m": 0.508,
          "tubesPerRow": 20,
          "width_m": 1,
          "rows": 4,
          "fpi": 12,
          "Pt_m": 0.0254,
          "Pl_m": 0.022,
          "Do_m": 0.00952,
          "wall_m": 0.0003,
          "fin_m": 0.0001,
          "tube_k": 386,
          "fin_k": 200,
          "freeAreaRatio": 0.6,
          "finType": "plain"
        },
        "ref": {
          "fluid": "R410A",
          "Tevap_C": 5,
          "superheat_K": 5,
          "circuits": 10,
          "mode": "RATING",
          "mdot_ref_kg_s": 0.04,
          "x_in": 0.2
        },
        "calib": {
          "C_air": 1,
          "C_tp": 1,
          "C_sh": 1,
          "f_maldistribution": 1
        },
        "segments": 40
      },
      "options": {
        "tolPct": 1,
        "maxIt": 60
      }
    },
    "response": {
      "success": true,
      "data": {
        "outlet": {
          "T_out_C": 16.37866583468195,
          "RH_out": 0.7700295163271693,
          "W_out": 0.008931554267298955,
          "h_out": 39086.848765679584,
          "Tdp_out_C": 12.341546239274933
        },
        "perf": {
          "Q_total_W": 28606.45485650264,
          "Q_sens_W": 18898.46749721315,
          "Q_lat_W": 9707.987359289491,
          "SHR": 0.660636474949893,
          "mcond_kg_s": 0.0038349295656768378,
          "v_face_m_s": 2.952755905511811,
          "dP_air_Pa": 83.4970954841905,
          "dP_ref_Pa": 18853.52619300515,
          "Q_ref_W": 28606.45485650279,
          "balanceError_pct": 5.214107509615256e-13,
          "mdot_ref_kg_s": 0.1606828269347608,
          "x_out": 1,
          "achievedSuperheat_K": 5.013566038697411,
          "targetSuperheat_K": 5,
          "refrigerantOutlet": {
            "T_C": 10.01356603869741,
            "h_in_J_kg": 250687.86399999997,
            "h_out_J_kg": 428718.4314365398,
            "phase": "superheated"
          },
          "refrigerantPressure": {
            "P_in_Pa": 955060.1261930054,
            "P_out_Pa": 936206.6000000002,
            "T_sat_in_C": 5.648975814871859,
            "T_sat_out_C": 5,
            "satDrop_K": 0.648975814871859,
            "x_in_local": 0.19609440443287166,
            "dP_twoPhase_Pa": 17333.776101730764,
            "dP_vapor_Pa": 1524.1357220685973,
            "dP_accessoriesInlet_Pa": 0,
            "dP_accessoriesOutlet_Pa": 0,
            "massFlux_kg_m2s": 257.12829713694947,
            "hydraulicFeasible": true
          }
        },
        "geometry": {
          "A_face_m2": 0.508,
          "A_ext_m2": 39.10246205044688,
          "A_int_m2": 2.2418405176016765,
          "n_tubes": 80,
          "n_tubes_H": 20,
          "L_circuit_m": 8,
          "Di_m": 0.00892
        },
        "htc": {
          "h_air_avg": 66.82588196002244,
          "h_ref_avg": 3152.8354872556492,
          "U_overall": 39.48790359750422,
          "eta_fin": 0.7702988035387852,
          "eta_surface": 0.7836774470234328
        },
        "flags": {
          "wetCoil": true,
          "superheated": true,
          "converged": true,
          "oversized": false,
          "targetMet": true,
          "hydraulicFeasible": true,
          "pressureDropExcessive": false,
          "notes": [
            "Refrigerant ΔP 18.9 kPa (G = 257 kg/m²s per circuit): saturation 5.65 °C at the tube inlets → 5.00 °C at the suction connection (drop 0.65 K, coupled into capacity).",
            "Warning: Liquid velocity (0.22 m/s) is too low (<0.3 m/s). Risk of poor oil return and flow stratification.",
            "Wet surface on 93 % of the coil area: SHR = 0.661, condensate 13.81 kg/h",
            "Model: mean-circuit crossflow moving boundary with pressure-coupled saturation (MSH friction, Domanski–Hermes bends, homogeneous momentum); Chen two-phase HTC does not model dryout near x → 1.",
            "TXV: mdot_ref = 0.16068 kg/s gives 5.01 K superheat (12 evaluations)."
          ],
          "iterations": 12
        },
        "zones": {
          "tp_fraction": 0.9259358677567262,
          "sh_fraction": 0.0740641322432738,
          "wet_fraction": 0.9259358677567262,
          "Q_tp_W": 27660.548469301222,
          "Q_sh_W": 945.9063872014204
        },
        "timestamp": "2026-11-02T15:44:42.158Z",
        "engineVersion": "6.1.0"
      }
    }
  },
  {
    "method": "POST",
    "path": "/api/v1/calculate/dx-condenser/balanced",
    "request": {
      "air": {
        "Vdot_m3_s": 1.5,
        "T_in_C": 30,
        "RH_in": 0.5,
        "P_Pa": 101325
      },
      "coil": {
        "height_m": 0.508,
        "tubesPerRow": 20,
        "width_m": 1,
        "rows": 4,
        "fpi": 12,
        "Pt_m": 0.0254,
        "Pl_m": 0.022,
        "Do_m": 0.00952,
        "wall_m": 0.0003,
        "fin_m": 0.0001,
        "tube_k": 386,
        "fin_k": 200,
        "freeAreaRatio": 0.6,
        "finType": "plain"
      },
      "ref": {
        "fluid": "R410A",
        "Tcond_C": 45,
        "subcool_K": 5,
        "Tin_gas_C": 75,
        "circuits": 10,
        "mode": "RATING",
        "mdot_ref_kg_s": 0.04
      },
      "calib": {
        "C_air": 1,
        "C_dsh": 1,
        "C_cond": 1,
        "C_sc": 1,
        "f_maldistribution": 1
      },
      "fouling": {
        "R_ext": 0,
        "R_int": 0
      },
      "segments": 40
    },
    "response": {
      "success": true,
      "data": {
        "engineVersion": "dx-cond-6.1.0",
        "airOut": {
          "T_out_C": 34.905833102639996,
          "RH_out": 0.37920635932683405,
          "W_out": 0.01331020383863019,
          "h_out_J_kgda": 69268.25088365117
        },
        "perf": {
          "Q_total_W": 8646.863272072569,
          "Q_dsh_W": 1798.625303999998,
          "Q_cond_W": 5929.402399999996,
          "Q_sc_W": 918.8355680725742,
          "v_face_m_s": 2.952755905511811,
          "dP_air_Pa": 82.1050884443191,
          "dP_ref_Pa": 265.3632161326799,
          "mdot_ref_kg_s": 0.04,
          "achievedSubcool_K": 12.142056810891162,
          "status": "OK",
          "satDrop_K": 0.004153328462578543,
          "propertyModel": "coolprop_grid",
          "Q_ref_W": 8646.863272072569,
          "balanceError_pct": 1.8932766850595476e-13,
          "requiredHeatRejection_W": 8124.959035999998,
          "capacityShortfall_pct": 0,
          "refrigerantOutlet": {
            "T_C": 32.85794318910884,
            "h_in_J_kg": 469048.89259999996,
            "h_out_J_kg": 252877.31079818573,
            "quality": null,
            "phase": "subcooled"
          },
          "pressureDropBreakdown": {
            "vapor_Pa": 103.73388610449132,
            "liquid_Pa": 24.3684210978554,
            "condensationFriction_Pa": 158.1821536620547,
            "condensationBends_Pa": 8.76982049279011,
            "acceleration_Pa": -29.691065224511664,
            "accessories_Pa": 0
          }
        },
        "zones": {
          "dsh_fraction": 0.18317599713921148,
          "cond_fraction": 0.5251466837984806,
          "sc_fraction": 0.29167731906230787,
          "heat_fractions": {
            "dsh": 0.20800899093769123,
            "cond": 0.6857287103348375,
            "sc": 0.10626229872747119
          }
        },
        "htc": {
          "h_air_W_m2K": 66.77541103267734,
          "h_ref_avg_W_m2K": 600.8301332918751,
          "U_avg_W_m2K": 18.87836136527455,
          "U_fouled_W_m2K": 18.87836136527455,
          "eta_fin": 0.7704249008937955,
          "eta_surface": 0.7837962000041732,
          "h_dsh_W_m2K": 237.6991690054887,
          "h_cond_W_m2K": 904.9932282548654,
          "h_sc_W_m2K": 281.2531278597104
        },
        "geometry": {
          "A_face_m2": 0.508,
          "A_ext_m2": 39.10246205044688,
          "A_int_m2": 2.2418405176016765,
          "totalTubes": 80,
          "tubesH": 20,
          "L_circuit_m": 8,
          "Di_m": 0.00892
        },
        "flags": {
          "converged": true,
          "oversized": false,
          "targetMet": true,
          "pressureDropExcessive": false,
          "notes": [
            "Mean-circuit pure-crossflow moving-boundary model: uniform air and refrigerant flow; not a row-by-row circuit simulation.",
            "Single-phase enthalpies from the CoolProp superheated/subcooled property grid (piecewise cp = Δh/ΔT); temperature glide and saturation-pressure variation along the circuit are not resolved.",
            "Target duty is condenser heat rejection, not evaporator cooling capacity; compressor power must be included upstream.",
            "Multiple depth rows use a mean-crossflow approximation; row mixing and circuit/airflow interaction require independent validation.",
            "Refrigerant ΔP uses mean-circuit area lengths, MSH friction, homogeneous acceleration and distributed bend estimates; gravity and pressure/thermal coupling are not resolved.",
            "Warning: Liquid velocity (0.07 m/s) is too low (<0.3 m/s). Risk of poor oil return and flow stratification.",
            "Warning: Vapor velocity (0.53 m/s) is too low (<3 m/s). Risk of poor oil return."
          ],
          "iterations": 1
        }
      }
    }
  }
]

10. Decode successful responses and lookup routes

HTTP 200 calculator responses are {success:true,data:<engine result>}, with no universal capacity rename, generated coilCode, pagination or saved project. Output duty is W, refrigerant/condensate mass flow is kg/s unless explicitly kg_h, air and DX pressure drops are Pa, and liquid/steam fields ending kPa are kPa. The examples show complete actual synthetic responses. The compact field catalogue below also lists conditional fields; it is field notation, not executable TypeScript or a JSON request. Optional properties can be absent.

HTTP success means the solver returned, not that the design meets the requested load or is safe to manufacture. Check flags.converged, flags.notes, targetMet where present, achieved superheat/subcooling, outlet phase, hydraulic and freezing diagnostics. A tiny balanceError_pct is an internal conservation residual, not independent laboratory validation. Condenser has engineVersion but no timestamp; do not assume every engine has identical metadata.

GET /api/v1/refrigerants returns only an array of exact refrigerant names under data, not GWP, ODP, safety classes or property tables. GET /api/v1/health returns status, version and ISO timestamp directly without success/data; its version is the API version, not every engine’s version. Both GET routes are authenticated. Refrigerant availability does not imply transcritical operation or unlimited temperature range.

text

// HTTP 200 calculators: { success: true, data: Result }
// A trailing ? marks an optional field; names and units are literal API keys.
Air = {T_out_C, RH_out, W_out, h_out}; // numbers: °C, fraction, kg/kg dry air, J/kg dry air
Geometry = {A_face_m2, A_ext_m2, A_int_m2, n_tubes, n_tubes_H, L_circuit_m, Di_m};
HTC = {h_air_avg, U_overall, eta_fin, eta_surface}; // W/(m²·K), efficiencies 0–1
Row = {row, Q_W, T_air_out_C, T_w_mean_C};

DXEvaporator = {
 outlet: Air & {Tdp_out_C}, geometry: Geometry, htc: HTC & {h_ref_avg},
 perf: {Q_total_W,Q_sens_W,Q_lat_W,SHR,mcond_kg_s,v_face_m_s,dP_air_Pa,dP_ref_Pa,
  Q_ref_W,balanceError_pct,mdot_ref_kg_s,x_out,achievedSuperheat_K?,targetSuperheat_K?,
  targetCapacity_W?,capacityShortfall_pct?,
  refrigerantOutlet?: {T_C,h_in_J_kg,h_out_J_kg,phase},
  refrigerantPressure?: {P_in_Pa,P_out_Pa,T_sat_in_C,T_sat_out_C,satDrop_K,x_in_local,
   dP_twoPhase_Pa,dP_vapor_Pa,dP_accessoriesInlet_Pa,dP_accessoriesOutlet_Pa,massFlux_kg_m2s,hydraulicFeasible}},
 zones?: {tp_fraction,sh_fraction,wet_fraction,Q_tp_W,Q_sh_W},
 flags: {wetCoil,superheated,converged,oversized,targetMet?,hydraulicFeasible?,pressureDropExcessive?,iterations?,notes},
 timestamp, engineVersion
};
DXCondenser = {
 airOut: {T_out_C,RH_out,W_out,h_out_J_kgda},
 perf: {Q_total_W,Q_dsh_W,Q_cond_W,Q_sc_W,v_face_m_s,dP_air_Pa,dP_ref_Pa?,
  mdot_ref_kg_s,achievedSubcool_K,status,satDrop_K?,propertyModel?,Q_ref_W,balanceError_pct,
  targetCapacity_W?,targetError_pct?,requiredHeatRejection_W?,capacityShortfall_pct?,
  refrigerantOutlet?: {T_C,h_in_J_kg,h_out_J_kg,quality,phase},
  pressureDropBreakdown?: {vapor_Pa,liquid_Pa,condensationFriction_Pa,condensationBends_Pa,acceleration_Pa,accessories_Pa}},
 zones: {dsh_fraction,cond_fraction,sc_fraction,heat_fractions?:{dsh,cond,sc}},
 htc: {h_air_W_m2K,h_ref_avg_W_m2K,U_avg_W_m2K,U_fouled_W_m2K?,eta_fin,eta_surface,h_dsh_W_m2K?,h_cond_W_m2K?,h_sc_W_m2K?},
 geometry: {A_face_m2,A_ext_m2,A_int_m2,totalTubes,tubesH?,L_circuit_m?,Di_m?},
 flags: {converged,iterations?,oversized,targetMet?,pressureDropExcessive?,notes}, engineVersion?
};
ChilledWater = {
 airOutlet: Air & {Tdp_out_C}, waterOutlet:{T_out_C,dT_K}, geometry:Geometry,
 htc:HTC & {h_water_avg},
 perf:{Q_total_W,Q_sens_W,Q_lat_W,SHR,mcond_kg_s,v_face_m_s,v_water_m_s?,dP_air_Pa,dP_water_kPa,balanceError_pct},
 flags:{wetCoil,converged,oversized,regime,notes,wetAreaFraction?,topology?,
  rowProfile?: Array<Row & {W_air_out,wetFraction}>}, timestamp,engineVersion
};
HotWater = {
 airOutlet:Air,waterOutlet:{T_out_C,dT_K},geometry:Geometry,htc:HTC & {h_water_avg},
 perf:{Q_total_W,v_face_m_s,v_water_m_s?,dP_air_Pa,dP_water_kPa,balanceError_pct},
 flags:{converged,oversized,regime,notes,topology?,rowProfile?:Row[]},timestamp,engineVersion
};
Steam = {
 airOutlet:Air,steamOutlet:{T_sat_C,T_condensate_C,mdot_steam_kg_s,mdot_steam_kg_h},
 geometry:Geometry,htc:HTC & {h_steam_avg},
 perf:{Q_total_W,v_face_m_s,dP_air_Pa,dP_steamAssemblies_kPa,steamTrapCapacity_kg_h,
  dP_steam_kPa?,v_steam_in_m_s?,satTempDrop_K?,balanceError_pct?,effectiveness?,NTU?,UA_W_K?},
 flags:{converged,oversized,notes,targetMet?,selectedRows?,pressureDropLimited?,condensationModel?,
  rowProfile?:Array<{row,Q_W,T_air_out_C,h_steam_W_m2K}>},timestamp,engineVersion
};
DryCooler = {
 airOutlet:Air,fluidOutlet:{T_out_C,dT_K},geometry:Geometry,htc:HTC & {h_fluid_avg,UA_W_K},
 perf:{Q_total_W,Q_sens_W,Q_lat_W,v_face_m_s,v_fluid_m_s,dP_air_Pa,dP_fluid_kPa,
  balanceError_pct,LMTD_K,F_correction,effectiveness,NTU},
 flags:{wetCoil,wetFraction,converged,oversized,regime,nearFreezing,freezingPoint_C,freezingMargin_K,
  notes,topology?,rowProfile?:Row[],targetMet?},timestamp,engineVersion
};
// Numbers unless named otherwise: flags booleans; notes string[]; rowProfile arrays.
// timestamp: ISO string; engineVersion/regime/topology/propertyModel/status/phase/condensationModel: strings.
// Condenser refrigerantOutlet.quality: number | null. No condenser timestamp is returned.
// Evaporator phase: two_phase | saturated_vapor | superheated.
// Condenser phase: superheated | two_phase | saturated_liquid | subcooled.
// Condenser status type: OK | NO_CONDENSE | NO_SUBCOOL | LIMITED_UA | PARTIAL.
// Current condenser solver emits OK, NO_CONDENSE, NO_SUBCOOL or PARTIAL.
// propertyModel: coolprop_grid | constant_cp_fallback; topology: counter-cross-flow.
// condensationModel: Chato (stratified) | Shah (annular).
// GET /api/v1/health: {status:"ok",version:"1.0.0",timestamp:"<ISO>"}
// GET /api/v1/refrigerants: {success:true,data:["R32","R410A","R134a","R22","R290","R1234yf","R404A","R507A","R407C","R1234ze(E)","R717","R744","R600a","R1270","R123","R245fa"]}

11. Errors, limits and safe troubleshooting

The route-level JSON error envelope is {error:<code>,message:<text>}, with no success:false or field-errors array. Messages below are literal templates; angle-bracket values vary. Normal DX missing-refrigerant and unknown-refrigerant errors differ from balanced errors: evaporator balanced checks inputs first, and both balanced routes return the short Unknown refrigerant message. Missing nested inputs can instead throw and become 422. The normal body check is shallow and even arrays are objects in JavaScript; do not rely on it for full validation.

401: check the Bearer header, exk_ format and key validity without exposing the secret. 403: check revocation, expiry, subscription status and calc:read permissions. 400: correct the body shape or refrigerant key. 422: correct units, required fields, flow/temperature ordering, geometry and property ranges using the engine message. Do not blindly retry a bad input. Uncaught authentication/storage errors are not normalized by wrapSolver. Malformed JSON and oversized requests can be rejected by Express before the REST router; the app’s JSON parser limit is 50mb, and those errors are not guaranteed to use this JSON envelope.

Rate limiting is per key in process memory over a 60-second window starting with the first accepted authentication. The key’s configured limit is used, falling back to 100 requests/minute when falsy; it is not a universal plan quota or distributed limit. X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset (Unix seconds) are set after authentication/rate checks and on 429, not on every 401/403. Permission/input failures after authentication consume allowance. Wait until reset and use bounded backoff on 429; there is no route-level Retry-After guarantee. Keep secrets redacted and record only the endpoint, synthetic/redacted input, HTTP status and diagnostic messages when troubleshooting.

text

HTTP 401: {"error":"unauthorized","message":"Missing or invalid Authorization header. Use: Bearer exk_your_api_key"}
HTTP 401: {"error":"unauthorized","message":"Invalid API key format. Keys start with 'exk_'."}
HTTP 401: {"error":"unauthorized","message":"Invalid API key."}
HTTP 403: {"error":"forbidden","message":"API key has been revoked."}
HTTP 403: {"error":"forbidden","message":"API key has expired."}
HTTP 403: {"error":"forbidden","message":"API access requires an active Enterprise or Manufacturer subscription."}
HTTP 403: {"error":"forbidden","message":"This API key does not have the 'calc:read' permission."}
HTTP 429: {"error":"rate_limit_exceeded","message":"Rate limit of <limit> requests per minute exceeded. Try again later."}
HTTP 400: {"error":"bad_request","message":"Request body must be a JSON object with calculation inputs."}
HTTP 400: {"error":"bad_request","message":"Missing refrigerant in input. Provide ref.fluid (or legacy ref.refrigerant)."}
HTTP 400: {"error":"bad_request","message":"Unknown refrigerant '<name>'. Available: <keys>"}
HTTP 400: {"error":"bad_request","message":"Request body must contain 'inputs' and optional 'options' fields."}
HTTP 400: {"error":"bad_request","message":"Unknown refrigerant '<name>'."}
HTTP 422: {"error":"calculation_error","message":"<engine error>"}
// Non-Error fallbacks: normal routes = Calculation failed; balanced routes = Balanced solve failed.

Documented features depend on your subscription and the data available in the calculation. A dimensional drawing is not a release for fabrication.

All guides