def tick(self, duration_seconds): # Update rod pos if (self.current_velocity != 0): d = self.depth + self.current_velocity * duration_seconds self.set_depth(d) # Simulate self.cool() self.decay() for cell in self.cells: cell.calc_blend_temp() self.calc_avg_temp() self.calc_steam_pressure()
def calc_blend_temp(self): for cell in self.cells: cell.calc_blend_temp()