bin.class_files.winnet_class.winnet Class Reference

Public Member Functions

def __init__ (self, runpath)
 
def get_man (self)
 
def get_methods (self)
 
def read_run (self)
 
def read_template (self)
 
def read_seeds (self)
 
def get_seed_nuclei (self)
 
def get_ye_at_temp (self, temp)
 
def get_entr_at_temp (self, temp)
 
def get_density_at_temp (self, temp)
 
def get_yn_at_temp (self, temp)
 
def read_snapshots (self)
 
def read_finab (self, finab_name="finab.dat")
 
def read_timescales (self, subtract_first=True)
 
def read_mainout_fix (self)
 
def read_tracked_nuclei (self)
 
def read_mainout (self, subtract_first=False)
 
def read_engen (self)
 
def get_engen (self)
 
def get_tracked_nuclei_names (self)
 
def get_tracked_nuclei (self, name, massfraction=True)
 
def get_tracked_time (self)
 
def get_mainout_time (self)
 
def get_mainout_yn (self)
 
def get_mainout_yp (self)
 
def get_mainout_ya (self)
 
def get_mainout_yheavy (self)
 
def get_is_crashed (self)
 
def get_trajectory (self)
 
def get_trajectory_path (self)
 
def get_mainout (self)
 
def get_temperature (self)
 
def get_density (self)
 
def get_ye (self)
 
def get_radius (self)
 
def get_ylight (self)
 
def get_yheavy (self)
 
def get_zbar (self)
 
def get_abar (self)
 
def get_abar_at_time (self, t)
 
def get_entropy (self)
 
def get_timescales (self)
 
def get_final_Z_Y (self)
 
def get_final_Z_X (self)
 
def get_alpha_to_seed (self, temperature)
 
def get_n_to_seed (self, temperature)
 
def get_p_to_seed (self, temperature)
 
def get_final_abar (self)
 
def get_final_abar_heavy (self, min_mass)
 
def get_finab_nuclei (self)
 
def get_tracer_nr (self)
 
def plot_final_isotopes (self, figure=None, axlabel=True, lower_limit=1e-10, isotopes=None, isotope_label=True, ignore_isotope_names=None, text_clipping=True, ytext_pos_factor=1.2, xtext_pos_offset=-0.5, ytext_pos_offset=0.0, nuc_input=None, fig_is_ax=False, color_dict=None, **kwargs)
 
def get_final_A_X (self)
 
def get_final_Z_A_X (self)
 
def get_final_A_Y (self)
 
def get_final_Z_eps (self)
 
def get_time_evolution (self, nuc)
 
def set_finab_nuclei (self, nucleilist)
 
def plot_engen (self, figure=None, axlabel=True, fig_is_ax=False, **kwargs)
 
def plot_final_A_X (self, figure=None, axlabel=True, fig_is_ax=False, **kwargs)
 
def plot_final_Z_X (self, figure=None, axlabel=True, fig_is_ax=False, **kwargs)
 
def plot_final_A_Y (self, figure=None, axlabel=True, fig_is_ax=False, **kwargs)
 
def plot_final_Z_Y (self, figure=None, axlabel=True, fig_is_ax=False, **kwargs)
 
def plot_temperature (self, figure=None, axlabel=True, **kwargs)
 
def plot_density (self, figure=None, axlabel=True, **kwargs)
 
def plot_abar (self, figure=None, axlabel=True, **kwargs)
 
def plot_zbar (self, figure=None, axlabel=True, **kwargs)
 
def plot_radius (self, figure=None, axlabel=True, **kwargs)
 
def plot_trajectory (self, figure=None, **kwargs)
 
def plot_flow_range (self, start=1, end=0, outputpath='./', threads=5, silence=False, plotaxis=[0, 0, 0, 0], ilabel=1, imlabel=0, imagic=0, prange=4, iplot=2)
 
def plot_integrated_flow (self, figure=None, fig_is_ax=False, plotaxis=[0, 0, 0, 0], ilabel=1, imlabel=0, imagic=0, prange=4, iplot=2)
 
def plot_flow (self, flownumber, plotaxis=[0, 0, 0, 0], ilabel=1, imlabel=0, imagic=0, prange=4, iplot=2)
 
def plot_ye (self, figure=None, axlabel=True, **kwargs)
 
def plot_entropy (self, figure=None, axlabel=True, **kwargs)
 
def plot_timescales (self, figure=None, axlabel=True, **kwargs)
 
def plot_sunet (self, figure=None)
 
def plot_mainout (self, figure=None, **kwargs)
 
def animate_nuclear_chart (self, figure=None, plot_magic=True, time_title=True, min_X=1e-8, max_X=None, cmap=cm.viridis, element_labels=True, **kwargs)
 
def plot_nuclear_chart_at (self, time, figure=None, fig_is_ax=False, plot_magic=True, colorbar_inset=False, colorbar_position=[0.27, 0.8, 0.5, 0.025], colorbar=True, axes_label=True, time_title=True, min_X=1e-8, max_X=None, cmap=cm.viridis, element_labels=True, nuclei_linewidths=0.8, **kwargs)
 
def get_A_X_at_time (self, time, A_range=None)
 
def plot_A_X_time (self, figure=None, axlabel=True, **kwargs)
 

Private Member Functions

def __read_flow (self, filename)
 
def __get_at_temp (self, temp, y_array)
 
def __read_snapshot_time (self)
 
def __get_x_to_seed (self, temperature, x)
 

Private Attributes

 __path
 
 __elname
 
 __time
 
 __allmassfractions
 
 __neutrons
 
 __protons
 
 __finab_nuclei
 
 __finab_hydrogen
 
 __finab_mass
 
 __finab_protons
 
 __finab_neutrons
 
 __finab_ab
 
 __timescale_time
 
 __timescale_temp
 
 __timescale_tau_ga
 
 __timescale_tau_ag
 
 __timescale_tau_ng
 
 __timescale_tau_gn
 
 __timescale_tau_pg
 
 __timescale_tau_gp
 
 __timescale_tau_np
 
 __timescale_tau_pn
 
 __timescale_tau_an
 
 __timescale_tau_na
 
 __timescale_tau_beta
 
 __mainout_iteration
 
 __mainout_time
 
 __mainout_temp
 
 __mainout_dens
 
 __mainout_ye
 
 __mainout_rad
 
 __mainout_yn
 
 __mainout_yp
 
 __mainout_ya
 
 __mainout_ylight
 
 __mainout_yheavy
 
 __mainout_zbar
 
 __mainout_abar
 
 __mainout_entropy
 
 __track_time
 
 __track_Y
 
 __track_X
 
 __track_nuclei_names
 
 __seed_nuclei
 
 __param_parameter
 
 __param_data
 
 __hdf5_name
 
 __timescale_tau_bfiss
 
 __timescale_tau_ap
 
 __timescale_tau_pa
 
 __timescale_tau_alpha
 
 __timescale_tau_nfiss
 
 __timescale_tau_sfiss
 
 __engen_keywords
 
 __engen
 
 __helper_title
 
 __helper_stab
 
 __helper_pc
 
 __helper_line_segments
 

Detailed Description

Definition at line 41 of file winnet_class.py.

Constructor & Destructor Documentation

◆ __init__()

def bin.class_files.winnet_class.winnet.__init__ (   self,
  runpath 
)
Class for analyzing Winnet runs

Definition at line 43 of file winnet_class.py.

Member Function Documentation

◆ __get_at_temp()

def bin.class_files.winnet_class.winnet.__get_at_temp (   self,
  temp,
  y_array 
)
private
  Returns a given quantity at a given temperature.
  If the trajectory heats up several times between the temperature
  the last one is taken.

Definition at line 287 of file winnet_class.py.

◆ __get_x_to_seed()

def bin.class_files.winnet_class.winnet.__get_x_to_seed (   self,
  temperature,
  x 
)
private
  Helper function to calculate Y(neutron) Y(proton) Y(alpha) to seed ratio without making too many repetitions
  Input
    Temperature - temperature in GK for which the ratio is calculated
    x           - Y(n), Y(p) or Y(alpha) of the mainout
  Note: read_mainout should get called first

Definition at line 885 of file winnet_class.py.

Here is the call graph for this function:

◆ __read_flow()

def bin.class_files.winnet_class.winnet.__read_flow (   self,
  filename 
)
private
  Reads the flow of a given file (only one flow file)
  Reading all files would result in a too high memory consumption.

  Originally from Christian Winteler and Urs Frischknecht.
  Edited by Moritz Reichert (2.4.2017)

  INPUT: flow.dat file name including path
  OUTPUT: dictionary,
  for example ff['time'] will contain the time

  example calls:
  flux=fdic.ff('../m25z01/LOGS/flow.dat')
  then flux['time'] contains the time where the fluxes were calculated

Definition at line 144 of file winnet_class.py.

◆ __read_snapshot_time()

def bin.class_files.winnet_class.winnet.__read_snapshot_time (   self)
private
  Read only the time from the snapshot files

Definition at line 391 of file winnet_class.py.

◆ animate_nuclear_chart()

def bin.class_files.winnet_class.winnet.animate_nuclear_chart (   self,
  figure = None,
  plot_magic = True,
  time_title = True,
  min_X = 1e-8,
  max_X = None,
  cmap = cm.viridis,
  element_labels = True,
**  kwargs 
)
  Make an animation of the mass fractions in the nuclear chart

Definition at line 2531 of file winnet_class.py.

Here is the call graph for this function:

◆ get_A_X_at_time()

def bin.class_files.winnet_class.winnet.get_A_X_at_time (   self,
  time,
  A_range = None 
)
  Return the abundance at a given time.
  Output is:
    Mass number, Mass fraction, time of the nearest snapshot

Definition at line 2898 of file winnet_class.py.

◆ get_abar()

def bin.class_files.winnet_class.winnet.get_abar (   self)
Get average mass number from mainout.dat, it also returns the time

Definition at line 770 of file winnet_class.py.

◆ get_abar_at_time()

def bin.class_files.winnet_class.winnet.get_abar_at_time (   self,
  t 
)
Get average mass number from mainout.dat at time t

Definition at line 780 of file winnet_class.py.

Here is the call graph for this function:

◆ get_alpha_to_seed()

