astromugs.pipeline.Grid#
- class astromugs.pipeline.Grid(params: DiskParams, wave: WaveParams)[source]#
Spatial and wavelength grid for young stellar object modeling.
Holds the coordinate system, physical quantities (density, temperature, radiation field), and optional chemistry sub-grids used by radiative transfer and chemical codes.
- params#
Disk/envelope structural parameters (radii, resolution, etc.).
- Type:
DiskParams
- wave#
Wavelength grid parameters.
- Type:
WaveParams
- dustdensity_single_chem#
Single-grain-population dust density for chemistry, in g/cm^3.
- Type:
list of ndarray
- chemradii#
Radial coordinate arrays imported from existing chemistry models, in AU.
- Type:
list of ndarray
- __init__(params: DiskParams, wave: WaveParams)[source]#
Initialize the Grid with disk parameters and wavelength settings.
- Parameters:
params (DiskParams) – Disk/envelope structural parameters.
wave (WaveParams) – Wavelength grid parameters.
Methods
__init__(params, wave)Initialize the Grid with disk parameters and wavelength settings.
add_accretionheating(q_visc)Append a viscous accretion heating rate component.
add_avz(av_z)Append a vertical visual extinction component.
add_density(density)Append a total density component.
add_dust(dust)Append a dust opacity/property object.
add_dustdensity(density)Append a dust density component for radiative transfer.
add_dustdensity_chem(density)Append a dust density component for chemistry.
add_dustdensity_single_chem(density)Append a single-grain-population dust density for chemistry.
add_existingchemmodel(existingchemmodel, species)Store abundance data from an existing chemistry model for a species.
add_existingchemparam(existingchemparam)Append parameters from an existing chemistry model.
add_existingchemradii(existingchemradii)Append radial coordinates from an existing chemistry model.
add_gasdensity_chem(density)Append a gas density component for chemistry.
add_gastemperature_chem(gas_temperature)Append a gas temperature component for chemistry.
add_hg_chem(hg)Append a gas scale height array for chemistry.
add_isrf(isrf)Append an interstellar radiation field component.
add_localfield(localfield)Append a local radiation field component.
add_star(star)Append a stellar source to the grid.
add_temperature(temperature)Append a dust temperature component.
set_cartesian_grid(xmin, xmax, nx)Build a uniform Cartesian grid and return edges and cell centres.
set_chem_grid(r[, z0, zmax, msize, nbcells, ...])Build a custom spatial grid for chemistry (disk, envelope, etc.).
set_chemdisk_grid(r[, max_H, nz_chem, stretch])Build a vertical chemistry grid for a disk model.
set_mcmonowavelength_grid([log])Build the monochromatic Monte Carlo wavelength grid.
set_spherical_grid([r_edge, theta_edge, ...])Set the spherical grid.
set_wavelength_grid([log])Build the wavelength grid used by the radiative transfer.