The SKIRT project
advanced radiative transfer for astrophysics
Functions
pts.visual.do.plot_magnetic_field Namespace Reference

Plot planar magnetic field cuts or projections from one or more SKIRT simulations. More...

Functions

"plot planar magnetic field cuts or projections from one or more SKIRT simulations" do ((str, "SKIRT simulation output directory") simDirPath,(str,"SKIRT simulation prefix") prefix="",(int,"number of pixels in a bin, in both x and y directions") bin=32)
 

Detailed Description

Plot planar magnetic field cuts or projections from one or more SKIRT simulations.

This script creates PDF vector maps for the planar magnetic field cuts or projections produced by one of the relevant probes in a SKIRT simulation, allowing a visual evaluation of the magnetic field's spatial distribution.

The script supports MagneticFieldProbe instances with an associated probe form that produces a planar cut (DefaultCutsForm, PlanarCutsForm) or planar projection (ParallelProjectionForm, AllSkyProjectionForm). If the simulation does not include any supported probes, the script does nothing.

The script takes the following arguments:

In all cases, the plot file is placed next to the simulation output file(s) being handled. The plot file has the same name as the SKIRT output file from which it is derived but with the ".pdf" filename extension instead of ".fits".