From Golden Fondue · v2. Edit this definition in its source simulation.
Source
behavior WarmCheese for FondueHeat
needs inputs(heater: Float [0.0 1.0])
{
update {
let exchange = sum n in neighbors[FondueHeat using VonNeumann] { n.temperature - self.temperature };
set self.temperature = clamp(self.temperature + 0.1 * exchange + 0.018 * (0.05 + 0.80 * heater - self.temperature), 0.0, 1.0);
}
}Building blocks
These exact versions are included when you reuse this artifact.