|
| | _coil_aturn_clim (tt) |
| | Return (min, max) colormap limits in A-turns from _coil_bounds (A/turn * turns).
|
| | _coil_net_turns (tt, cname) |
| | Return net_turns for a coil set name, defaulting to 1.
|
| | _draw_equil_from_dir (ax, tt, loop, idx, t_now, equil_dir) |
| | Draw equilibrium from pre-rendered PNG in equil_dir.
|
| | _draw_info (ax, tt, loop, run_name) |
| | _draw_profiles_movie (axes, tt, idx) |
| | Draw the 6 radial profile panels for a movie frame.
|
| | _draw_scalars_movie (axes, tt, times, t_now, flux_con_tm, flux_con_tx) |
| | Draw the 6 scalar time-series panels for a movie frame.
|
| | _embed_video_jupyter (video_path) |
| | Embed an MP4 video in a Jupyter notebook.
|
| | _encode_video_from_dir (frame_dir, out_path, fps=2) |
| | Encode frames from a directory into an MP4 file.
|
| | _in_jupyter () |
| | Return True if running inside a Jupyter notebook.
|
| | _make_temp_dir_viz () |
| | Create temp directory for visualization temporary files: RAM-backed on Linux, OS default elsewhere.
|
| | _prof (state_dict, idx) |
| | Return (x, y) arrays from a profile state dict, or (None, None).
|
| | _render_equil_frames (tt, loop, equil_dir) |
| | Render equilibrium plots from stored equilibrium snapshots to PNG files.
|
| | _render_frame (tt, loop, idx, t_now, times, flux_con_tm, flux_con_tx, out_path, run_name, equil_dir) |
| | Create a single movie frame.
|
| | _save_or_display (fig, save_path=None, display=True) |
| | Save figure and/or display it, then close.
|
| | _style (ax) |
| | Apply consistent styling to a matplotlib Axes.
|
| | _trace_lcfs_for_evolution_plot (equil) |
| | Try successive normalized psi surfaces until tracing returns a non-empty contour.
|
| | _tx_profile_at_rho (tt, var_name, rho_val, rho_coord='rho_norm', scale=1.0) |
| | Return (times, values) for a profile variable at a fixed rho, full resolution.
|
| | _tx_scalar (tt, var_name, scale=1.0) |
| | Return (times, values) arrays from data_tree.scalars at full TORAX resolution.
|
| | _x_points_active (tt, i, t=None) |
| | Return True when X-point targets should be applied at timestep index i.
|
| | log_redirect_setup () |
| | Step 1/3 of setup to redirect noisy outputs to log file.
|
| | make_movie (tt, save_path=None, display=True, speed_factor=1.0, loop=None, notebook_mode=None) |
| | Create pulse movie from simulation data.
|
| | plot_coils (tt, save_path=None, display=True) |
| | Plot coil current traces in MA-turns with limit bands.
|
| | plot_equil_interactive (tt, loop=None, notebook_mode=None, save_path=None) |
| | Equilibrium viewer — widget slider in notebook, saved PNGs otherwise.
|
| | plot_lcfs_evolution (tt, save_path=None, display=True, one_plot=False) |
| | Plot time evolution of the last closed flux surface for each phase.
|
| | plot_profile_evolution (tt, save_path=None, display=True, one_plot=False) |
| | Plot profile evolution by pulse phase by default, or as one figure when one_plot=True.
|
| | plot_profiles_interactive (tt) |
| | Interactive profile viewer with ipywidgets slider to scrub through timesteps.
|
| | plot_scalars (tt, save_path=None, display=True) |
| | Plot 4x3 grid of time-series scalars.
|
| | plot_tx_relax_profiles (tt, data_tree, *, stage, t_final_relax, user_ref_curves=None, save_path=None, display=False) |
| | Plot psi, n_e, T_e, T_i vs rho_norm after a short TORAX relax.
|
| | profile_plot (tt, i, t, save_path=None, display=True) |
| | Detailed profile comparison at a single timestep.
|
| | redirect_outputs_to_log (filename) |
| | Step 2/3 of setup to redirect noisy outputs to log file.
|
| | summary (tt) |
| | Print and return key physics figures of merit from the simulation.
|
| | tm_diagnostic_plot (tt, i, t, level_attempts, solve_succeeded, save_path=None, display=True) |
| | TokaMaker input/output diagnostic plot for a single timestep.
|
| | tm_loop_summary_plot (tt, loop_level_log, save_path=None, display=True) |
| | Summary figure showing per-timestep GS solve outcomes.
|