Post processing utilities for 1D simulations.
More...
Post processing utilities for 1D simulations.
|
| 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.
|
| |
|
| def | _do_anim (self, y_fun, frames, writer, subdomains, style_callback) |
| | Internal helper for anim.
|
| |
◆ __init__()
| def warpy.post_processing.post1d.post_process_1d.__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.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
-
◆ 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_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
◆ 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
-
| 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 |
| prev_lines | (named only) Used internally by the animation function. |
◆ 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: