WARPXM v1.10.0
Loading...
Searching...
No Matches
warpy.post_processing.post1d.post_process_1d Class Reference

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

Detailed Description

Post processing utilities for 1D simulations.

Public Member Functions

def __init__ (self, dset, sorder)
 
def plot (self, frame, y_fun, subdomains=None, **kwargs)
 Plots y 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, frames=None, subdomains=None, style_callback=None, dpi=96, fps=60, bitrate=6000, metadata=dict())
 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, frames, writer, subdomains, style_callback)
 Internal helper for anim.
 

Constructor & Destructor Documentation

◆ __init__()

def warpy.post_processing.post1d.post_process_1d.__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.post1d.post_process_1d._do_anim (   self,
  y_fun,
  frames,
  writer,
  subdomains,
  style_callback 
)
protected

Internal helper for anim.

◆ anim()

def warpy.post_processing.post1d.post_process_1d.anim (   self,
  y_fun,
  anim_fname,
  frames = None,
  subdomains = None,
  style_callback = None,
  dpi = 96,
  fps = 60,
  bitrate = 6000,
  metadata = dict() 
)

Generates an animation movie.

Parameters
y_fun
anim_fname

◆ integrate()

def warpy.post_processing.post1d.post_process_1d.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

◆ plot()

def warpy.post_processing.post1d.post_process_1d.plot (   self,
  frame,
  y_fun,
  subdomains = None,
**  kwargs 
)

Plots y evaluated data vs.

x-coordinate. 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
prev_lines(named only) Used internally by the animation function.

Member Data Documentation

◆ all_subdomains

warpy.post_processing.post1d.post_process_1d.all_subdomains

◆ dset

warpy.post_processing.post1d.post_process_1d.dset

◆ int_multipliers

warpy.post_processing.post1d.post_process_1d.int_multipliers

◆ node_locs

warpy.post_processing.post1d.post_process_1d.node_locs

◆ plot_xs

warpy.post_processing.post1d.post_process_1d.plot_xs

◆ sorder

warpy.post_processing.post1d.post_process_1d.sorder

The documentation for this class was generated from the following file: