Public Member Functions | |
def | __init__ (self, path, fig, frame_dir=None, plot_flow=True, flow_min=1e-8, flow_max=1e1, separate_fission=True, fission_minflow=1e-10, flow_cbar=True, flow_adapt_prange=True, flow_prange=5, flow_adapt_width=True, flow_maxArrowWidth=2.0, flow_minArrowWidth=0.3, cmapNameFlow='viridis', abun_cbar=True, X_min=1e-8, X_max=1, cmapNameX='inferno', plot_abar=True, plotMassBins=True, addMassBinLabels=True, alphaMassBins=0.5, cmapNameMassBins='jet', massBins=[[1, 1],[2, 71],[72, 93],[94, 110],[111, 144],[145, 169],[170, 187],[188, 205],[206, 252],[253, 337]], massBinLabels=['','', '1st peak','', '2nd peak', 'rare earths', '', '3rd peak', '', 'fissioning'], plot_magic=True, additional_plot='none', trackedrange=(1e-8, 1), energyrange=(1e10, 1e20), timescalerange=(1e-12, 1e10), timerange=(1e-5, 1e5), plot_mainout=True, densityrange=(1e-5, 1e12), temperaturerange=(0, 10), yerange=(0.0, 0.55), plot_logo=True) |
def | init_axes (self) |
def | init_data (self) |
def | init_plot (self) |
def | init_cbars (self, abun_cbar, flow_cbar) |
def | update_data (self, ii) |
def | handle_fission (self) |
def | update_abun_plot (self) |
def | update_fission_plot (self) |
def | update_flow_plot (self) |
def | update_frame (self, ii) |
def | save_frame (self, ii) |
def | get_funcanimation (self, frames=None, **kwargs) |
def | sum_over_A (self, A, X) |
Static Public Member Functions | |
def | to_latex_exponent (x) |
def | format_time (time) |
Private Member Functions | |
def | __init_nucchart_ax (self) |
def | __init_axAbund (self) |
def | __init_axTimescales (self) |
def | __init_axTracked (self) |
def | __init_axEnergy (self) |
def | __init_axMainout (self) |
def | __init_logo (self) |
Private Attributes | |
__script_path | |
__data_path | |
__A_plot | |
__Z_plot | |
__N_plot | |
__max_N | |
__max_Z | |
__abundance_colors | |
__background_Y | |
Class to create an animation of the abundances and their flow for the nuclear reaction network WinNet.
Definition at line 22 of file FlowAnimation.py.
def src_files.FlowAnimation.FlowAnimation.__init__ | ( | self, | |
path, | |||
fig, | |||
frame_dir = None , |
|||
plot_flow = True , |
|||
flow_min = 1e-8 , |
|||
flow_max = 1e1 , |
|||
separate_fission = True , |
|||
fission_minflow = 1e-10 , |
|||
flow_cbar = True , |
|||
flow_adapt_prange = True , |
|||
flow_prange = 5 , |
|||
flow_adapt_width = True , |
|||
flow_maxArrowWidth = 2.0 , |
|||
flow_minArrowWidth = 0.3 , |
|||
cmapNameFlow = 'viridis' , |
|||
abun_cbar = True , |
|||
X_min = 1e-8 , |
|||
X_max = 1 , |
|||
cmapNameX = 'inferno' , |
|||
plot_abar = True , |
|||
plotMassBins = True , |
|||
addMassBinLabels = True , |
|||
alphaMassBins = 0.5 , |
|||
cmapNameMassBins = 'jet' , |
|||
massBins = [[1,1],[2,71],[72,93],[94,110],[111,144],[145,169],[170,187],[188,205],[206,252],[253,337]] , |
|||
massBinLabels = ['','','1st peak','','2nd peak','rare earths', '', '3rd peak', '', 'fissioning'] , |
|||
plot_magic = True , |
|||
additional_plot = 'none' , |
|||
trackedrange = (1e-8, 1) , |
|||
energyrange = (1e10, 1e20) , |
|||
timescalerange = (1e-12, 1e10) , |
|||
timerange = (1e-5 , 1e5) , |
|||
plot_mainout = True , |
|||
densityrange = (1e-5, 1e12) , |
|||
temperaturerange = (0, 10) , |
|||
yerange = (0.0, 0.55) , |
|||
plot_logo = True |
|||
) |
Parameters ---------- path : str Path to the WinNet data. fig : matplotlib.figure.Figure Figure to plot the animation on. frame_dir : str Folder to save the frames in, default is path/frames. plot_flow : bool Plot the flow of the abundances. flow_min : float Minimum value for the flow. flow_max : float Maximum value for the flow. separate_fission : bool Separate the fissioning region from the fission products in the flow plot. fission_minflow : float Minimum value to indicate a fission region. flow_cbar : bool Plot the colorbar for the flow. flow_adapt_prange : bool Adapt the color range of the flow to the data. flow_prange : float Range (in log10) of the flow. flow_adapt_width : bool Adapt the width of the flow arrows to the flow. flow_maxArrowWidth : float Maximum width of the flow arrows. flow_minArrowWidth : float Minimum width of the flow arrows. cmapNameFlow : str Name of the colormap for the flow. abun_cbar : bool Plot the colorbar for the mass fractions. X_min : float Minimum value for the mass fractions. X_max : float Maximum value for the mass fractions. cmapNameX : str Name of the colormap for the mass fractions. plot_abar : bool Plot the average mass number. plotMassBins : bool Plot the mass bins. addMassBinLabels : bool Add labels to the mass bins. alphaMassBins : float Transparency of the mass bins. cmapNameMassBins : str Name of the colormap for the mass bin color. massBins : list List of mass bins. massBinLabels : list List of labels for the mass bins. plot_magic : bool Plot the magic numbers in the abundance plot. additional_plot : str Additional plot to be made, possible values: 'None', 'timescales', 'energy', 'tracked'. trackedrange : tuple Range of the tracked nuclei plot. energyrange : tuple Range of the energy axis. timescalerange : tuple Range of the timescales. timerange : tuple Range of the time axis. plot_mainout : bool Plot the mainout data. densityrange : tuple Range of the density axis in the mainout plot. temperaturerange : tuple Range of the temperature axis in the mainout plot. yerange : tuple Range of the electron fraction axis in the mainout plot. plot_logo : bool Plot the WinNet logo.
Definition at line 27 of file FlowAnimation.py.
|
private |
Initialize the axes and everything figure related of the mass fraction plot.
Definition at line 346 of file FlowAnimation.py.
|
private |
Initialize the axes and everything figure related of the energy plot.
Definition at line 392 of file FlowAnimation.py.
|
private |
Initialize the axes and everything figure related of the mainout plot.
Definition at line 404 of file FlowAnimation.py.
|
private |
Initialize the axes and everything figure related of the timescales plot.
Definition at line 368 of file FlowAnimation.py.
|
private |
Initialize the axes and everything figure related of the tracked nuclei plot.
Definition at line 380 of file FlowAnimation.py.
|
private |
Initialize the axes and everything figure related of the WinNet logo.
Definition at line 444 of file FlowAnimation.py.
|
private |
Initialize the axes and everything figure related of the nuclear chart.
Definition at line 336 of file FlowAnimation.py.
|
static |
Format a time in seconds to a more human readable format.
Definition at line 957 of file FlowAnimation.py.
def src_files.FlowAnimation.FlowAnimation.get_funcanimation | ( | self, | |
frames = None , |
|||
** | kwargs | ||
) |
def src_files.FlowAnimation.FlowAnimation.handle_fission | ( | self | ) |
Separate the fissioning region from the fission products in the flow plot.
Definition at line 820 of file FlowAnimation.py.
def src_files.FlowAnimation.FlowAnimation.init_axes | ( | self | ) |
Initialize the axes and everything figure related of the plot.
Definition at line 298 of file FlowAnimation.py.
def src_files.FlowAnimation.FlowAnimation.init_cbars | ( | self, | |
abun_cbar, | |||
flow_cbar | |||
) |
Initialize the colorbars.
Definition at line 714 of file FlowAnimation.py.
def src_files.FlowAnimation.FlowAnimation.init_data | ( | self | ) |
Initialize the data for the plot.
Definition at line 453 of file FlowAnimation.py.
def src_files.FlowAnimation.FlowAnimation.init_plot | ( | self | ) |
Initialize the plots.
Definition at line 538 of file FlowAnimation.py.
def src_files.FlowAnimation.FlowAnimation.save_frame | ( | self, | |
ii | |||
) |
def src_files.FlowAnimation.FlowAnimation.sum_over_A | ( | self, | |
A, | |||
X | |||
) |
Definition at line 978 of file FlowAnimation.py.
|
static |
Convert a number to a latex string with exponent.
Definition at line 945 of file FlowAnimation.py.
def src_files.FlowAnimation.FlowAnimation.update_abun_plot | ( | self | ) |
Definition at line 847 of file FlowAnimation.py.
def src_files.FlowAnimation.FlowAnimation.update_data | ( | self, | |
ii | |||
) |
Update the data for the plot.
Definition at line 751 of file FlowAnimation.py.
def src_files.FlowAnimation.FlowAnimation.update_fission_plot | ( | self | ) |
Definition at line 883 of file FlowAnimation.py.
def src_files.FlowAnimation.FlowAnimation.update_flow_plot | ( | self | ) |
Definition at line 892 of file FlowAnimation.py.
def src_files.FlowAnimation.FlowAnimation.update_frame | ( | self, | |
ii | |||
) |
|
private |
Definition at line 201 of file FlowAnimation.py.
|
private |
Definition at line 508 of file FlowAnimation.py.
|
private |
Definition at line 519 of file FlowAnimation.py.
|
private |
Definition at line 117 of file FlowAnimation.py.
|
private |
Definition at line 204 of file FlowAnimation.py.
|
private |
Definition at line 205 of file FlowAnimation.py.
|
private |
Definition at line 203 of file FlowAnimation.py.
|
private |
Definition at line 116 of file FlowAnimation.py.
|
private |
Definition at line 202 of file FlowAnimation.py.
src_files.FlowAnimation.FlowAnimation.A |
Definition at line 460 of file FlowAnimation.py.
src_files.FlowAnimation.FlowAnimation.Abar |
Definition at line 493 of file FlowAnimation.py.
src_files.FlowAnimation.FlowAnimation.Abar_plot |
Definition at line 618 of file FlowAnimation.py.
src_files.FlowAnimation.FlowAnimation.abun |
Definition at line 526 of file FlowAnimation.py.
src_files.FlowAnimation.FlowAnimation.abun_cbar |
Definition at line 734 of file FlowAnimation.py.
src_files.FlowAnimation.FlowAnimation.abun_im |
Definition at line 544 of file FlowAnimation.py.
src_files.FlowAnimation.FlowAnimation.additional_plot |
Definition at line 140 of file FlowAnimation.py.
src_files.FlowAnimation.FlowAnimation.addMassBinLabels |
Definition at line 135 of file FlowAnimation.py.
src_files.FlowAnimation.FlowAnimation.alphaMassBins |
Definition at line 136 of file FlowAnimation.py.
src_files.FlowAnimation.FlowAnimation.ax |
Definition at line 306 of file FlowAnimation.py.
src_files.FlowAnimation.FlowAnimation.axAbund |
Definition at line 351 of file FlowAnimation.py.
src_files.FlowAnimation.FlowAnimation.axEnergy |
Definition at line 396 of file FlowAnimation.py.
src_files.FlowAnimation.FlowAnimation.axLogo |
Definition at line 448 of file FlowAnimation.py.
src_files.FlowAnimation.FlowAnimation.axMainout |
Definition at line 414 of file FlowAnimation.py.
src_files.FlowAnimation.FlowAnimation.axMainout_temp |
Definition at line 422 of file FlowAnimation.py.
src_files.FlowAnimation.FlowAnimation.axMainout_ye |
Definition at line 433 of file FlowAnimation.py.
src_files.FlowAnimation.FlowAnimation.axMassFrac |
Definition at line 362 of file FlowAnimation.py.
src_files.FlowAnimation.FlowAnimation.axTimescales |
Definition at line 372 of file FlowAnimation.py.
src_files.FlowAnimation.FlowAnimation.axTracked |
Definition at line 384 of file FlowAnimation.py.
src_files.FlowAnimation.FlowAnimation.cax |
Definition at line 721 of file FlowAnimation.py.
src_files.FlowAnimation.FlowAnimation.cmapNameFlow |
Definition at line 156 of file FlowAnimation.py.
src_files.FlowAnimation.FlowAnimation.cmapNameMassBins |
Definition at line 137 of file FlowAnimation.py.
src_files.FlowAnimation.FlowAnimation.cmapNameX |
Definition at line 155 of file FlowAnimation.py.
src_files.FlowAnimation.FlowAnimation.densityrange |
Definition at line 152 of file FlowAnimation.py.
src_files.FlowAnimation.FlowAnimation.energy_colors |
Definition at line 220 of file FlowAnimation.py.
src_files.FlowAnimation.FlowAnimation.energy_data |
Definition at line 474 of file FlowAnimation.py.
src_files.FlowAnimation.FlowAnimation.energy_entries |
Definition at line 221 of file FlowAnimation.py.
src_files.FlowAnimation.FlowAnimation.energy_labels |
Definition at line 222 of file FlowAnimation.py.
src_files.FlowAnimation.FlowAnimation.energy_lw |
Definition at line 224 of file FlowAnimation.py.
src_files.FlowAnimation.FlowAnimation.energy_plot |
Definition at line 668 of file FlowAnimation.py.
src_files.FlowAnimation.FlowAnimation.energy_time |
Definition at line 473 of file FlowAnimation.py.
src_files.FlowAnimation.FlowAnimation.energyrange |
Definition at line 141 of file FlowAnimation.py.
src_files.FlowAnimation.FlowAnimation.fig |
Definition at line 149 of file FlowAnimation.py.
src_files.FlowAnimation.FlowAnimation.fis_im_neg |
Definition at line 581 of file FlowAnimation.py.
src_files.FlowAnimation.FlowAnimation.fis_im_pos |
Definition at line 573 of file FlowAnimation.py.
src_files.FlowAnimation.FlowAnimation.fis_region |
Definition at line 529 of file FlowAnimation.py.
src_files.FlowAnimation.FlowAnimation.fission_minflow |
Definition at line 163 of file FlowAnimation.py.
src_files.FlowAnimation.FlowAnimation.flow |
Definition at line 535 of file FlowAnimation.py.
src_files.FlowAnimation.FlowAnimation.flow_adapt_prange |
Definition at line 162 of file FlowAnimation.py.
src_files.FlowAnimation.FlowAnimation.flow_adapt_width |
Definition at line 157 of file FlowAnimation.py.
src_files.FlowAnimation.FlowAnimation.flow_cbar |
Definition at line 741 of file FlowAnimation.py.
src_files.FlowAnimation.FlowAnimation.flow_dn |
Definition at line 809 of file FlowAnimation.py.
src_files.FlowAnimation.FlowAnimation.flow_dz |
Definition at line 534 of file FlowAnimation.py.
src_files.FlowAnimation.FlowAnimation.flow_group |
Definition at line 147 of file FlowAnimation.py.
src_files.FlowAnimation.FlowAnimation.flow_max |
Definition at line 161 of file FlowAnimation.py.
src_files.FlowAnimation.FlowAnimation.flow_max_history |
Definition at line 230 of file FlowAnimation.py.
src_files.FlowAnimation.FlowAnimation.flow_maxArrowWidth |
Definition at line 158 of file FlowAnimation.py.
src_files.FlowAnimation.FlowAnimation.flow_min |
Definition at line 160 of file FlowAnimation.py.
src_files.FlowAnimation.FlowAnimation.flow_minArrowWidth |
Definition at line 159 of file FlowAnimation.py.
src_files.FlowAnimation.FlowAnimation.flow_N |
Definition at line 807 of file FlowAnimation.py.
src_files.FlowAnimation.FlowAnimation.flow_norm |
Definition at line 228 of file FlowAnimation.py.
src_files.FlowAnimation.FlowAnimation.flow_patch |
Definition at line 568 of file FlowAnimation.py.
src_files.FlowAnimation.FlowAnimation.flow_prange |
Definition at line 166 of file FlowAnimation.py.
src_files.FlowAnimation.FlowAnimation.flow_Z |
Definition at line 533 of file FlowAnimation.py.
src_files.FlowAnimation.FlowAnimation.frame_dir |
Definition at line 120 of file FlowAnimation.py.
src_files.FlowAnimation.FlowAnimation.mafra_plot |
Definition at line 598 of file FlowAnimation.py.
src_files.FlowAnimation.FlowAnimation.mafrabin_plot |
Definition at line 602 of file FlowAnimation.py.
src_files.FlowAnimation.FlowAnimation.magic_excess |
Definition at line 211 of file FlowAnimation.py.
src_files.FlowAnimation.FlowAnimation.mainout_dens_plot |
Definition at line 622 of file FlowAnimation.py.
src_files.FlowAnimation.FlowAnimation.mainout_density |
Definition at line 486 of file FlowAnimation.py.
src_files.FlowAnimation.FlowAnimation.mainout_temp_plot |
Definition at line 623 of file FlowAnimation.py.
src_files.FlowAnimation.FlowAnimation.mainout_temperature |
Definition at line 487 of file FlowAnimation.py.
src_files.FlowAnimation.FlowAnimation.Mainout_text |
Definition at line 647 of file FlowAnimation.py.
src_files.FlowAnimation.FlowAnimation.mainout_time |
Definition at line 485 of file FlowAnimation.py.
src_files.FlowAnimation.FlowAnimation.Mainout_units |
Definition at line 648 of file FlowAnimation.py.
src_files.FlowAnimation.FlowAnimation.mainout_ye |
Definition at line 488 of file FlowAnimation.py.
src_files.FlowAnimation.FlowAnimation.mainout_ye_plot |
Definition at line 624 of file FlowAnimation.py.
src_files.FlowAnimation.FlowAnimation.massbin_colors |
Definition at line 506 of file FlowAnimation.py.
src_files.FlowAnimation.FlowAnimation.massBinLabels |
Definition at line 139 of file FlowAnimation.py.
src_files.FlowAnimation.FlowAnimation.massBins |
Definition at line 138 of file FlowAnimation.py.
src_files.FlowAnimation.FlowAnimation.N |
Definition at line 459 of file FlowAnimation.py.
src_files.FlowAnimation.FlowAnimation.n |
Definition at line 522 of file FlowAnimation.py.
src_files.FlowAnimation.FlowAnimation.n_timesteps |
Definition at line 463 of file FlowAnimation.py.
src_files.FlowAnimation.FlowAnimation.nMagic |
Definition at line 209 of file FlowAnimation.py.
src_files.FlowAnimation.FlowAnimation.path |
Definition at line 125 of file FlowAnimation.py.
src_files.FlowAnimation.FlowAnimation.plot_abar |
Definition at line 134 of file FlowAnimation.py.
src_files.FlowAnimation.FlowAnimation.plot_energy |
Definition at line 173 of file FlowAnimation.py.
src_files.FlowAnimation.FlowAnimation.plot_flow |
Definition at line 148 of file FlowAnimation.py.
src_files.FlowAnimation.FlowAnimation.plot_logo |
Definition at line 146 of file FlowAnimation.py.
src_files.FlowAnimation.FlowAnimation.plot_magic |
Definition at line 151 of file FlowAnimation.py.
src_files.FlowAnimation.FlowAnimation.plot_mainout |
Definition at line 145 of file FlowAnimation.py.
src_files.FlowAnimation.FlowAnimation.plot_timescales |
Definition at line 172 of file FlowAnimation.py.
src_files.FlowAnimation.FlowAnimation.plot_tracked |
Definition at line 174 of file FlowAnimation.py.
src_files.FlowAnimation.FlowAnimation.plotMassBins |
Definition at line 133 of file FlowAnimation.py.
src_files.FlowAnimation.FlowAnimation.quiver |
Definition at line 551 of file FlowAnimation.py.
src_files.FlowAnimation.FlowAnimation.separate_fission |
Definition at line 150 of file FlowAnimation.py.
src_files.FlowAnimation.FlowAnimation.stable_im |
Definition at line 591 of file FlowAnimation.py.
src_files.FlowAnimation.FlowAnimation.temperaturerange |
Definition at line 153 of file FlowAnimation.py.
src_files.FlowAnimation.FlowAnimation.time |
Definition at line 490 of file FlowAnimation.py.
src_files.FlowAnimation.FlowAnimation.timerange |
Definition at line 144 of file FlowAnimation.py.
src_files.FlowAnimation.FlowAnimation.timescale_colors |
Definition at line 214 of file FlowAnimation.py.
src_files.FlowAnimation.FlowAnimation.timescale_entries |
Definition at line 215 of file FlowAnimation.py.
src_files.FlowAnimation.FlowAnimation.timescale_labels |
Definition at line 216 of file FlowAnimation.py.
src_files.FlowAnimation.FlowAnimation.timescalerange |
Definition at line 143 of file FlowAnimation.py.
src_files.FlowAnimation.FlowAnimation.track_nuclei_data |
Definition at line 479 of file FlowAnimation.py.
src_files.FlowAnimation.FlowAnimation.track_nuclei_labels |
Definition at line 480 of file FlowAnimation.py.
src_files.FlowAnimation.FlowAnimation.tracked_plot |
Definition at line 675 of file FlowAnimation.py.
src_files.FlowAnimation.FlowAnimation.tracked_time |
Definition at line 478 of file FlowAnimation.py.
src_files.FlowAnimation.FlowAnimation.trackedrange |
Definition at line 142 of file FlowAnimation.py.
src_files.FlowAnimation.FlowAnimation.ts_data |
Definition at line 468 of file FlowAnimation.py.
src_files.FlowAnimation.FlowAnimation.ts_plot |
Definition at line 661 of file FlowAnimation.py.
src_files.FlowAnimation.FlowAnimation.ts_time |
Definition at line 467 of file FlowAnimation.py.
src_files.FlowAnimation.FlowAnimation.values |
Definition at line 511 of file FlowAnimation.py.
src_files.FlowAnimation.FlowAnimation.wreader |
Definition at line 191 of file FlowAnimation.py.
src_files.FlowAnimation.FlowAnimation.X |
Definition at line 461 of file FlowAnimation.py.
src_files.FlowAnimation.FlowAnimation.X_max |
Definition at line 132 of file FlowAnimation.py.
src_files.FlowAnimation.FlowAnimation.X_min |
Definition at line 131 of file FlowAnimation.py.
src_files.FlowAnimation.FlowAnimation.Xbins |
Definition at line 497 of file FlowAnimation.py.
src_files.FlowAnimation.FlowAnimation.Xsum |
Definition at line 495 of file FlowAnimation.py.
src_files.FlowAnimation.FlowAnimation.yerange |
Definition at line 154 of file FlowAnimation.py.
src_files.FlowAnimation.FlowAnimation.Z |
Definition at line 458 of file FlowAnimation.py.
src_files.FlowAnimation.FlowAnimation.z |
Definition at line 523 of file FlowAnimation.py.
src_files.FlowAnimation.FlowAnimation.Z_stab |
Definition at line 194 of file FlowAnimation.py.
src_files.FlowAnimation.FlowAnimation.zMagic |
Definition at line 210 of file FlowAnimation.py.