WARPXM v1.10.0
Loading...
Searching...
No Matches
warpy.post_processing.post2d.post_process_2d Class Reference

Post processing utilities for 2D simulations. More...

Detailed Description

Post processing utilities for 2D simulations.

Public Member Functions

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.
 

Public Attributes

 dset
 
 sorder
 
 plot_xs
 
 node_locs
 
 int_multipliers
 
 all_subdomains
 

Protected Member Functions

def _do_anim (self, y_fun, sim_name, frames, writer, subdomains, style_callback, **kwargs)
 Internal helper for anim.
 

Constructor & Destructor Documentation

◆ __init__()

def warpy.post_processing.post2d.post_process_2d.__init__ (   self,
  dset,
  sorder 
)
Parameters
dsetwarpy.dataset object. The dset object must be created using the restart mesh.
sorderSpatial order of the mesh

Member Function Documentation

◆ _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
y_fun
anim_fname

◆ 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_funwhat quantities to integrate
frameswhat frames to perform the integration on, or None for all frames in the dataset
subdomainsWhat 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
frameinteger of what frame to plot
y_funfunction to call for data (y) values
subdomainsList 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
frameinteger of what frame to plot
y_funWhat function to call for y values
subdomainsList 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
frameinteger of what frame to plot
y_funWhat function to call for y values
subdomainsList 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
frame1and frame2 integers of which frames to subtract and plot delta
y_funWhat function to call for y values
subdomainsList of subdomain(s) to extract data for, or None to extract over all subdomains

Member Data Documentation

◆ 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: