parameters: ()
docstring: Render frames
docstring_summary: Render frames
docstring_tokens: Render frames
function: def frames():
      """Render frames"""
      camera = vtk.vtkCamera()
      camera.SetViewUp(0.0000000000, 1.0000000000, 0.0000000000)
      camera.SetPosition(0.1520000000, 0.0128500000, 0.1627768061)
      camera.SetFocalPoint(0.1520000000, 0.0128500000, 0.0000000000)
  
      reader = chigger.exodus.ExodusReader(EXODUS)
      temperature = chigger.exodus.ExodusResult(reader, camera=camera, variable='temperature',
                                                viewport=[0,0.5,1,1],
                                                range=[300, 350], cmap='plasma')
      viscosity = chigger.exodus.ExodusResult(reader, camera=camera, variable='viscosity',
                                             viewport=[0, 0, 1, 0.5],
                                             range=[3.7e-4, 8.7e-4],
                                             cmap='plasma')
      cbar = chigger.exodus.ExodusColorBar(temperature, viscosity,
                                           viewport=[0,0,1,1],
                                           length=0.6,
                                           colorbar_origin=[0.2, 0.5],
                                           location='top')
      time = chigger.annotations.TextAnnotation(position=[0.5,0.05], font_size=48, text_color=[0,0,0],
                                                justification='center')
      cbar.setOptions('primary', title='Temperature (K)', font_size=48, font_color=[0,0,0], num_ticks=6)
      cbar.setOptions('secondary', title='Viscosity (mPa-s)', font_size=48, font_color=[0,0,0], axis_scale=1000., num_ticks=6)
  
      window = chigger.RenderWindow(temperature, viscosity, cbar, time, size=[1920, 1080],
                                    background=[1,1,1])
  
      for i, t in enumerate(reader.getTimes()):
          reader.setOptions(timestep=i)
          time.setOptions(text='Time = {:.2f} sec.'.format(t))
          filename = 'output/{}_{:05d}.png'.format(PREFIX, i)
          window.write(filename)
  
      window.start()
function_tokens: def frames ( ) : camera = vtk . vtkCamera ( ) camera . SetViewUp ( 0.0000000000 , 1.0000000000 , 0.0000000000 ) camera . SetPosition ( 0.1520000000 , 0.0128500000 , 0.1627768061 ) camera . SetFocalPoint ( 0.1520000000 , 0.0128500000 , 0.0000000000 ) reader = chigger . exodus . ExodusReader ( EXODUS ) temperature = chigger . exodus . ExodusResult ( reader , camera = camera , variable = 'temperature' , viewport = [ 0 , 0.5 , 1 , 1 ] , range = [ 300 , 350 ] , cmap = 'plasma' ) viscosity = chigger . exodus . ExodusResult ( reader , camera = camera , variable = 'viscosity' , viewport = [ 0 , 0 , 1 , 0.5 ] , range = [ 3.7e-4 , 8.7e-4 ] , cmap = 'plasma' ) cbar = chigger . exodus . ExodusColorBar ( temperature , viscosity , viewport = [ 0 , 0 , 1 , 1 ] , length = 0.6 , colorbar_origin = [ 0.2 , 0.5 ] , location = 'top' ) time = chigger . annotations . TextAnnotation ( position = [ 0.5 , 0.05 ] , font_size = 48 , text_color = [ 0 , 0 , 0 ] , justification = 'center' ) cbar . setOptions ( 'primary' , title = 'Temperature (K)' , font_size = 48 , font_color = [ 0 , 0 , 0 ] , num_ticks = 6 ) cbar . setOptions ( 'secondary' , title = 'Viscosity (mPa-s)' , font_size = 48 , font_color = [ 0 , 0 , 0 ] , axis_scale = 1000. , num_ticks = 6 ) window = chigger . RenderWindow ( temperature , viscosity , cbar , time , size = [ 1920 , 1080 ] , background = [ 1 , 1 , 1 ] ) for i , t in enumerate ( reader . getTimes ( ) ) : reader . setOptions ( timestep = i ) time . setOptions ( text = 'Time = {:.2f} sec.' . format ( t ) ) filename = 'output/{}_{:05d}.png' . format ( PREFIX , i ) window . write ( filename ) window . start ( )