def bin.class_files.winnet_class.winnet.get_alpha_to_seed (   self,
  temperature 
)
  Get the alpha to seed ratio at given temperature [GK]
  Note: read_mainout has get called first

Definition at line 926 of file winnet_class.py.

Here is the call graph for this function:

◆ get_density()

def bin.class_files.winnet_class.winnet.get_density (   self)
Get the density [g/ccm] from mainout.dat, it also returns the time

Definition at line 710 of file winnet_class.py.

◆ get_density_at_temp()

def bin.class_files.winnet_class.winnet.get_density_at_temp (   self,
  temp 
)
  Returns the entropy at a given temperature.
  If the trajectory heats up several times between the temperature
  the last one is taken

Definition at line 330 of file winnet_class.py.

Here is the call graph for this function:

◆ get_engen()

def bin.class_files.winnet_class.winnet.get_engen (   self)
  Return the generated energy

Definition at line 579 of file winnet_class.py.

◆ get_entr_at_temp()

def bin.class_files.winnet_class.winnet.get_entr_at_temp (   self,
  temp 
)
  Returns the entropy at a given temperature.
  If the trajectory heats up several times between the temperature
  the last one is taken

Definition at line 321 of file winnet_class.py.

Here is the call graph for this function:

◆ get_entropy()

def bin.class_files.winnet_class.winnet.get_entropy (   self)
Get entropy [kB/baryon] from mainout.dat, it also returns the time

Definition at line 790 of file winnet_class.py.

◆ get_finab_nuclei()

def bin.class_files.winnet_class.winnet.get_finab_nuclei (   self)
  Returns a list containing the nuclei contained in finab (list of instance nucleus)

Definition at line 980 of file winnet_class.py.

◆ get_final_A_X()

def bin.class_files.winnet_class.winnet.get_final_A_X (   self)
  Get mass fractions over proton number
  Note: read_finab has to be called in advance

Definition at line 1110 of file winnet_class.py.

Here is the call graph for this function:

◆ get_final_A_Y()

def bin.class_files.winnet_class.winnet.get_final_A_Y (   self)
  Get Abundance over proton number
  Note: read_finab has to be called in advance

Definition at line 1182 of file winnet_class.py.

Here is the call graph for this function:

◆ get_final_abar()

def bin.class_files.winnet_class.winnet.get_final_abar (   self)
  Get the final abar from finab.dat. Therefore one has to call read_finab first.

Definition at line 950 of file winnet_class.py.

◆ get_final_abar_heavy()

def bin.class_files.winnet_class.winnet.get_final_abar_heavy (   self,
  min_mass 
)
  Get the final abar calculated for A>min_mass from finab.dat. Therefore one has to call read_finab first.

Definition at line 958 of file winnet_class.py.

◆ get_final_Z_A_X()

def bin.class_files.winnet_class.winnet.get_final_Z_A_X (   self)
  Get mass fractions over proton number
  Note: read_finab has to be called in advance

Definition at line 1145 of file winnet_class.py.

Here is the call graph for this function:

◆ get_final_Z_eps()

def bin.class_files.winnet_class.winnet.get_final_Z_eps (   self)
  Get abundances over proton number
  Note: read_finab has to be called in advance

Definition at line 1219 of file winnet_class.py.

◆ get_final_Z_X()

def bin.class_files.winnet_class.winnet.get_final_Z_X (   self)
  Get mass fractions over proton number
  Note: read_finab has to be called in advance

Definition at line 849 of file winnet_class.py.

Here is the call graph for this function:

◆ get_final_Z_Y()

def bin.class_files.winnet_class.winnet.get_final_Z_Y (   self)
  Get abundances over proton number
  Note: read_finab has to be called in advance

Definition at line 813 of file winnet_class.py.

Here is the call graph for this function:

◆ get_is_crashed()

def bin.class_files.winnet_class.winnet.get_is_crashed (   self)
  Is the run crashed?

Definition at line 648 of file winnet_class.py.

◆ get_mainout()

def bin.class_files.winnet_class.winnet.get_mainout (   self)
  Returns the data from mainout.dat
  Output is:
  iteration, time, temperature, density, Ye, Radius, Yn, Yp, Y_alpha, Y_light, Y_heavy, Zbar, Abar, Entropy

Definition at line 691 of file winnet_class.py.

◆ get_mainout_time()

def bin.class_files.winnet_class.winnet.get_mainout_time (   self)
  Get the time, contained in mainout.dat

Definition at line 617 of file winnet_class.py.

◆ get_mainout_ya()

def bin.class_files.winnet_class.winnet.get_mainout_ya (   self)
  Get the alpha abundance, contained in mainout.dat

Definition at line 636 of file winnet_class.py.

◆ get_mainout_yheavy()

def bin.class_files.winnet_class.winnet.get_mainout_yheavy (   self)
  Get the yheavy abundance, contained in mainout.dat

Definition at line 642 of file winnet_class.py.

◆ get_mainout_yn()

def bin.class_files.winnet_class.winnet.get_mainout_yn (   self)
  Get the neutron abundance, contained in mainout.dat

Definition at line 624 of file winnet_class.py.

◆ get_mainout_yp()

def bin.class_files.winnet_class.winnet.get_mainout_yp (   self)
  Get the proton abundance, contained in mainout.dat

Definition at line 630 of file winnet_class.py.

◆ get_man()

def bin.class_files.winnet_class.winnet.get_man (   self)
  Returns a string with a manual

Definition at line 128 of file winnet_class.py.

◆ get_methods()

def bin.class_files.winnet_class.winnet.get_methods (   self)
Returns a list of all methods of the class

Definition at line 137 of file winnet_class.py.

◆ get_n_to_seed()

def bin.class_files.winnet_class.winnet.get_n_to_seed (   self,
  temperature 
)
  Get the alpha to seed ratio at given temperature [GK]
  Note: read_mainout has get called first

Definition at line 934 of file winnet_class.py.

Here is the call graph for this function:

◆ get_p_to_seed()

def bin.class_files.winnet_class.winnet.get_p_to_seed (   self,
  temperature 
)
  Get the alpha to seed ratio at given temperature [GK]
  Note: read_mainout has get called first

Definition at line 942 of file winnet_class.py.

Here is the call graph for this function:

◆ get_radius()

def bin.class_files.winnet_class.winnet.get_radius (   self)
Get the radius [km] from mainout.dat, it also returns the time

Definition at line 730 of file winnet_class.py.

◆ get_seed_nuclei()

def bin.class_files.winnet_class.winnet.get_seed_nuclei (   self)
  Returns the seed nuclei as a list of the instance nuclei

Definition at line 281 of file winnet_class.py.

◆ get_temperature()

def bin.class_files.winnet_class.winnet.get_temperature (   self)
Get the temperature [GK] from mainout.dat, it also returns the time

Definition at line 700 of file winnet_class.py.

◆ get_time_evolution()

def bin.class_files.winnet_class.winnet.get_time_evolution (   self,
  nuc 
)
  Return time and mass fraction for a given nucleus.
  Note: read_snapshots has to be called in advance!

Definition at line 1238 of file winnet_class.py.

◆ get_timescales()

def bin.class_files.winnet_class.winnet.get_timescales (   self)
Returns the timescales of the run
Ouput is:
    Time, Temperature[GK], ng, gn, pg, gp, np, pn, an, na, beta (all [1/s])

Definition at line 800 of file winnet_class.py.

◆ get_tracer_nr()

def bin.class_files.winnet_class.winnet.get_tracer_nr (   self)
  Returns the tracer number of the tracer of the current instance. If there is no digit in the foldername of the run, the return value is -1.
  e.g. runpath is abc/dfg/tracer_4523.dat -> return value is 4523

Definition at line 986 of file winnet_class.py.

◆ get_tracked_nuclei()

def bin.class_files.winnet_class.winnet.get_tracked_nuclei (   self,
  name,
  massfraction = True 
)
  Get the abundance of a nuclei that was tracked.
  Input:
    name         - Name of the nucleus (e.g. ti44)
    massfraction - Return mass fractions or abundances?

Definition at line 588 of file winnet_class.py.

◆ get_tracked_nuclei_names()

def bin.class_files.winnet_class.winnet.get_tracked_nuclei_names (   self)

Definition at line 585 of file winnet_class.py.

◆ get_tracked_time()

def bin.class_files.winnet_class.winnet.get_tracked_time (   self)
  Get the time, contained in the file tracked_nuclei.dat

Definition at line 610 of file winnet_class.py.

◆ get_trajectory()

def bin.class_files.winnet_class.winnet.get_trajectory (   self)
  Get all data from the trajectory
  Output is:
    time[s], radius[cm], dens[g/ccm], temp[GK], Ye, entr[kb/nucleon]

Definition at line 658 of file winnet_class.py.

◆ get_trajectory_path()

def bin.class_files.winnet_class.winnet.get_trajectory_path (   self)
  Get all data from the trajectory
  Output is the path to the trajectory

Definition at line 675 of file winnet_class.py.

◆ get_ye()

def bin.class_files.winnet_class.winnet.get_ye (   self)
Get the electron fraction from mainout.dat, it also returns the time

Definition at line 720 of file winnet_class.py.

◆ get_ye_at_temp()

def bin.class_files.winnet_class.winnet.get_ye_at_temp (   self,
  temp 
)
  Returns the electron fraction at a given temperature.
  If the trajectory heats up several times between the temperature
  the last one is taken

Definition at line 312 of file winnet_class.py.

Here is the call graph for this function:

◆ get_yheavy()

def bin.class_files.winnet_class.winnet.get_yheavy (   self)
Get heavier elements (A>4) from mainout.dat, it also returns the time

Definition at line 750 of file winnet_class.py.

◆ get_ylight()

def bin.class_files.winnet_class.winnet.get_ylight (   self)
Get lighter elements (A<=4) from mainout.dat, it also returns the time

Definition at line 740 of file winnet_class.py.

◆ get_yn_at_temp()

def bin.class_files.winnet_class.winnet.get_yn_at_temp (   self,
  temp 
)
  Returns the entropy at a given temperature.
  If the trajectory heats up several times between the temperature
  the last one is taken

Definition at line 339 of file winnet_class.py.

Here is the call graph for this function:

◆ get_zbar()

def bin.class_files.winnet_class.winnet.get_zbar (   self)
Get average proton number from mainout.dat, it also returns the time

Definition at line 760 of file winnet_class.py.

◆ plot_A_X_time()

def bin.class_files.winnet_class.winnet.plot_A_X_time (   self,
  figure = None,
  axlabel = True,
**  kwargs 
)
  Plot massfractions over mass number and time in a 3D plot. This plot is ugly somehow!
  read_snapshots has to be called first!

Definition at line 2943 of file winnet_class.py.

Here is the call graph for this function:

◆ plot_abar()

def bin.class_files.winnet_class.winnet.plot_abar (   self,
  figure = None,
  axlabel = True,
**  kwargs 
)
Plot average mass number
Returns a figure object

Definition at line 1514 of file winnet_class.py.

Here is the call graph for this function:

◆ plot_density()

def bin.class_files.winnet_class.winnet.plot_density (   self,
  figure = None,
  axlabel = True,
**  kwargs 
)
Plot the density [g/ccm]
Returns a figure object

Definition at line 1484 of file winnet_class.py.

Here is the call graph for this function:

◆ plot_engen()

def bin.class_files.winnet_class.winnet.plot_engen (   self,
  figure = None,
  axlabel = True,
  fig_is_ax = False,
**  kwargs 
)
Plot the final massfraction over mass number
Returns a figure object

Definition at line 1292 of file winnet_class.py.

◆ plot_entropy()

def bin.class_files.winnet_class.winnet.plot_entropy (   self,
  figure = None,
  axlabel = True,
**  kwargs 
)
Plot the entropy [kb/nucleon]
Returns a figure object

Definition at line 2230 of file winnet_class.py.

Here is the call graph for this function:

◆ plot_final_A_X()

def bin.class_files.winnet_class.winnet.plot_final_A_X (   self,
  figure = None,
  axlabel = True,
  fig_is_ax = False,
**  kwargs 
)
Plot the final massfraction over mass number
Returns a figure object

Definition at line 1322 of file winnet_class.py.

Here is the call graph for this function:

◆ plot_final_A_Y()

def bin.class_files.winnet_class.winnet.plot_final_A_Y (   self,
  figure = None,
  axlabel = True,
  fig_is_ax = False,
**  kwargs 
)
Plot the final abundances over mass number
Returns a figure object

Definition at line 1387 of file winnet_class.py.

Here is the call graph for this function:

◆ plot_final_isotopes()

