Die casting (bt.casting)¶
A cold-chamber die casting machine's side of its cell, derived from a
casting conditions sheet: the die and the shot measured off their meshes
and sized against the machine — what the clamp holds, how full the
sleeve is, how fast the metal passes the gate — and the machine's own
program written from the conditions (die shut, pour, the shot's profile
on the plunger, cooling, die open, ejection, spray), with the handshake
its ladle, its extractor and its sprayer answer. The machine itself is
bt.parts.die_casting_machine: the envelopes a cell
verifies against, and the moving platen, the ejector and the plunger as
the joints of a mechanism.
dcm = bt.parts.die_casting_machine(scene, "dcm", die=(0.290, 0.250), tip=0.100,
catalog="ube_machinery/ub-is2/ub850is2")
shot = bt.casting.Shot.from_meshes("shot.obj", "as_cast.obj", gate_mm2=565.0)
conditions = bt.casting.Conditions(
pressure_mpa=40.0, slow_mps=0.3, fast_at_m=0.505, fast_mps=3.0, decel_at_m=0.615, decel_mps=1.0,
cooling_s=10.0, open_m=0.76, close_s=2.8, open_s=3.3, eject_m=0.10)
print(bt.casting.check(bt.casting.Machine.of(dcm), shot, conditions).summary()) # sized first
hs = bt.casting.sequence(scene, dcm, conditions, source="caster", castings=["shot"],
biscuit=0.033, shot=shot, clearance=0.70) # the machine's program
tl = scene.simulate_sequences([hs.program, "ladle", "extract", "spray", "operator"])
print(bt.casting.sheet(dcm, conditions, shot, biscuit=0.033, steps=bt.casting.cycle(tl, hs)))
The cell's programs wait on the machine's signals by role —
hs.signal("die_open"), hs.signal("pour_req") — and answer on theirs
(poured, extract_ready, taken, extract_out, sprayed,
spray_out). Two more of the cell's answers stand up unless the cell
takes them down, and the die closes only with them: part_ok (the last
casting came out whole) and melt_ok (there is metal to pour); with
warm_up up, the machine marks the first Conditions.warmup shots
scrap. The casting is a feeder's (scene.add_source at the cavity):
it appears when the plunger stops on the biscuit, and the die holds it
until the extractor says it has it. The guide is
Die casting; the worked cell is
examples/casting/diecast_cell_demo.py.
What comes off the die is hot. cool takes a casting as one lump of
metal — its skin and its mass off its own mesh (measure), the shop's
air and the quench tank's water with a film coefficient each
(Cooling) — and gives its Temperature over the baked cycle from
where the cell has it when; show_temperature draws the casting in the
colour of the band it is in (HEAT_SCALE), with the key beside the
viewport, until it is cool enough to hold:
lump = bt.casting.measure("trimmed.obj")
heat = bt.casting.cool(lump, 350.0, [(opened, "die"), (ejected, "air"), (dipped, "water"), (lifted, "air")])
shown = bt.casting.show_temperature(scene, tl, "part/0", heat)
casting
¶
Die casting: what a cell is sized on before anything moves, and the machine's own program once it does.
A die casting machine is chosen and set against a die the way a part program is checked against a setup: is the machine strong enough to hold this die shut, does the ladle carry the shot, how full is the sleeve when the plunger starts, how fast does the metal go through the gate. None of it is a flow or a solidification analysis — it is the arithmetic a foundry engineer does on the back of the casting plan, written so that a cell does it on what it actually stands on:
shot = bt.casting.Shot.from_meshes(shot="shot.obj", product="as_cast.obj", gate_mm2=565.0)
machine = bt.casting.Machine(clamp_kn=8500.0, tip_mm=100.0, sleeve_m=0.685, pour_kg=8.0)
sizing = bt.casting.check(machine, shot, bt.casting.Conditions(pressure_mpa=40.0, fast_mps=3.0))
print(sizing.summary()) # 90.8 MPa the die may be cast at, 25.3 % sleeve fill, 41.7 m/s at the gate
assert sizing.ok, sizing.findings
measure is what makes that derived rather than typed: the shot's weight
and the area it presents to the clamp are taken off the closed mesh the
die was made from, so a die that changes takes its figures with it.
The same conditions sheet runs the machine. Conditions carries the
shot's profile by plunger stroke and the cycle's own times, and
sequence writes from it the program of a machine standing in the cell
(bt.parts.die_casting_machine): die shut, pour, the shot's phases on
the plunger joint, cooling, die open, ejection, spray — with the
handshake its ladle, its extractor and its sprayer answer. cycle reads
one cycle back out of a bake and sheet writes the setting sheet, with
the cycle as it ran:
hs = bt.casting.sequence(scene, dcm, conditions, source="caster", castings=["shot"],
biscuit=0.033, shot=shot, clearance=0.70)
tl = scene.simulate_sequences([hs.program, "ladle", "extract", "spray", "operator"])
print(bt.casting.sheet(dcm, conditions, shot, biscuit=0.033, steps=bt.casting.cycle(tl, hs)))
The metal is not simulated: the casting is there when the plunger stops on the biscuit, because the conditions say so.
What comes off the die is hot, and for how long is arithmetic too: a
thin-walled casting is one lump of metal at one temperature, losing its
heat to what it is in. cool works that out from the casting's own mesh
(its surface and its mass) and where the cell has it — still on the die,
in the air, under the quench tank's water — and show_temperature draws
it on the baked cycle in the colour of the band it is in, with the key:
lump = bt.casting.measure("trimmed.obj")
heat = bt.casting.cool(lump, 350.0, [(opened, "die"), (ejected, "air"), (dipped, "water"), (lifted, "air")])
heat.at(lifted), heat.when(60.0) # °C out of the tank; when it can be held
shown = bt.casting.show_temperature(scene, tl, "part/0", heat)
Units follow the trade where it has one — kN, MPa, kg, mm² for a gate, mm for a plunger tip — and SI elsewhere (m, m², m³, s).
ADC12_HEAT
module-attribute
¶
Convert a string or number to a floating-point number, if possible.
ADC12_LIQUID
module-attribute
¶
Convert a string or number to a floating-point number, if possible.
ADC12_SOLID
module-attribute
¶
Convert a string or number to a floating-point number, if possible.
DIE_CASTING
module-attribute
¶
str(object='') -> str str(bytes_or_buffer[, encoding[, errors]]) -> str
Create a new string object from the given object. If encoding or errors is specified, then the object must expose a data buffer that will be decoded using the given encoding and error handler. Otherwise, returns the result of object.str() (if defined) or repr(object). encoding defaults to sys.getdefaultencoding(). errors defaults to 'strict'.
HEAT_SCALE
module-attribute
¶
HEAT_SCALE = (
(300.0, (0.6477, 0.0359, 0.0046)),
(200.0, (0.9764, 0.1458, 0.0101)),
(150.0, (1.0, 0.364, 0.0165)),
(100.0, (0.8717, 0.61, 0.0255)),
(80.0, (0.3053, 0.9592, 0.0799)),
(60.0, (0.0243, 0.7465, 0.4681)),
)
Built-in immutable sequence.
If no argument is given, the constructor returns an empty tuple. If iterable is specified the tuple is initialized from iterable's items.
If the argument is a tuple, the return value is the same object.
Conditions
¶
The casting conditions: a machine's setting sheet for one die.
What the sizing reads — pressure_mpa, the casting (intensified)
pressure on the metal; fast_mps, the plunger's speed while the
cavity fills; melt_kg_m3, the density the alloy is poured at.
The shot's profile, by plunger stroke (m from the tip at rest):
slow_mps up to fast_at_m, fast_mps from there, and — where the
sheet has one — decel_mps from decel_at_m until the tip stops on
the biscuit. delay_s is the pause between the pour and the shot,
rise_s the pressure's rise once the cavity is full.
The cycle: cooling_s with the die shut after the shot; open_m, how
far the die opens (a machine opens no further than the casting and the
hand need); close_s and open_s, what the platen takes over that
distance; eject_m in eject_s and back in retract_s; return_s
for the plunger going back, under the spray. warmup is how many
shots a cold die is given before one counts as a casting (the
machine marks them, and the cell sends them back to the furnace).
alloy
class-attribute
¶
str(object='') -> str str(bytes_or_buffer[, encoding[, errors]]) -> str
Create a new string object from the given object. If encoding or errors is specified, then the object must expose a data buffer that will be decoded using the given encoding and error handler. Otherwise, returns the result of object.str() (if defined) or repr(object). encoding defaults to sys.getdefaultencoding(). errors defaults to 'strict'.
delay_s
class-attribute
¶
Convert a string or number to a floating-point number, if possible.
eject_s
class-attribute
¶
Convert a string or number to a floating-point number, if possible.
melt_kg_m3
class-attribute
¶
Convert a string or number to a floating-point number, if possible.
retract_s
class-attribute
¶
Convert a string or number to a floating-point number, if possible.
return_s
class-attribute
¶
Convert a string or number to a floating-point number, if possible.
rise_s
class-attribute
¶
Convert a string or number to a floating-point number, if possible.
warmup
class-attribute
¶
int([x]) -> integer int(x, base=10) -> integer
Convert a number or string to an integer, or return 0 if no arguments are given. If x is a number, return x.int(). For floating-point numbers, this truncates towards zero.
If x is not a number or if base is given, then x must be a string, bytes, or bytearray instance representing an integer literal in the given base. The literal can be preceded by '+' or '-' and be surrounded by whitespace. The base defaults to 10. Valid bases are 0 and 2-36. Base 0 means to interpret the base from the string as an integer literal.
int('0b100', base=0) 4
profile
¶
The shot as phases (name, stroke reached, seconds) up to
end, the stroke at which the tip stops on the biscuit.
Cooling
¶
What a casting off the die cools in, and how hard each takes heat
off its skin: the shop's air (air_c °C, air W/(m²·K) — still air,
and what little bare aluminium radiates) and the quench tank's water
(water_c, water — a part dipped in a stirred tank). The figures
are the order a shop works with, not a measurement of one; heat
(J/(kg·K)) and density (kg/m³) are the alloy's.
The casting is taken as one lump at one temperature. A thin-walled one is: across a 3 mm wall the Biot number is a few hundredths even under water. A biscuit is not — its heart stays hot longer than its lump says.
air
class-attribute
¶
Convert a string or number to a floating-point number, if possible.
air_c
class-attribute
¶
Convert a string or number to a floating-point number, if possible.
density
class-attribute
¶
Convert a string or number to a floating-point number, if possible.
heat
class-attribute
¶
Convert a string or number to a floating-point number, if possible.
water
class-attribute
¶
Convert a string or number to a floating-point number, if possible.
water_c
class-attribute
¶
Convert a string or number to a floating-point number, if possible.
DieCastingMachine
¶
Bases: botrail.parts.Built
What die_casting_machine built, and the names a casting cell
addresses.
axes is the mechanism — a robot of three prismatic joints: clamp
(the moving platen from die closed, 0, to the die stroke), eject
(the ejector plate out of the moving half) and shot (the plunger tip
from rest toward the die) — with the links platen_link (what the
die's moving half is attached to), ejector_link (what a casting
rides while it is pushed off) and plunger_link.
die is the die's two thicknesses (fixed, moving) the machine was set
up for; sleeve the sleeve's working length that follows from it —
the plunger tip at rest to the parting plane — and shot_end the
plunger stroke at which the tip stands in the parting plane. tip is
the plunger tip fitted. door is the operator-side safety door's axis
(None without a drive) and door_lanes its closed and open ends;
estop the E-stop lane.
Frames: parting (the centre of the parting plane on the machine's
centre line, +Z the way the die opens, +Y up, +X toward the helper's
side — where a die drawn in its part's frame is placed), pour (the
sleeve's pour hole, +Z up) and centre (the machine centre at the
fixed platen's die face).
axes
class-attribute
¶
str(object='') -> str str(bytes_or_buffer[, encoding[, errors]]) -> str
Create a new string object from the given object. If encoding or errors is specified, then the object must expose a data buffer that will be decoded using the given encoding and error handler. Otherwise, returns the result of object.str() (if defined) or repr(object). encoding defaults to sys.getdefaultencoding(). errors defaults to 'strict'.
centre
class-attribute
¶
str(object='') -> str str(bytes_or_buffer[, encoding[, errors]]) -> str
Create a new string object from the given object. If encoding or errors is specified, then the object must expose a data buffer that will be decoded using the given encoding and error handler. Otherwise, returns the result of object.str() (if defined) or repr(object). encoding defaults to sys.getdefaultencoding(). errors defaults to 'strict'.
centre_height
class-attribute
¶
Convert a string or number to a floating-point number, if possible.
clamp_kn
class-attribute
¶
Convert a string or number to a floating-point number, if possible.
die
class-attribute
¶
Built-in immutable sequence.
If no argument is given, the constructor returns an empty tuple. If iterable is specified the tuple is initialized from iterable's items.
If the argument is a tuple, the return value is the same object.
die_stroke
class-attribute
¶
Convert a string or number to a floating-point number, if possible.
ejector_link
class-attribute
¶
str(object='') -> str str(bytes_or_buffer[, encoding[, errors]]) -> str
Create a new string object from the given object. If encoding or errors is specified, then the object must expose a data buffer that will be decoded using the given encoding and error handler. Otherwise, returns the result of object.str() (if defined) or repr(object). encoding defaults to sys.getdefaultencoding(). errors defaults to 'strict'.
ejector_stroke
class-attribute
¶
Convert a string or number to a floating-point number, if possible.
parting
class-attribute
¶
str(object='') -> str str(bytes_or_buffer[, encoding[, errors]]) -> str
Create a new string object from the given object. If encoding or errors is specified, then the object must expose a data buffer that will be decoded using the given encoding and error handler. Otherwise, returns the result of object.str() (if defined) or repr(object). encoding defaults to sys.getdefaultencoding(). errors defaults to 'strict'.
platen_link
class-attribute
¶
str(object='') -> str str(bytes_or_buffer[, encoding[, errors]]) -> str
Create a new string object from the given object. If encoding or errors is specified, then the object must expose a data buffer that will be decoded using the given encoding and error handler. Otherwise, returns the result of object.str() (if defined) or repr(object). encoding defaults to sys.getdefaultencoding(). errors defaults to 'strict'.
plunger_link
class-attribute
¶
str(object='') -> str str(bytes_or_buffer[, encoding[, errors]]) -> str
Create a new string object from the given object. If encoding or errors is specified, then the object must expose a data buffer that will be decoded using the given encoding and error handler. Otherwise, returns the result of object.str() (if defined) or repr(object). encoding defaults to sys.getdefaultencoding(). errors defaults to 'strict'.
plunger_stroke
class-attribute
¶
Convert a string or number to a floating-point number, if possible.
pour
class-attribute
¶
str(object='') -> str str(bytes_or_buffer[, encoding[, errors]]) -> str
Create a new string object from the given object. If encoding or errors is specified, then the object must expose a data buffer that will be decoded using the given encoding and error handler. Otherwise, returns the result of object.str() (if defined) or repr(object). encoding defaults to sys.getdefaultencoding(). errors defaults to 'strict'.
shot_end
class-attribute
¶
Convert a string or number to a floating-point number, if possible.
shot_height
class-attribute
¶
Convert a string or number to a floating-point number, if possible.
sleeve
class-attribute
¶
Convert a string or number to a floating-point number, if possible.
tie_bars
class-attribute
¶
Built-in immutable sequence.
If no argument is given, the constructor returns an empty tuple. If iterable is specified the tuple is initialized from iterable's items.
If the argument is a tuple, the return value is the same object.
Finding
¶
Finding(severity: 'str', code: 'str', message: 'str', target: 'Optional[str]' = None)
Handshake
¶
What a template authored: the machine program's name, the door axis
it drives (or None — also where what it drives is a front door's two
leaves, MachineTool.front_doors), the I/O node it lives on, and the
signals by role — signal("service_req") is the name the robot's
program waits on, whatever the machine is called.
mtconnect_items
¶
The machine's lanes as MTConnect data items, for
bt.trace.read_mtconnect / to_mtconnect: Execution is
running, DoorState the side door's two lanes, EmergencyStop
the E-stop, ChuckState the work clamp (the nearest standard type
a vise clamp reports as). Only the roles this machine has.
Machine
¶
What of a die casting machine the sizing reads.
clamp_kn— the clamping force.tip_mm— the plunger tip's diameter (the sleeve's bore). A machine takes several; this is the one fitted.sleeve_m— the sleeve's working length: from the plunger tip at rest to the die's parting face, which is the volume the ladle pours into.pour_kg— the most its ladle delivers in one pour (None: not checked).
of
classmethod
¶
of(machine: DieCastingMachine) -> Machine
The figures of a machine standing in a scene
(bt.parts.die_casting_machine): its clamp, the tip fitted, the
sleeve as long as the die it was set up for makes it, its ladle.
Shot
¶
What a die asks of the machine: the metal poured (mass_kg, with
biscuit, runners and overflows), the casting in it (product_kg), the
area it presents to the clamp (projected_m2, everything the metal
wets in the parting plane) and the gate's cross-section (gate_mm2).
from_meshes
classmethod
¶
from_meshes(
shot: Union[str, Path],
product: Union[str, Path],
*,
gate_mm2: float,
density: float = 2700.0,
axis: Sequence[float] = (0.0, 0.0, 1.0),
resolution: float = 0.0005,
) -> Shot
The shot as the die's meshes have it: shot the whole pour and
product the casting, both closed and in metres, axis the way
the die opens.
Sizing
¶
What check worked out, and what it found wrong.
max_pressure_mpa— the casting pressure the clamp holds this die shut against (clamping force over projected area, less the safety factor);opening_kn— what the metal pushes the die open with at the conditions' pressure, andclamp_usethat as a share of the clamp;sleeve_fill— how much of the sleeve the pour fills as the plunger starts;gate_ratio— bore area over gate area, andgate_mpsthe metal's speed through the gate at the fast shot speed;yield_— casting over pour.
Solid
¶
A closed mesh, measured: its volume (m³), its bounds (two
corners, m) and the area of its shadow along axis — projected, m²,
the area a die presents to the clamp when axis is the way it opens.
Temperature
¶
A lump's temperature over time, °C: start_c until the first
span, then each span's fall toward what it is in — (from s, toward
°C, time constant s), to the next span's time; a time constant of
infinity holds it where it is. cool makes one.
after
¶
after(t: float) -> Temperature
The same temperature with its story beginning at t, at what
it is then: a casting that becomes an object of its own part way
— the press makes a casting and a gating of the shot — is drawn
from there (show_temperature draws a temperature from its first
time on).
when
¶
The first time it is at level_c or under — its first time if
it starts there, None if it never comes down to it.
check
¶
check(
machine: Machine,
shot: Shot,
conditions: Conditions,
*,
safety: float = 1.0,
fill: tuple[float, float] = (0.2, 0.7),
gate_speed: tuple[float, float] = (30.0, 60.0),
) -> Sizing
The die against the machine, at these conditions.
Errors are what cannot be cast as set: clamp_short (the metal opens
the die: pressure x projected area x safety over the clamping
force) and pour_over_ladle (the shot is more than the ladle
carries). Warnings are a foundry's rules of thumb, which a reviewer
would ask about and which fill and gate_speed move: sleeve_fill
outside fill (too empty and the metal chills and traps air on its
way, too full and it spills as the plunger starts) and gate_speed
outside gate_speed m/s (too slow and the cavity does not fill, too
fast and the die erodes).
safety is the factor the clamp is asked to hold over the opening
force; 1.0 is the balance itself, the figure a machine maker quotes.
cool
¶
cool(
solid: Solid,
start_c: float,
media: Sequence[tuple[float, str]],
cooling: Cooling = Cooling(
air_c=25.0,
air=12.0,
water_c=35.0,
water=2500.0,
heat=963.0,
density=2700.0,
),
) -> Temperature
The temperature of solid — a casting, measured — that starts at
start_c (°C, as the die lets it go) and is, from each time on, in
what media says: (time, "die" | "air" | "water"), times rising.
On the "die" it is held at what it has (how hot the die lets it go
is the conditions sheet's cooling time, not worked out here); in the
air and under water it falls toward them with cooling's constants
and its own surface and mass.
cycle
¶
cycle(
timeline, handshake: Handshake, which: int = -1
) -> list[tuple[str, float, float]]
One cycle of the machine out of a bake, as (step, start, end) in
the order they ran: from one close die to the next. which picks
the cycle — the last complete one by default (the first has nothing
to wait for before it and reads short).
heat_band
¶
heat_band(
celsius: float,
scale: Sequence[tuple[float, tuple]] = (
(300.0, (0.6477, 0.0359, 0.0046)),
(200.0, (0.9764, 0.1458, 0.0101)),
(150.0, (1.0, 0.364, 0.0165)),
(100.0, (0.8717, 0.61, 0.0255)),
(80.0, (0.3053, 0.9592, 0.0799)),
(60.0, (0.0243, 0.7465, 0.4681)),
),
) -> Optional[tuple]
The colour of the band celsius is in; None under the last.
measure
¶
measure(
path: Union[str, Path],
*,
axis: Sequence[float] = (0.0, 0.0, 1.0),
resolution: float = 0.0005,
scale: float = 1.0,
) -> Solid
Measures a closed triangle mesh (an OBJ file, metres times scale).
The volume is exact for the mesh (the sum of the tetrahedra its faces
make with the origin — which is why the mesh has to be closed and
wound outward). The projected area is the shadow along axis, counted
on a grid of resolution (m): good to about the outline's length
times a quarter of the cell, 0.1 % for a hand-sized die at the
default.
sequence
¶
sequence(
scene,
machine: DieCastingMachine,
conditions: Conditions,
*,
source: str,
castings: Sequence[str],
biscuit: float,
shot: Optional[Shot] = None,
clearance: Optional[float] = None,
safety: float = 1.0,
signals: Optional[dict[str, str]] = None,
program: Optional[str] = None,
node: bool = True,
) -> Handshake
Writes the machine's own program from its casting conditions — the cycle a die casting machine runs, and what it says to the ladle, the extractor and the sprayer round it. Like a machine tool's, it is one more program scanned beside the cell's:
- close — the die shuts (
close_s) once the cell saysstart, the extractor and the sprayer are out (extract_out,spray_out), the casting before it came out whole (part_ok: nothing is left in the die), there is metal to pour (melt_ok), the safety door is shut and no E-stop is in.runningis up from here until the machine stands ready again.part_okandmelt_okstand up unless the cell takes them down — a cell without a part check or a furnace level runs as if it had them; - pour —
pour_requp; the ladle answerspoured. The ladle is told ahead of that —ladle_req, up as the spray of the cycle before starts (and at the die's closing, for a first shot), down once it has poured — so that it stands over the sleeve with its metal as the die locks, and not a cooling's length before; - shot — after
delay_sthe plunger runs the conditions' profile (slow, fast, decelerating — each phase a ramp to its stroke) and stops on the biscuit,biscuitshort of the parting plane. The casting is there:sourceputs the next ofcastingsin the cavity, and the die holds it; - cool —
cooling_s, die shut; - open — the die opens
open_m(open_s), the casting riding the moving half;die_openup, and the machine waits for the extractor to say it is in place (extract_ready); - eject — the ejector pushes the casting off (
eject_m);ejectedup, and the machine waits fortaken— the extractor's hand closed on it — before it lets go (released) and draws the ejector back. The casting is never free: a hand whose hold follows its coil with a reach (scene.bind_grasp(..., reach_m=)) takes it the moment the die's hold drops, and what its jaws may touch (scene.allow_link_obstacle_contact) they may touch while the ejector still carries it; - spray — with the extractor out again,
spray_requp; the plunger goes back under the spray; the sprayer answerssprayedand drops it once the request is down. Then the die shuts again.
Warm-up shots. With the cell's warm_up up, the first
conditions.warmup shots are a cold die's: scrap is up from the
die's closing on each of them until it closes on the next, and the
cell sends them back to the furnace instead of on down the line. The
machine counts what it casts in the words <machine>.shots (every
shot) and <machine>.warm (the warm-up shots of this start; taken
back to zero when warm_up drops).
The roles are named <machine>/<role> unless signals renames them
(a maker's tag), and come back on the Handshake — the cell's
programs wait on hs.signal("die_open") whatever the machine is
called. The machine's control is an I/O node hosting the program
(node), so the handshake shows as wires on the I/O list.
Refused as the cell is built, by name: a shot the machine cannot
cast (shot is sized against it first — a die it cannot hold shut, a
pour its ladle cannot carry), a die opening short of clearance
(what the casting and the hand need between the die faces) or past
the die stroke, an ejection past the ejector's stroke, and a shot
profile that does not fit the plunger's.
sheet
¶
sheet(
machine: DieCastingMachine,
conditions: Conditions,
shot: Shot,
*,
biscuit: float,
safety: float = 1.0,
title: str = "Casting conditions",
steps: Optional[
Sequence[tuple[str, float, float]]
] = None,
) -> str
The setting sheet as Markdown: the machine as it is set up, what
the die asks of it, the conditions, what check makes of them — and,
with steps (cycle of a bake), the cycle as it ran.
show_temperature
¶
show_temperature(
scene,
timeline,
target: str,
temperature: Union[Temperature, Sequence[Temperature]],
*,
scale: Sequence[tuple[float, tuple]] = (
(300.0, (0.6477, 0.0359, 0.0046)),
(200.0, (0.9764, 0.1458, 0.0101)),
(150.0, (1.0, 0.364, 0.0165)),
(100.0, (0.8717, 0.61, 0.0255)),
(80.0, (0.3053, 0.9592, 0.0799)),
(60.0, (0.0243, 0.7465, 0.4681)),
),
title: str = "casting temperature [°C]",
)
timeline with target drawn in the colour of the band its
temperature is in, from that temperature's first time on, and as it
is once it is under the last band — false colour, with its key
beside the viewport (aluminium at 350 °C does not glow).
temperature is what cool gave, or several: an object out of a
feeder is one casting after another, each from its own first time
until the next one's. Display only (Scene.show_shapes with the
target's own shape): what the cell collides, grips and verifies is
untouched. Returns the timeline to play.