Post processing utilities for 2D simulations.  
 More...
Post processing utilities for 2D simulations. 
 | 
| def  | __init__ (self, dset, sorder) | 
|   | 
| def  | tripcolor (self, frame, y_fun, subdomains=None, **kwargs) | 
|   | Plots pcolor plots of y data on triangle grid.  
  | 
|   | 
| def  | tricontour (self, frame, y_fun, subdomains=None, **kwargs) | 
|   | Plots contours of y data on triangle grid.  
  | 
|   | 
| def  | tripcolordelta (self, frame1, frame2, y_fun, subdomains=None, **kwargs) | 
|   | Plots x-coordinate vs.  
  | 
|   | 
| def  | integy (self, npts, frame, y_fun, subdomains=None, **kwargs) | 
|   | Integrates data along y-direction and plots evaluated data vs.  
  | 
|   | 
| def  | integrate (self, y_fun, frames=None, subdomains=None) | 
|   | Integrates various quantities over a given set of subdomains on a single frame.  
  | 
|   | 
| def  | anim (self, y_fun, anim_fname, sim_name=None, frames=None, subdomains=None, style_callback=None, dpi=96, fps=60, bitrate=6000, metadata=dict(), **kwargs) | 
|   | Generates an animation movie.  
  | 
|   | 
 | 
| def  | _do_anim (self, y_fun, sim_name, frames, writer, subdomains, style_callback, **kwargs) | 
|   | Internal helper for anim.  
  | 
|   | 
◆ __init__()
      
        
          | def warpy.post_processing.post2d.post_process_2d.__init__  | 
          ( | 
            | 
          self,  | 
        
        
           | 
           | 
            | 
          dset,  | 
        
        
           | 
           | 
            | 
          sorder  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
- Parameters
 - 
  
    | dset | warpy.dataset object. The dset object must be created using the restart mesh.  | 
    | sorder | Spatial order of the mesh  | 
  
   
 
 
◆ _do_anim()
  
  
      
        
          | def warpy.post_processing.post2d.post_process_2d._do_anim  | 
          ( | 
            | 
          self,  | 
         
        
           | 
           | 
            | 
          y_fun,  | 
         
        
           | 
           | 
            | 
          sim_name,  | 
         
        
           | 
           | 
            | 
          frames,  | 
         
        
           | 
           | 
            | 
          writer,  | 
         
        
           | 
           | 
            | 
          subdomains,  | 
         
        
           | 
           | 
            | 
          style_callback,  | 
         
        
           | 
           | 
          **  | 
          kwargs  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
protected   | 
  
 
Internal helper for anim. 
 
 
◆ anim()
      
        
          | def warpy.post_processing.post2d.post_process_2d.anim  | 
          ( | 
            | 
          self,  | 
        
        
           | 
           | 
            | 
          y_fun,  | 
        
        
           | 
           | 
            | 
          anim_fname,  | 
        
        
           | 
           | 
            | 
          sim_name = None,  | 
        
        
           | 
           | 
            | 
          frames = None,  | 
        
        
           | 
           | 
            | 
          subdomains = None,  | 
        
        
           | 
           | 
            | 
          style_callback = None,  | 
        
        
           | 
           | 
            | 
          dpi = 96,  | 
        
        
           | 
           | 
            | 
          fps = 60,  | 
        
        
           | 
           | 
            | 
          bitrate = 6000,  | 
        
        
           | 
           | 
            | 
          metadata = dict(),  | 
        
        
           | 
           | 
          **  | 
          kwargs  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Generates an animation movie. 
- Parameters
 - 
  
  
 
 
 
◆ integrate()
      
        
          | def warpy.post_processing.post2d.post_process_2d.integrate  | 
          ( | 
            | 
          self,  | 
        
        
           | 
           | 
            | 
          y_fun,  | 
        
        
           | 
           | 
            | 
          frames = None,  | 
        
        
           | 
           | 
            | 
          subdomains = None  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Integrates various quantities over a given set of subdomains on a single frame. 
- Parameters
 - 
  
    | y_fun | what quantities to integrate  | 
    | frames | what frames to perform the integration on, or None for all frames in the dataset  | 
    | subdomains | What subdomains to integrate on (or None for all)  | 
  
   
- Returns
 - tuple of (times, integrated results, labels) integrated results has component as second index 
 
 
 
◆ integy()
      
        
          | def warpy.post_processing.post2d.post_process_2d.integy  | 
          ( | 
            | 
          self,  | 
        
        
           | 
           | 
            | 
          npts,  | 
        
        
           | 
           | 
            | 
          frame,  | 
        
        
           | 
           | 
            | 
          y_fun,  | 
        
        
           | 
           | 
            | 
          subdomains = None,  | 
        
        
           | 
           | 
          **  | 
          kwargs  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Integrates data along y-direction and plots evaluated data vs. 
x-coordinate. 
- Parameters
 - 
  
    | frame | integer of what frame to plot  | 
    | y_fun | function to call for data (y) values  | 
    | subdomains | List of subdomain(s) to extract data for, or None to extract over all subdomains  | 
  
   
 
 
◆ tricontour()
      
        
          | def warpy.post_processing.post2d.post_process_2d.tricontour  | 
          ( | 
            | 
          self,  | 
        
        
           | 
           | 
            | 
          frame,  | 
        
        
           | 
           | 
            | 
          y_fun,  | 
        
        
           | 
           | 
            | 
          subdomains = None,  | 
        
        
           | 
           | 
          **  | 
          kwargs  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Plots contours of y data on triangle grid. 
Plot style parameters may be passed by name. 
- Parameters
 - 
  
    | frame | integer of what frame to plot  | 
    | y_fun | What function to call for y values  | 
    | subdomains | List of subdomain(s) to plot contour for, or None to plot over all subdomains  | 
  
   
 
 
◆ tripcolor()
      
        
          | def warpy.post_processing.post2d.post_process_2d.tripcolor  | 
          ( | 
            | 
          self,  | 
        
        
           | 
           | 
            | 
          frame,  | 
        
        
           | 
           | 
            | 
          y_fun,  | 
        
        
           | 
           | 
            | 
          subdomains = None,  | 
        
        
           | 
           | 
          **  | 
          kwargs  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Plots pcolor plots of y data on triangle grid. 
Plot style parameters may be passed by name. 
- Parameters
 - 
  
    | frame | integer of what frame to plot  | 
    | y_fun | What function to call for y values  | 
    | subdomains | List of subdomain(s) to extract data for, or None to plot for all subdomains  | 
  
   
 
 
◆ tripcolordelta()
      
        
          | def warpy.post_processing.post2d.post_process_2d.tripcolordelta  | 
          ( | 
            | 
          self,  | 
        
        
           | 
           | 
            | 
          frame1,  | 
        
        
           | 
           | 
            | 
          frame2,  | 
        
        
           | 
           | 
            | 
          y_fun,  | 
        
        
           | 
           | 
            | 
          subdomains = None,  | 
        
        
           | 
           | 
          **  | 
          kwargs  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Plots x-coordinate vs. 
delta y evaluated data. Plot style parameters may be passed by name. 
- Parameters
 - 
  
    | frame1 | and frame2 integers of which frames to subtract and plot delta  | 
    | y_fun | What function to call for y values  | 
    | subdomains | List of subdomain(s) to extract data for, or None to extract over all subdomains  | 
  
   
 
 
◆ all_subdomains
      
        
          | warpy.post_processing.post2d.post_process_2d.all_subdomains | 
        
      
 
 
◆ dset
      
        
          | warpy.post_processing.post2d.post_process_2d.dset | 
        
      
 
 
◆ int_multipliers
      
        
          | warpy.post_processing.post2d.post_process_2d.int_multipliers | 
        
      
 
 
◆ node_locs
      
        
          | warpy.post_processing.post2d.post_process_2d.node_locs | 
        
      
 
 
◆ plot_xs
      
        
          | warpy.post_processing.post2d.post_process_2d.plot_xs | 
        
      
 
 
◆ sorder
      
        
          | warpy.post_processing.post2d.post_process_2d.sorder | 
        
      
 
 
The documentation for this class was generated from the following file: