|
|
|
@@ -2,9 +2,9 @@
|
|
|
|
|
<html>
|
|
|
|
|
<head>
|
|
|
|
|
<meta charset="utf-8">
|
|
|
|
|
<title>Background / Coolant | HiAPI-C# 2025 </title>
|
|
|
|
|
<title>Environment: Ambient Temperature / Coolant | HiAPI-C# 2025 </title>
|
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
|
|
<meta name="title" content="Background / Coolant | HiAPI-C# 2025 ">
|
|
|
|
|
<meta name="title" content="Environment: Ambient Temperature / Coolant | HiAPI-C# 2025 ">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<link rel="icon" href="../../img/HiAPI.favicon.ico">
|
|
|
|
@@ -85,19 +85,21 @@
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<article data-uid="Anatomy-BackgroundCoolant">
|
|
|
|
|
<h1 id="background--coolant">Background / Coolant</h1>
|
|
|
|
|
<h1 id="environment-ambient-temperature--coolant">Environment: Ambient Temperature / Coolant</h1>
|
|
|
|
|
|
|
|
|
|
<p>Background and Coolant are two leaves of the General Setup page's Control Tree
|
|
|
|
|
(<code>/general-setup?tree=equipment/background</code>, <code>/general-setup?tree=equipment/coolant</code>), sitting
|
|
|
|
|
directly under the General Setup group between Spindle Capability and Fixture. They are two tree
|
|
|
|
|
items rather than a page, so the older <code>/equipment/background-coolant</code> path redirects onto the
|
|
|
|
|
Background leaf. Both are served by one panel component, which branches on the selected node's role
|
|
|
|
|
path.</p>
|
|
|
|
|
<p>Ambient Temperature and Coolant are the two leaves of the General Setup page's <strong>Environment</strong> root
|
|
|
|
|
(<code>/general-setup?tree=equipment/background/environment-temperature</code>,
|
|
|
|
|
<code>/general-setup?tree=equipment/background/coolant</code> — the root's id <code>equipment/background</code> and the
|
|
|
|
|
routes keep the legacy <code>background</code> spelling; since 2026-09-15 Environment is one of the page's four
|
|
|
|
|
roots beside Mechanism, Spindle Capability and Controller, and the pre-regroup <code>equipment/coolant</code> id
|
|
|
|
|
migrates). They are tree items rather than a page, so the older <code>/equipment/background-coolant</code> path
|
|
|
|
|
redirects onto the Environment root. Both leaves are served by one panel component, which branches
|
|
|
|
|
on the selected node's role path.</p>
|
|
|
|
|
<p>They edit the thermal condition on the project's authored equipment face,
|
|
|
|
|
<a class="xref" href="../../api/Hi.Machining.MachiningEquipmentUtils.SetupEquipment.html">SetupEquipment</a>, reached as
|
|
|
|
|
<a class="xref" href="../../api/Hi.MachiningProcs.LocalProjectService.html#Hi_MachiningProcs_LocalProjectService_SetupEquipment">SetupEquipment</a>:</p>
|
|
|
|
|
<ul>
|
|
|
|
|
<li><a class="xref" href="../../api/Hi.Machining.MachiningEquipmentUtils.SetupEquipment.html#Hi_Machining_MachiningEquipmentUtils_SetupEquipment_BackgroundTemperature_C">BackgroundTemperature_C</a> (Background
|
|
|
|
|
<li><a class="xref" href="../../api/Hi.Machining.MachiningEquipmentUtils.SetupEquipment.html#Hi_Machining_MachiningEquipmentUtils_SetupEquipment_AmbientTemperature_C">AmbientTemperature_C</a> (Ambient
|
|
|
|
|
leaf)</li>
|
|
|
|
|
<li>the whole <a class="xref" href="../../api/Hi.Physics.CoolantHeatCondition.html">CoolantHeatCondition</a> (Coolant leaf) — file-first, see below</li>
|
|
|
|
|
</ul>
|
|
|
|
@@ -105,10 +107,10 @@ leaf)</li>
|
|
|
|
|
<a class="xref" href="../../api/Hi.Machining.MachiningEquipmentUtils.SetupEquipment.html#Hi_Machining_MachiningEquipmentUtils_SetupEquipment_CoolantHeatCondition">CoolantHeatCondition</a>).</p>
|
|
|
|
|
<h2 id="layout">Layout</h2>
|
|
|
|
|
<ul>
|
|
|
|
|
<li>Background leaf — <code>equipment/background</code>, item type <code>ThermalCondition</code>
|
|
|
|
|
<li>Ambient Temperature leaf — <code>equipment/background/environment-temperature</code>, item type <code>ThermalCondition</code>
|
|
|
|
|
<ul>
|
|
|
|
|
<li>Background Temperature NumberField (°C) —
|
|
|
|
|
<a class="xref" href="../../api/Hi.Machining.MachiningEquipmentUtils.SetupEquipment.html#Hi_Machining_MachiningEquipmentUtils_SetupEquipment_BackgroundTemperature_C">BackgroundTemperature_C</a>.</li>
|
|
|
|
|
<li>Ambient Temperature NumberField (°C) —
|
|
|
|
|
<a class="xref" href="../../api/Hi.Machining.MachiningEquipmentUtils.SetupEquipment.html#Hi_Machining_MachiningEquipmentUtils_SetupEquipment_AmbientTemperature_C">AmbientTemperature_C</a>.</li>
|
|
|
|
|
</ul>
|
|
|
|
|
</li>
|
|
|
|
|
<li>Coolant leaf — <code>equipment/coolant</code>, the same item type and the same panel (file pick on top,
|
|
|
|
@@ -177,11 +179,11 @@ are the water-soluble preset's values.</li>
|
|
|
|
|
but exposes <code>_C</code> accessors that handle the conversion, and the DTO carries Celsius.</li>
|
|
|
|
|
<li><strong>Finite values only.</strong> Every field handler drops a null or non-finite entry before any request is
|
|
|
|
|
made, so <code>Infinity</code> never reaches these endpoints even though the numeric widget can parse it.
|
|
|
|
|
Background and coolant temperatures accept negatives (e.g. -40 °C for cryogenic coolant); the
|
|
|
|
|
Ambient and coolant temperatures accept negatives (e.g. -40 °C for cryogenic coolant); the
|
|
|
|
|
three convection fields are clamped to <code>min: 0</code>.</li>
|
|
|
|
|
<li><strong>The run sees it at once.</strong> The background-temperature write, all four condition scalars and the
|
|
|
|
|
<li><strong>The run sees it at once.</strong> The ambient-temperature write, all four condition scalars and the
|
|
|
|
|
file load each end in the project service's ForwardSetupEnvironmentToExecution, which stamps the
|
|
|
|
|
background temperature and the condition reference onto the runtime equipment face — including
|
|
|
|
|
ambient temperature and the condition reference onto the runtime equipment face — including
|
|
|
|
|
the lazily created condition, which otherwise would exist only on the authored side.</li>
|
|
|
|
|
</ul>
|
|
|
|
|
<h2 id="source-code-path">Source Code Path</h2>
|
|
|
|
@@ -190,7 +192,7 @@ the lazily created condition, which otherwise would exist only on the authored s
|
|
|
|
|
<p>HiNC-2025-webservice (Quasar CLI SPA):</p>
|
|
|
|
|
<ul>
|
|
|
|
|
<li><code>wwwroot-src/src/components/controlTree/ThermalConditionPanel.vue</code> — the one panel both leaves
|
|
|
|
|
share, branching on the node's last role-path segment: Background renders the single temperature
|
|
|
|
|
share, branching on the node's last role-path segment: Ambient Temperature renders the single temperature
|
|
|
|
|
field, Coolant the not-attached badge, the file row, the read-only Name / Note and the four
|
|
|
|
|
property fields.</li>
|
|
|
|
|
<li><code>wwwroot-src/src/components/controlTree/useControlTreeHost.ts</code> — declares the two
|
|
|
|
@@ -207,7 +209,8 @@ the flat snapshot, the load / save-as pair, and the five scalar PUTs.</li>
|
|
|
|
|
<li><code>wwwroot-src/src/router/routes.ts</code> — carries the <code>equipment/background-coolant</code> redirect, which
|
|
|
|
|
lands on <code>general-setup?tree=equipment/background</code>.</li>
|
|
|
|
|
<li><code>Mech/BackgroundCoolantController.cs</code> — REST surface at <code>/api/mech/background-coolant</code> over the
|
|
|
|
|
authored equipment face:
|
|
|
|
|
authored equipment face (the route, the PUT path and the snapshot field keep their legacy
|
|
|
|
|
<code>background</code> wire names; only the C# member behind them is renamed):
|
|
|
|
|
<ul>
|
|
|
|
|
<li><code>GET /</code> — flat snapshot <code>{ hasEquipment, backgroundTemperature_C, hasCoolant, coolantTemperature_C, coolantConvectionCoefficient_Wdm2K, mistFloodConvectionRatio, offConvectionCoefficient_Wdm2K, coolantName, coolantNote, coolantHeatConditionFile }</code>.</li>
|
|
|
|
|
<li><code>POST /load</code>, <code>POST /save-as</code> — <code>{ rootName, relFile }</code>: install a <code>.CoolantHeatCondition</code> file
|
|
|
|
@@ -218,7 +221,7 @@ project-relative path when it lands under the project. Save-as appends the exten
|
|
|
|
|
missing and renames the condition after the file (<code>IPreferredFileName</code>) with the <code>.default</code>
|
|
|
|
|
marker stripped.</li>
|
|
|
|
|
<li><code>PUT /background-temperature-c</code> — set
|
|
|
|
|
<a class="xref" href="../../api/Hi.Machining.MachiningEquipmentUtils.SetupEquipment.html#Hi_Machining_MachiningEquipmentUtils_SetupEquipment_BackgroundTemperature_C">BackgroundTemperature_C</a>.</li>
|
|
|
|
|
<a class="xref" href="../../api/Hi.Machining.MachiningEquipmentUtils.SetupEquipment.html#Hi_Machining_MachiningEquipmentUtils_SetupEquipment_AmbientTemperature_C">AmbientTemperature_C</a>.</li>
|
|
|
|
|
<li><code>PUT /coolant-temperature-c</code>, <code>PUT /coolant-convection-coefficient-wdm2k</code>,
|
|
|
|
|
<code>PUT /mist-flood-convection-ratio</code>, <code>PUT /off-convection-coefficient-wdm2k</code> — the four condition
|
|
|
|
|
scalars, all through one helper that lazy-creates the condition when absent, writes it, and
|
|
|
|
@@ -233,7 +236,7 @@ flood / mist-ratio / off convection coefficients, Name and Note with <code>Prefe
|
|
|
|
|
<code>StandardPresets</code> / <code>ApplyPreset</code> / <code>MatchStandardPreset</code> statics behind the shipped resource
|
|
|
|
|
files.</li>
|
|
|
|
|
<li><code>HiMech/Machining/MachiningEquipmentUtils/SetupEquipment.cs</code> — the authored equipment face that
|
|
|
|
|
owns the background temperature, the condition and its file reference, and externalizes the
|
|
|
|
|
owns the ambient temperature, the condition and its file reference, and externalizes the
|
|
|
|
|
condition to the side-file when that reference is set.</li>
|
|
|
|
|
</ul>
|
|
|
|
|
<h2 id="see-also">See Also</h2>
|
|
|
|
|