astromugs.pipeline.Pipeline#

class astromugs.pipeline.Pipeline[source]#

Main user-facing class for setting up and running disk models.

Orchestrates the full modeling pipeline: dust continuum radiative transfer with RADMC-3D, line radiative transfer, local radiation field computation, and chemical modeling with Nautilus. Holds the grid, structural parameters, thermal parameters, and provides methods to read, write, and run each modeling stage.

params#

Structural parameters for the disk model.

Type:

StructureParams

thermalparams#

Thermal and wavelength parameters for radiative transfer.

Type:

ThermalParams

thermalpath#

Relative path to the directory containing thermal / RADMC-3D files.

Type:

str

chempath#

Relative path to the directory containing chemistry (Nautilus) files.

Type:

str

radmc3d_cmd#

Command used to invoke RADMC-3D (can be overridden to point to a specific binary).

Type:

str

grid#

The spatial grid object holding coordinates, dust, and field data.

Type:

Grid

nautilus#

Reference to the Nautilus chemistry module.

Type:

module

Ta#

Surface-area-weighted dust temperature array, populated after run_continuum or write_nautilus.

Type:

ndarray

__init__()[source]#

Initialize the Pipeline with default parameters, grid, and paths.

Methods

__init__()

Initialize the Pipeline with default parameters, grid, and paths.

convert_nautilus2radmc([species, ...])

Convert Nautilus chemistry output to RADMC-3D input files.

run_chemistry([verbose, timelimit])

Run the NMGC gas-grain chemistry simulation.

run_chemistry_custompath(custom_path[, ...])

Run the NMGC gas-grain chemistry simulation.

run_continuum([write_control])

Run dust continuum radiative transfer and compute area-weighted temperature.

run_image_radmc3d([npix, lambda_micron, ...])

Run RADMC-3D to produce a synthetic image.

run_line([make_image, write_control, ...])

Run line radiative transfer and optionally produce a channel map image.

run_localfield([nphot_mono, write_mcmono, run])

Compute the local mean radiation field with RADMC-3D monochromatic Monte Carlo.

run_localfield_radmc3d([nphot_mono, ...])

Run the RADMC-3D monochromatic Monte Carlo for the local radiation field.

run_thermal_radmc3d([verbose, timelimit, nice])

Run the RADMC-3D thermal Monte Carlo dust radiative transfer.

write_continuum([dens, grid, opac, control, ...])

Write RADMC-3D input files for dust continuum radiative transfer.

write_line([control, line, gasvelocity, ...])

Write RADMC-3D input files for line radiative transfer.

write_nautilus([sizes, uv_ref, ...])

Write Nautilus chemistry input files for each radial point.