mirror of
https://github.com/ajisaacs/OpenNest.git
synced 2026-12-05 16:29:27 -05:00
feat(sequencing): add a parked heat-aware part sequencer
Add SequenceMethod.HeatAware (100, outside PEP's numbering) and SequenceParameters.HeatWeight. HeatAwareSequencer orders parts forward by travel seconds plus the weight times the heat estimated where each part is cut, from HeatSpreadEstimate: a Gaussian blob per finished part that widens with conduction and fades with surface loss. Without a thickness it is nearest neighbor. PlateSequencing.Apply takes the sheet's thermal parameters for it and still places cut-offs as before. The method and weight persist in the cutting settings DTO. Plan Cutting does not use the method and no UI offers it: its strict search refuses rapids over parts cut free, so a heat-spreading order needs 53-78 head raises per plate on the measured nests. docs/plate-heat-map.md records the numbers; revisit once thermal readings calibrate the model. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
1403517184
commit
97055c98be
16 files changed
+614
-9
No files matched your search
@@ -150,6 +150,9 @@ preserving the old default selection behavior. `OpenNest.IO.CuttingParametersSer
|
||||
cross-platform DTO mapping; the desktop settings serializer delegates to it so
|
||||
existing saved settings keep their JSON contract. Settings are independent of
|
||||
the saved part programs: restoring settings never regenerates those programs.
|
||||
`sequencing.method` is written as its number (PEP's 1-8, or 100 for OpenNest's
|
||||
[heat-aware order](plate-heat-map.md#sequencing)) with `sequencing.heatWeight`
|
||||
(seconds per °C); a file without the weight, or with a negative one, reads 0.15.
|
||||
|
||||
Lead settings are external (the perimeter) and internal (every cutout, full
|
||||
circles included). Older files and desktop settings also stored
|
||||
|
||||
+43
-2
@@ -2,8 +2,8 @@
|
||||
|
||||
`OpenNest.Core/CNC/Thermal/PlateHeatSimulation.cs` estimates how heat builds up in the sheet
|
||||
while a [cut simulation](cut-time-estimates.md) plays. The Cut Simulator shows it under the cut
|
||||
trail (Heat: Now or Peak so far). It is a display and analysis aid: no sequencer uses it yet, and
|
||||
it never changes the plate.
|
||||
trail (Heat: Now or Peak so far). It is a display and analysis aid and never changes the plate;
|
||||
a parked [heat-aware sequencer](#sequencing) uses a cheaper estimate of the same physics.
|
||||
|
||||
## Model
|
||||
|
||||
@@ -32,3 +32,44 @@ compare cut orders of one plate, not as real values.
|
||||
The simulator colors the field against the 99.5th percentile of the whole cut's peaks: a pierce
|
||||
puts its energy into a single cell, and scaling to that cell would hide the areas where heat
|
||||
builds up. Cells whose slug fell away are transparent.
|
||||
|
||||
## Sequencing
|
||||
|
||||
`SequenceMethod.HeatAware` (100, outside PEP's 1-8 numbering) is a heat-aware part sequencer,
|
||||
parked until thermal-camera readings calibrate the model. It is available to
|
||||
`PlateSequencing.Apply(plate, parameters, thermal)` only: Plan Cutting does not use it, and no UI
|
||||
offers it. The method and `SequenceParameters.HeatWeight` (seconds per °C, 0.15 by default) are
|
||||
saved with the cutting settings.
|
||||
|
||||
- Order (`OpenNest.Engine/Sequencing/HeatAwareOrder.cs`): a forward greedy from the plate's origin
|
||||
corner. The next part is the one with the least travel seconds plus `HeatWeight` times the
|
||||
estimated temperature at its center when the tool gets there. Cut-offs go last in its route, and
|
||||
`OrderCutOffsFirst` places them as for every method. Without a thickness it is nearest neighbor.
|
||||
- Estimate (`HeatSpreadEstimate`): each finished part leaves a Gaussian blob of its energy
|
||||
(`AbsorbedPower` times its torch-on time), as wide as the part to begin with (a quarter of its
|
||||
squared diagonal), widening by 4αΔt and fading with the surface loss; only the latest 200 parts
|
||||
count. Torch-on time comes from each part's cut length and pierces at stand-in feeds by
|
||||
thickness: 400 in/min up to 0.135 in, 150 up to 0.26 in, 80 above, a 0.5 s pierce up to 0.26 in
|
||||
and 1.5 s above, and 3000 in/min travel.
|
||||
|
||||
Why it is parked: Plan Cutting does not follow `SequenceMethod`. It plans its own shortest tour
|
||||
(nearest neighbor, 2-opt, Or-opt), which already travels a fraction of the row-based `Advanced`
|
||||
sequencer's distance, so the heat order's travel savings over `Advanced` do not carry over. And its
|
||||
strict search refuses head-down rapids over parts already cut free. A heat-spreading order skips
|
||||
neighbors and comes back to them across cut parts, so the search stalls, learns rules, and ends on
|
||||
its shortest tour or the safest-route fallback; a heat order used only where it does not stall
|
||||
moved the zone metric by noise (±3-5%). Kept as given through Plan Cutting, the heat order does
|
||||
spread the heat, at this cost against the planned shortest tour (2ER and N26-2GT, weights 0.1-0.4,
|
||||
stand-in feeds):
|
||||
|
||||
| Plate | Travel | Cut time | Head raises (tour: 0) | Zone P95 | Zone P75 |
|
||||
|-------|--------|----------|-----------------------|----------|----------|
|
||||
| 2ER plate 1 (130 parts, 0.25 in) | +52 to +82% | +0.8 to +1.2% | 59-78 | −14 to −18% | −18 to −23% |
|
||||
| N26-2GT plate 1 (112 parts, 0.09 in) | +50 to +65% | +2.3 to +3.1% | 54-62 | −24 to −25% | −26 to −28% |
|
||||
| N26-2GT plate 2 (148 parts, 0.09 in) | +64 to +102% | +1.8 to +2.8% | 53-75 | −12 to −20% | −18 to −24% |
|
||||
|
||||
The zone metric is the hottest average over each 4 in square during the cut, as a percentile over
|
||||
zones; pierces and hole clusters inside one part set the hottest cell whatever the order. The head
|
||||
raises are the safest-route fallback's last-resort markers, which the strict search never adds, so
|
||||
a heat order that spreads heat would need designed head raises (or rapids routed around cut parts).
|
||||
Revisit once the absorbed power and feeds are calibrated.
|
||||
Reference in new issue
Block a user