API & MCP
Everything a person can do on Ohmforge Thermal Calculator: Junction, Heatsink, Board Map, Fan & Duct, a program or AI agent can do with the same inputs and get the identical result.
HTTP API
POST https://ohmforgethermalcalculator.usefulweb.site/api/v1/calculate– run Ohmforge Thermal Calculator: Junction, Heatsink, Board Map, Fan & DuctGET https://ohmforgethermalcalculator.usefulweb.site/api/v1/tool– inputs, output schema, examples- OpenAPI 3.1: /openapi.json · /openapi.yaml
- Errors:
application/problem+json;422includes per-fielderrors.
Ohmforge Thermal Calculator: Junction, Heatsink, Board Map, Fan & Duct
Five thermal estimates for electronics. Junction: the junction, case and heatsink temperatures from the power and the thermal resistances θJC, θCS and θSA (or θJA), with an optional parallel path through the board, the margin to Tj,max and the heatsink θSA you need. Heatsink: θSA of a plate-fin heatsink in still air from its dimensions, with fin efficiency and the optimum fin gap. Plate and board: a 2-D steady temperature map of a plate or of an Ohmforge board model whose parts have a power, from in-plane conduction (FR-4 and copper layers) and convection on both faces, with the temperature under every part. Fan & duct: the airflow a heat load needs, the pressure drop of the air path (ducts, fittings, filters, a ducted heatsink), the operating point of one or several fans from datasheet points, fan laws for another speed and the forced-convection coefficient over a board. Same engine as the Thermal tab of Ohmforge’s Circuit calculators; estimates, not certified engineering.
| Field | Type | Default | Description |
|---|---|---|---|
mode | select (junction, heatsink, plate, board, fan) | "junction" | Calculation |
powerW | number | — | Power. Junction and heatsink: the heat the part dissipates. |
ambientC | number | 25 | Ambient temperature. Air around the part, heatsink or board (inside the enclosure, not the room). |
tjMaxC | number | — | Maximum junction temperature. Junction: from the datasheet (often 125 or 150 °C); gives the margin and the θSA needed. |
thetaJC | number | — | θJC junction to case. Junction: datasheet value. Heatsink: optional, to report the junction temperature too. |
thetaCS | number | — | θCS case to heatsink (interface). Thermal pad, grease or insulating washer: typically 0.1–1 K/W for TO-220. |
thetaSA | number | — | θSA heatsink to ambient. Junction: the heatsink datasheet value (or the result of the heatsink mode). Leave empty for a part without a heatsink and enter θJA. |
thetaJA | number | — | θJA junction to ambient (no heatsink). Junction without a heatsink: the datasheet value, measured on a JEDEC test board. |
thetaJB | number | — | θJB junction to board (parallel path). Optional second path through the leads and the board; needs θBA. |
thetaBA | number | — | θBA board to ambient. Optional: how well the board area around the part sheds heat (a board temperature map gives an estimate: rise ÷ power). |
baseWidthMm | number | — | Heatsink width (across the fins) |
baseLengthMm | number | — | Fin length (vertical, along the air flow) |
baseThicknessMm | number | 5 | Base thickness |
finHeightMm | number | — | Fin height |
finThicknessMm | number | — | Fin thickness |
finCount | integer | — | Number of fins |
conductivity | number | 200 | Material conductivity. Heatsink or plate material: aluminium alloys 150–210, copper 390, steel 50, FR-4 0.3. |
emissivity | number | 0.8 | Surface emissivity. Heatsink radiation: anodised or painted about 0.8, bare aluminium about 0.1; 0 ignores radiation. |
widthMm | number | — | Plate width |
heightMm | number | — | Plate height |
thicknessMm | number | 1.6 | Plate thickness |
sources | textarea | — | Heat sources on the plate. Plate mode: one source per line — name x y width depth power (centre and size in mm from the lower-left corner, power in W). |
board | textarea | — | Board model (JSON). Board mode: the board of Ohmforge’s Board & enclosure dialog (format ohmforge-board) with powerW (W) on the parts that get warm. The outline, thickness and part footprints come from it. |
copperLayers | integer | 2 | Copper layers. Board mode: number of copper layers (planes spread heat best). |
copperUm | number | 35 | Copper thickness per layer. 35 µm = 1 oz/ft², 70 µm = 2 oz. |
copperCoverage | number | 50 | Copper coverage. Board mode: average share of each layer covered by copper (pours and planes high, signal layers low). |
hTop | number | 10 | Convection coefficient, top face. Still air with radiation about 5–15, a fan 20–100. |
hBottom | number | 10 | Convection coefficient, bottom face |
clampEdge | select (none, left, right, bottom, top, left-right) | "none" | Clamped edge. An edge held at a fixed temperature, e.g. clamped to a chassis or cold plate. |
clampC | number | — | Clamp temperature. Default: the ambient temperature. |
gridCells | integer | 60 | Grid cells along the longer side. Finer grids resolve hot spots better; 60 is a good default. |
airRiseK | number | 10 | Allowed air temperature rise. Fan & duct: outlet minus inlet air temperature; with the power it sets the airflow needed, Q = P/(ρ·cp·ΔT). |
altitudeM | number | 0 | Altitude. Fan & duct: thinner air carries less heat and the fan makes less pressure. |
fanCurve | textarea | — | Fan curve (datasheet points). Fan & duct: one point per line — flow and static pressure in the units below, from shut-off (flow 0) to free delivery (pressure 0). |
flowUnit | select (m3h, cfm, ls) | "m3h" | Flow unit |
pressureUnit | select (Pa, inH2O, mmH2O) | "Pa" | Pressure unit |
fanCount | integer | 1 | Number of identical fans |
fanArrangement | select (parallel, series) | "parallel" | Several fans |
speedRatio | number | 1 | Speed ratio (new speed ÷ datasheet speed). Fan laws: flow ∝ speed, pressure ∝ speed²; for example 0.7 for a fan slowed to 70 % by PWM. |
system | textarea | — | Air path (one component per line). Fan & duct, lengths in mm: duct L=300 d=80 (or w=… h=…, rough=0.0015 mm) · fitting elbow90 | elbow90-mitred | elbow45 | entrance | bellmouth | exit | tee | fan-guard | K=0.8 (n=2 for several) · perforated open=50 · filter, grille, guard dp=30 at=50 (Pa at a rated flow from the datasheet) · heatsink w=100 h=30 L=100 fins=12 t=1.5 (fully ducted). |
friction | select (colebrook, swamee-jain) | "colebrook" | Turbulent friction factor |
boardLengthMm | number | — | Board length along the air flow. Fan & duct, optional: gives the forced-convection coefficient h for the board map (flat plate, approximate). |
channelWidthMm | number | — | Free channel width around the board. Optional: cross-section the air passes the board through; empty = the first duct. |
channelHeightMm | number | — | Free channel height around the board |
Example request
TO-220 regulator, 10 W, on a 4 K/W heatsink with a board path
curl -X POST https://ohmforgethermalcalculator.usefulweb.site/api/v1/calculate -H 'content-type: application/json' -d '{"mode":"junction","powerW":10,"ambientC":40,"tjMaxC":125,"thetaJC":1.5,"thetaCS":0.5,"thetaSA":4,"thetaJB":10,"thetaBA":20}'
Every result contains
inputs (normalised, defaults applied), summary, result (validated against the published schema), units, assumptions, sources, warnings, computedAt and links.
MCP (Model Context Protocol)
- Streamable HTTP endpoint:
https://ohmforgethermalcalculator.usefulweb.site/mcp– protocol revisions 2026-07-28 (stateless) and 2025-11-25 / 2025-06-18 / 2025-03-26 (initialize handshake). - Tools:
ohmforge_thermal_calculator - Local stdio connector:
node src/mcp-stdio.ts --tool=ohmforge-thermal-calculator
{
"mcpServers": {
"ohmforge-thermal-calculator": { "type": "http", "url": "https://ohmforgethermalcalculator.usefulweb.site/mcp" }
}
}