Ejemplo n.º 1
0
    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()
Ejemplo n.º 2
0
    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()
Ejemplo n.º 3
0
 def calc_blend_temp(self):
     for cell in self.cells:
         cell.calc_blend_temp()
Ejemplo n.º 4
0
 def calc_blend_temp(self):
     for cell in self.cells:
         cell.calc_blend_temp()