def bin.class_files.winnet_class.winnet.plot_final_isotopes (   self,
  figure = None,
  axlabel = True,
  lower_limit = 1e-10,
  isotopes = None,
  isotope_label = True,
  ignore_isotope_names = None,
  text_clipping = True,
  ytext_pos_factor = 1.2,
  xtext_pos_offset = -0.5,
  ytext_pos_offset = 0.0,
  nuc_input = None,
  fig_is_ax = False,
  color_dict = None,
**  kwargs 
)
  Plot the massfraction of the final isotopes over mass number.
  Input:
    lower_limit             : lowest massfraction that will be plotted (default 10^-10)
    isotopes                : isotopes to be plotted. If none (default), all isotopes of finab will get plotted. Type is list that contains the Z number
    isotope_label           : Plot the labels of the isotopes?
    ignore_isotope_names    : which name label should be ignored? (list contains Z number)
    text_clipping           : Text clipping yes or no? ( Should the text shown outside the plotting area?
    ytext_pos_factor        : offset factor for the y position of the labels. Only has an effect when isotope_label is true
    xtext_pos_offset        : offset for the x position of the labels. Only has an effect when isotope_label is true
    nuc_input               : Input of nuclei. If None is given, finab nuclei are used. (instance of list of nucleus)
    fig_is_ax               : parameter figure either a figure object or an axes object?
    color_dict              : Dictionary with atomic numbers and colors.

Definition at line 1005 of file winnet_class.py.

◆ plot_final_Z_X()

def bin.class_files.winnet_class.winnet.plot_final_Z_X (   self,
  figure = None,
  axlabel = True,
  fig_is_ax = False,
**  kwargs 
)
Plot the final massfraction over mass number
Returns a figure object

Definition at line 1354 of file winnet_class.py.

Here is the call graph for this function:

◆ plot_final_Z_Y()

def bin.class_files.winnet_class.winnet.plot_final_Z_Y (   self,
  figure = None,
  axlabel = True,
  fig_is_ax = False,
**  kwargs 
)
Plot the final abundances over mass number
Returns a figure object

Definition at line 1420 of file winnet_class.py.

Here is the call graph for this function:

◆ plot_flow()

def bin.class_files.winnet_class.winnet.plot_flow (   self,
  flownumber,
  plotaxis = [0,0,0,0],
  ilabel = 1,
  imlabel = 0,
  imagic = 0,
  prange = 4,
  iplot = 2 
)
  Plot a flow with a given flownumber.

  Originally from Christian Winteler and Urs Frischknecht
  Edited by Moritz Reichert (2.4.2017)

  Plotting options are:
  plotaxis  :   Set axis limit: If default [0,0,0,0] the complete range in (N,Z) will be plotted, i.e. all isotopes, else specify the limits in plotaxis = [xmin,xmax,ymin,ymax]
  ilabel    :   elemental labels off/on [0/1]
  imlabel   :   label for isotopic masses off/on [0/1]
  prange    :   flow is plotted over "prange" dex. If flow < maxflow-prange it is not plotted
  iplot     :   plot handler abundance/flux/abundance+flux plot [0/1/2]

Definition at line 1933 of file winnet_class.py.

Here is the call graph for this function:

◆ plot_flow_range()

def bin.class_files.winnet_class.winnet.plot_flow_range (   self,
  start = 1,
  end = 0,
  outputpath = './',
  threads = 5,
  silence = False,
  plotaxis = [0,0,0,0],
  ilabel = 1,
  imlabel = 0,
  imagic = 0,
  prange = 4,
  iplot = 2 
)
  Plot all flow files in a range from start to end. If end is 0 (default) all flow files will get plotted.
  The files will added to outputpath.
  This routine is also parallized, threads determines the number of cores used.
  Silence: should the routine print something?

Definition at line 1657 of file winnet_class.py.

Here is the call graph for this function:

◆ plot_integrated_flow()

def bin.class_files.winnet_class.winnet.plot_integrated_flow (   self,
  figure = None,
  fig_is_ax = False,
  plotaxis = [0,0,0,0],
  ilabel = 1,
  imlabel = 0,
  imagic = 0,
  prange = 4,
  iplot = 2 
)
 Plot flows over all timesteps

Definition at line 1677 of file winnet_class.py.

Here is the call graph for this function:

◆ plot_mainout()

def bin.class_files.winnet_class.winnet.plot_mainout (   self,
  figure = None,
**  kwargs 
)
Plot all information that are contained in mainout.dat
    iteration, time, temperature, density, Ye, Radius, Yn, Yp, Y_alpha, Y_light, Y_heavy, Zbar, Abar, Entropy

Definition at line 2442 of file winnet_class.py.

Here is the call graph for this function:

◆ plot_nuclear_chart_at()

def bin.class_files.winnet_class.winnet.plot_nuclear_chart_at (   self,
  time,
  figure = None,
  fig_is_ax = False,
  plot_magic = True,
  colorbar_inset = False,
  colorbar_position = [0.27, 0.8, 0.5, 0.025],
  colorbar = True,
  axes_label = True,
  time_title = True,
  min_X = 1e-8,
  max_X = None,
  cmap = cm.viridis,
  element_labels = True,
  nuclei_linewidths = 0.8,
**  kwargs 
)
    Plot the abundances into the nuclear chart at a given time

Definition at line 2720 of file winnet_class.py.

Here is the call graph for this function:

◆ plot_radius()

def bin.class_files.winnet_class.winnet.plot_radius (   self,
  figure = None,
  axlabel = True,
**  kwargs 
)
Plot the radius
Returns a figure object

Definition at line 1572 of file winnet_class.py.

Here is the call graph for this function:

◆ plot_sunet()

def bin.class_files.winnet_class.winnet.plot_sunet (   self,
  figure = None 
)
  Plot the contained nuclei of the run. The information is extracted from param.out

Definition at line 2299 of file winnet_class.py.

◆ plot_temperature()

def bin.class_files.winnet_class.winnet.plot_temperature (   self,
  figure = None,
  axlabel = True,
**  kwargs 
)
Plot the temperature [GK]
Returns a figure object

Definition at line 1454 of file winnet_class.py.

Here is the call graph for this function:

◆ plot_timescales()

def bin.class_files.winnet_class.winnet.plot_timescales (   self,
  figure = None,
  axlabel = True,
**  kwargs 
)
Plot the timescales for a Winnet run (ng, gn, pg, gp, np, pn, an, na, beta (all [1/s]))

Definition at line 2259 of file winnet_class.py.

Here is the call graph for this function:

◆ plot_trajectory()

def bin.class_files.winnet_class.winnet.plot_trajectory (   self,
  figure = None,
**  kwargs 
)
Plot all quantities of the trajectory from trajectory file

Definition at line 1601 of file winnet_class.py.

Here is the call graph for this function:

◆ plot_ye()

def bin.class_files.winnet_class.winnet.plot_ye (   self,
  figure = None,
  axlabel = True,
**  kwargs 
)
Plot average proton number
Returns a figure object

Definition at line 2201 of file winnet_class.py.

Here is the call graph for this function:

◆ plot_zbar()

def bin.class_files.winnet_class.winnet.plot_zbar (   self,
  figure = None,
  axlabel = True,
**  kwargs 
)
Plot average proton number
Returns a figure object

Definition at line 1543 of file winnet_class.py.

Here is the call graph for this function:

◆ read_engen()

def bin.class_files.winnet_class.winnet.read_engen (   self)
  Read the generated energy

Definition at line 563 of file winnet_class.py.

◆ read_finab()

def bin.class_files.winnet_class.winnet.read_finab (   self,
  finab_name = "finab.dat" 
)
  Reads the file finab.dat in the run folder

Definition at line 414 of file winnet_class.py.

Here is the call graph for this function:

◆ read_mainout()

def bin.class_files.winnet_class.winnet.read_mainout (   self,
  subtract_first = False 
)
  Read the mainout from a Winnet calculation

Definition at line 550 of file winnet_class.py.

◆ read_mainout_fix()

def bin.class_files.winnet_class.winnet.read_mainout_fix (   self)
  Read the mainout with numbers like 1.8-392

Definition at line 478 of file winnet_class.py.

◆ read_run()

def bin.class_files.winnet_class.winnet.read_run (   self)
  Read a whole run with snapshots and so on.

Definition at line 218 of file winnet_class.py.

Here is the call graph for this function:

◆ read_seeds()

def bin.class_files.winnet_class.winnet.read_seeds (   self)
  Read the seed composition of the run. Stores an array of nuclei class. If the seed file was not found, it stores the value np.nan

Definition at line 246 of file winnet_class.py.

Here is the call graph for this function:

◆ read_snapshots()

def bin.class_files.winnet_class.winnet.read_snapshots (   self)
  Reads the snapshots from @runpath@/snaps/

Definition at line 348 of file winnet_class.py.

◆ read_template()

def bin.class_files.winnet_class.winnet.read_template (   self)
  Read the templatefile or the run (param.out)

Definition at line 228 of file winnet_class.py.

◆ read_timescales()

def bin.class_files.winnet_class.winnet.read_timescales (   self,
  subtract_first = True 
)
  Read the timescales from a Winnet calculation

Definition at line 433 of file winnet_class.py.

◆ read_tracked_nuclei()

def bin.class_files.winnet_class.winnet.read_tracked_nuclei (   self)
Read the nuclei data contained in the file tracked_nuclei. This file is helpfull, when you dont want to look at the full output.

Definition at line 520 of file winnet_class.py.

◆ set_finab_nuclei()

def bin.class_files.winnet_class.winnet.set_finab_nuclei (   self,
  nucleilist 
)
  Set the final abundances with a list of nuclei
  Input:
    nucleilist  - List of instance of nuclei

Definition at line 1268 of file winnet_class.py.

Here is the call graph for this function:

Member Data Documentation

◆ __allmassfractions

bin.class_files.winnet_class.winnet.__allmassfractions
private

Definition at line 63 of file winnet_class.py.

◆ __elname

bin.class_files.winnet_class.winnet.__elname
private

Definition at line 54 of file winnet_class.py.

◆ __engen

bin.class_files.winnet_class.winnet.__engen
private

Definition at line 575 of file winnet_class.py.

◆ __engen_keywords

bin.class_files.winnet_class.winnet.__engen_keywords
private

Definition at line 574 of file winnet_class.py.

◆ __finab_ab

bin.class_files.winnet_class.winnet.__finab_ab
private

Definition at line 74 of file winnet_class.py.

◆ __finab_hydrogen

bin.class_files.winnet_class.winnet.__finab_hydrogen
private

Definition at line 70 of file winnet_class.py.

◆ __finab_mass

bin.class_files.winnet_class.winnet.__finab_mass
private

Definition at line 71 of file winnet_class.py.

◆ __finab_neutrons

bin.class_files.winnet_class.winnet.__finab_neutrons
private

Definition at line 73 of file winnet_class.py.

◆ __finab_nuclei

bin.class_files.winnet_class.winnet.__finab_nuclei
private

Definition at line 69 of file winnet_class.py.

◆ __finab_protons

bin.class_files.winnet_class.winnet.__finab_protons
private

Definition at line 72 of file winnet_class.py.

◆ __hdf5_name

bin.class_files.winnet_class.winnet.__hdf5_name
private

Definition at line 125 of file winnet_class.py.

◆ __helper_line_segments

bin.class_files.winnet_class.winnet.__helper_line_segments
private

Definition at line 2659 of file winnet_class.py.

◆ __helper_pc

bin.class_files.winnet_class.winnet.__helper_pc
private

Definition at line 2604 of file winnet_class.py.

◆ __helper_stab

bin.class_files.winnet_class.winnet.__helper_stab
private

Definition at line 2594 of file winnet_class.py.

◆ __helper_title

bin.class_files.winnet_class.winnet.__helper_title
private

Definition at line 2558 of file winnet_class.py.

◆ __mainout_abar

bin.class_files.winnet_class.winnet.__mainout_abar
private

Definition at line 107 of file winnet_class.py.

◆ __mainout_dens

bin.class_files.winnet_class.winnet.__mainout_dens
private

Definition at line 98 of file winnet_class.py.

◆ __mainout_entropy

bin.class_files.winnet_class.winnet.__mainout_entropy
private

Definition at line 108 of file winnet_class.py.

◆ __mainout_iteration

bin.class_files.winnet_class.winnet.__mainout_iteration
private

Definition at line 95 of file winnet_class.py.

◆ __mainout_rad

bin.class_files.winnet_class.winnet.__mainout_rad
private

Definition at line 100 of file winnet_class.py.

◆ __mainout_temp

bin.class_files.winnet_class.winnet.__mainout_temp
private

Definition at line 97 of file winnet_class.py.

◆ __mainout_time

bin.class_files.winnet_class.winnet.__mainout_time
private

Definition at line 96 of file winnet_class.py.

◆ __mainout_ya

bin.class_files.winnet_class.winnet.__mainout_ya
private

Definition at line 103 of file winnet_class.py.

◆ __mainout_ye

bin.class_files.winnet_class.winnet.__mainout_ye
private

Definition at line 99 of file winnet_class.py.

◆ __mainout_yheavy

bin.class_files.winnet_class.winnet.__mainout_yheavy
private

Definition at line 105 of file winnet_class.py.

◆ __mainout_ylight

bin.class_files.winnet_class.winnet.__mainout_ylight
private

Definition at line 104 of file winnet_class.py.

◆ __mainout_yn

bin.class_files.winnet_class.winnet.__mainout_yn
private

Definition at line 101 of file winnet_class.py.

◆ __mainout_yp

bin.class_files.winnet_class.winnet.__mainout_yp
private

Definition at line 102 of file winnet_class.py.

◆ __mainout_zbar

bin.class_files.winnet_class.winnet.__mainout_zbar
private

Definition at line 106 of file winnet_class.py.

◆ __neutrons

bin.class_files.winnet_class.winnet.__neutrons
private

Definition at line 64 of file winnet_class.py.

◆ __param_data

bin.class_files.winnet_class.winnet.__param_data
private

Definition at line 122 of file winnet_class.py.

◆ __param_parameter

bin.class_files.winnet_class.winnet.__param_parameter
private

Definition at line 121 of file winnet_class.py.

◆ __path

bin.class_files.winnet_class.winnet.__path
private

Definition at line 51 of file winnet_class.py.

◆ __protons

bin.class_files.winnet_class.winnet.__protons
private

Definition at line 65 of file winnet_class.py.

◆ __seed_nuclei

bin.class_files.winnet_class.winnet.__seed_nuclei
private

Definition at line 118 of file winnet_class.py.

◆ __time

bin.class_files.winnet_class.winnet.__time
private

Definition at line 62 of file winnet_class.py.

◆ __timescale_tau_ag

bin.class_files.winnet_class.winnet.__timescale_tau_ag
private

Definition at line 82 of file winnet_class.py.

◆ __timescale_tau_alpha

bin.class_files.winnet_class.winnet.__timescale_tau_alpha
private

Definition at line 464 of file winnet_class.py.

◆ __timescale_tau_an

bin.class_files.winnet_class.winnet.__timescale_tau_an
private

Definition at line 89 of file winnet_class.py.

◆ __timescale_tau_ap

bin.class_files.winnet_class.winnet.__timescale_tau_ap
private

Definition at line 461 of file winnet_class.py.

◆ __timescale_tau_beta

bin.class_files.winnet_class.winnet.__timescale_tau_beta
private

Definition at line 91 of file winnet_class.py.

◆ __timescale_tau_bfiss

bin.class_files.winnet_class.winnet.__timescale_tau_bfiss
private

Definition at line 443 of file winnet_class.py.

◆ __timescale_tau_ga

bin.class_files.winnet_class.winnet.__timescale_tau_ga
private

Definition at line 81 of file winnet_class.py.

◆ __timescale_tau_gn

bin.class_files.winnet_class.winnet.__timescale_tau_gn
private

Definition at line 84 of file winnet_class.py.

◆ __timescale_tau_gp

bin.class_files.winnet_class.winnet.__timescale_tau_gp
private

Definition at line 86 of file winnet_class.py.

◆ __timescale_tau_na

bin.class_files.winnet_class.winnet.__timescale_tau_na
private

Definition at line 90 of file winnet_class.py.

◆ __timescale_tau_nfiss

bin.class_files.winnet_class.winnet.__timescale_tau_nfiss
private

Definition at line 465 of file winnet_class.py.

◆ __timescale_tau_ng

bin.class_files.winnet_class.winnet.__timescale_tau_ng
private

Definition at line 83 of file winnet_class.py.

◆ __timescale_tau_np

bin.class_files.winnet_class.winnet.__timescale_tau_np
private

Definition at line 87 of file winnet_class.py.

◆ __timescale_tau_pa

bin.class_files.winnet_class.winnet.__timescale_tau_pa
private

Definition at line 462 of file winnet_class.py.

◆ __timescale_tau_pg

bin.class_files.winnet_class.winnet.__timescale_tau_pg
private

Definition at line 85 of file winnet_class.py.

◆ __timescale_tau_pn

bin.class_files.winnet_class.winnet.__timescale_tau_pn
private

Definition at line 88 of file winnet_class.py.

◆ __timescale_tau_sfiss

bin.class_files.winnet_class.winnet.__timescale_tau_sfiss
private

Definition at line 466 of file winnet_class.py.

◆ __timescale_temp

bin.class_files.winnet_class.winnet.__timescale_temp
private

Definition at line 80 of file winnet_class.py.

◆ __timescale_time

bin.class_files.winnet_class.winnet.__timescale_time
private

Definition at line 79 of file winnet_class.py.

◆ __track_nuclei_names

bin.class_files.winnet_class.winnet.__track_nuclei_names
private

Definition at line 115 of file winnet_class.py.

◆ __track_time

bin.class_files.winnet_class.winnet.__track_time
private

Definition at line 112 of file winnet_class.py.

◆ __track_X

bin.class_files.winnet_class.winnet.__track_X
private

Definition at line 114 of file winnet_class.py.

◆ __track_Y

bin.class_files.winnet_class.winnet.__track_Y
private

Definition at line 113 of file winnet_class.py.