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

Plot convergence density cuts from one or more SKIRT simulations. More...

Functions

"plot convergence density cuts from one or more SKIRT simulations" do ((str, "SKIRT simulation output directory") simDirPath,(str,"SKIRT simulation prefix") prefix="",(float,"number of decades to be included in the density range (color bar)") dex=5)
 

Detailed Description

Plot convergence density cuts from one or more SKIRT simulations.

This script creates plots of the planar cuts through the input and gridded medium density produced by the convergence cuts probe in a SKIRT simulation. This allows a visual comparison between the medium density distribution of the input model and the corresponding spatially discretized version used in the simulation. If the simulation does not include any ConvergenceCutsProbe instances, the script does nothing.

A single plot is produced for each medium (dust, electrons, gas) including panels for both input and gridded density (rows) and for all orientations (columns) depending on the symmetry of the model. All panels share the same color scale. The dynamic range of the logarithmic color scale is specified by decades.

The script takes the following arguments:

In all cases, the plot file is placed next to the simulation output file(s) being handled. The filename includes the simulation prefix, the probe name, and the medium type indicator, and has the ".pdf" filename extension.