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

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

Functions

"plot planar opacity cuts or projections 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 opacity range (color bar)") dex=5)
 

Detailed Description

Plot planar opacity cuts or projections from one or more SKIRT simulations.

This script creates plots of the opacity cuts or projections produced by the OpacityProbe in a SKIRT simulation. The script supports OpacityProbe instances with an associated probe form that produces a planar cut (DefaultCutsForm, PlanarCutsForm) or planar projection (ParallelProjectionForm, AllSkyProjectionForm). For cuts, the plotted quantity is an opacity \(k=\kappa\rho=n\varsigma\); for projections, the plotted quantity is an optical depth \(\tau\). If the simulation does not include any supported probes, the script does nothing.

If the output for a given medium component or medium type (dust, gas, or electrons) includes two or three files with names that differ only by orientation labels ("_xy", "_xz", and/or "_yz"), the density maps for these files are included in a single plot and share the same scale.

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 component or type indicator, and has the ".pdf" filename extension.