This repository collects a set of scripts employed for the analysis of kink unstable flux ropes. A new version of the file pipreadmods.py that includes the reading of
- The script
energy_components.pyintegrates the energy terms across the volume and allow to plot the global contribution of each component. - The script
growth_rate_plot.pyestimates the growth rate of the kink instability by fitting the logarithm of the total kinetic energy, and produces a plot of$\log_{10}(KE)$ with the fit. - The script
heating.pycalculates the global contributions of each heating term (Ohmic heating$\eta J^2$ for all simulations, collisional frictional heating$\frac{1}{2} \alpha_c \rho_n \rho_p v_{D}^{2}$ and ionisation-recombination frictional heating for the PIP simulations) as a function of time. - The script
average_tempeature.pycalculates the average plasma and neutral temperatures of both MHD and PIP simulations, and produces a plot comparing the temperatures of different cases.
- The script
current_density_frames.pysaves frames of the current density magnitude captured at the centre of the flux rope. This particular script was generated in order to produce animations. - The script
current_density_mosaic.pyproduces three figures:
- The first figure is a 1D plot of the initial conditions (
$t$ = 0) for the magnetic field components$B_y$ and$B_z$ and the current density components$J_y$ and$J_z$ as a function of the$x$ direction. - The second figure is a 2D plot of the initial conditions (
$t$ = 0) for the magnetic field components$B_y$ and$B_z$ and the current density components$J_y$ and$J_z$ in the$xy$ -plane at the centre of the flux rope. - The third figure is a mosaic of 2D frames of the current density magnitude captured at the centre of the flux rope of both MHD and PIP simulations.
- The script
ionrec.pyproduces a 1D plot of the global ionization/recombination rates in PIP (partially ionized plasmas) simulations as a function of time.
PIP_0_mosaic.prois an IDL script that produces a set of contour plots (temperature difference, drift velocity magnitude, current density magnitude, ionisation and recombination rates) displayed at a single time frame for a PIP simulation. The dataset relative to ionisation and recombination rates is contained in the filePIP_0_ion_rec.savThe mosaic is uploaded here with the namePIP_0_mosaic.jpg.