Background / Coolant Page
The Background / Coolant page edits three thermal scalars on the current project's MachiningEquipment:
- BackgroundTemperature_C
CoolantHeatCondition.CoolantTemperature_CCoolantHeatCondition.CoolantConvectionCoefficient_Wdm2K
Key Model: MachiningEquipment (+ its CoolantHeatCondition).
Note
This page exists only in the Quasar webservice. The WPF desktop app has no equivalent; the values are edited via scripting or XML.
Layout
- Background / Coolant Page
- Background Card
- Background Temperature NumberField (°C) — BackgroundTemperature_C.
- Coolant Card
- “Not attached” badge — visible until the first coolant-related save (see Lazy CoolantHeatCondition creation below).
- Coolant Temperature NumberField (°C) —
CoolantHeatCondition.CoolantTemperature_C. - Coolant Convection Coefficient NumberField (W/(m²·K)) —
CoolantHeatCondition.CoolantConvectionCoefficient_Wdm2K. Clamped tomin: 0. - Sanity-range hint — echoes the table from
CoolantHeatCondition.csdoc-comments (forced air 10–500, typical coolant 1000–10000).
- Background Card
Behavior
- Lazy
CoolantHeatConditioncreation. If the machining equipment has noCoolantHeatConditionyet, the first write lazy-creates one server-side so the page can edit a fresh project before the operator explicitly attaches a coolant condition. The “not attached” badge disappears once the first value is saved. - Celsius is the wire format.
CoolantHeatConditionstores Kelvin internally but exposes_Cgetters that handle the conversion. - No file IO. Background / coolant settings are part of the
.hincprojsave; there's no separate file to load. - Infinity round-trip.
NumericInputhandlesInfinityfor free. Background and coolant temperatures allow negatives (e.g. -40 °C for cryogenic coolant); the convection coefficient is clamped tomin: 0.
Source Code Path
See HiNC App Anatomy for git repository links.
WPF Application Source Code Path
- Not implemented.
Web Page Application Source Code Path
HiNC-2025-webservice (Quasar CLI SPA):
wwwroot-src/src/pages/BackgroundCoolantPage.vue— routed page at/equipment/background-coolant.wwwroot-src/src/api/backgroundCoolant.ts— typed wrapper over/api/mech/background-coolant/*.wwwroot-src/src/router/routes.ts—/equipment/background-coolantentry.wwwroot-src/src/layouts/AppMenuBar.vue—Environment → Background / Coolantmenu entry below Workpiece.Mech/BackgroundCoolantController.cs— REST endpoints:GET /api/mech/background-coolant— flat snapshot{ hasEquipment, backgroundTemperature_C, hasCoolant, coolantTemperature_C, coolantConvectionCoefficient_Wdm2K }.PUT /background-temperature-c— set BackgroundTemperature_C.PUT /coolant-temperature-c— lazy-createsCoolantHeatConditionif needed, then setsCoolantTemperature_C.PUT /coolant-convection-coefficient-wdm2k— same pattern for the heat-transfer coefficient.
Related Pages
- Spindle Capability Page — sibling under
Environment, also targetsMachiningEquipment.