Skip to content

Turkey Demo

Download this exampleTurkeyDemo.zipFull project — Dyad model + Julia + data

A discretized thermal model of cooking a turkey approximated as a sphere divided into concentric shells. Heat reaches the surface from the oven by both convection and radiation, then conducts inward shell by shell, so you can track when the center reaches a safe internal temperature.

The model

TurkeySphereTest places the discretized turkey in an oven environment with convective and radiative heat transfer:

Running it

Simulate four hours of cooking and plot the surface temperature in °F:

@example
using TurkeyDemo, ModelingToolkit, DyadInterface, Plots

@named model = TurkeySphereTest()
res = TransientAnalysis(; model, stop = 14400)
plot(res, idxs = [TurkeyDemo.KelvinToFahrenheit(model.turkey.surface.T)])