Parameter file¶
Parameter file syntax¶
The parameter file is split up to blocks of parameters. Each parameter block begins with a line
# Block: BLOCKNAME
Anything in the parameter file followed by a #
sign is taken to be a comment, except for the block
name definitions. Block name definitions begin with a #
followed by the word Block
, a colon and then the
actual name of the block.
Block names are followed by the lines containing the parameters and their values. Each parameter definition contains three parts, name of the parameter, value and some explanatory comment:
PARAMETER_NAME = PARAMETER_VALUE # PARAMETER_DESCRIPTION
Long expressions and comments can be broken into multiple lines with a backslash (\) at the end of of the broken line.
In reality a parameter block for the radiation sources can looks like this:
# -----------------------------------------------------------------------------
# Block: Radiation sources
# -----------------------------------------------------------------------------
incl_cont_stellarsrc = False # # Switches on (True) or off (False) continuous stellar sources )
incl_disc_stellarsrc = True # # Switches on (True) or off (False) discrete stellar sources)
mstar = [1.0*ms] # # Mass of the star(s)
pstar = [0.0, 0.0, 0.0] # # Position of the star(s) (cartesian coordinates)
rstar = [2.0*rs] # # Radius of the star(s)
tstar = [4000.0] # # Effective temperature of the star(s) [K]
List of blocknames
Radiation sources
Grid parameters
Dust opacity
Gas line RT
Code parameters
Model
These block-names should not be modified as the reader function will look for these strings.
Radiation sources¶
incl_disc_stellarsrc : listSwitches on (True) or off (False) discrete stellar radiation sources. mstar : listMass of the star. Each element of the list contains the mass of an individual star as a float. pstar : listCoordinates of the star. Each element of the list contains a three element vector containing the 3D cartesian coordinates of each individual star. rstar : listStellar radius. Each element of the list contains the radius of an individual star as a float. tstar : listEffective temperature. Each element of the list contains the effective temperature of an individual star as a float. incl_cont_stellarsrc : listSwitches on (True) or off (False) continuous stellar radiation sourcesNOTE, the model should have the appropriate functions (getStellarsrcDensity(), getStellarsrcTemplates())
Grid¶
crd_sys : {‘sph’, ‘car’}Coordinate system type nw : listNumber of wavelength points in the wavelength grid,nw[i]
sets the number of grid points in the[wbound[i], wbound[i+1])
interval (or on the[wbound[-2], wbound[-1]]
for the last interval) nx : listNumber of grid cells in the first spatial coordinate,nx[i]
sets the number of grid points in the[xbound[i], xbound[i+1])
interval (or on the[xbound[-2], xbound[-1]]
for the last interval) ny : listNumber of grid cells in the second spatial coordinate,ny[i]
sets the number of grid points in the[ybound[i], ybound[i+1])
interval (or on the[ybound[-2], ybound[-1]]
for the last interval) nz : listNumber of grid cells in the third spatial coordinate,nz[i]
sets the number of grid points in the[zbound[i], zbound[i+1])
interval (or on the[zbound[-2], zbound[-1]]
for the last interval) wbound : listBoundaries of the wavelength grid xbound : listBoundaries of the spatial grid in the first coordinate,nx[i]
sets the number of grid points in the[xbound[i], xbound[i+1])
interval (or on the[xbound[-2], xbound[-1]]
for the last interval) xres_nlev : floatRadial grid refinement in spherical coordinate system xres_nspan : floatRadial grid refinement in spherical coordinate system xres_nstep : intRadial grid refinement in spherical coordinate system ybound : listBoundaries of the spatial grid in the second coordinate,ny[i]
sets the number of grid points in the[ybound[i], ybound[i+1])
interval (or on the[ybound[-2], ybound[-1]]
for the last interval) zbound : listBoundaries of the spatial grid in the third coordinate,nz[i]
sets the number of grid points in the[zbound[i], zbound[i+1])
interval (or on the[zbound[-2], zbound[-1]]
for the last interval)
Separable mesh refinement¶
Spatial and wavelength grid definitions allow ‘separable mesh refinement’, i.e. refinement of the wavelength or the spatial mesh along individual axes. Let us take now the wavelength grid for an example. If we wish to cover the \(10^{-2}-10^4\mu{\rm m}\) interval with 200 grid points we should set
wbound = [0.01, 1e4]
andnw = [200]
. This results in a logarithmic wavelength grid betweenwbound[0]
andwbound[1]
containingnw[0]
grid points. This wavelenght grid might be fine enough to sample the radiation field of the sources and the thermal emission of the dust in the model, but too coarse to study e.g. the shape of the silicate features in the mid-infrared. If we are interested in the silicate feature around \(10\mu{\rm m}\) only, we can refine this region in the wavelength grid by settingwbound = [0.01, 7.5, 13.5, 1e4]
andnw = [50,100,50]
. This grid setup will result in 50, 100, 50 grid points in the \([0.01\mu{\rm m},7.5\mu{\rm m})\), \([7.5\mu{\rm m},13.5\mu{\rm m})\) , \([13.5\mu{\rm m},10^4\mu{\rm m}]\) intervals, respectively.Note, the number of grid points are defined always on a right-open interval, except in the last, rightmost interval, where the interval is closed.
Grid refinement at the inner boundary¶
Even for logarithmic radial grids the innermost parts of the model can still be optically thick for centrally concentrated density distributions. With the use of thexres_nlev
,xres_nspan
andxres_nstep
parameters we can introduce additional grid refinement in the radial grid of a spherical coordinate system. The grid refinement is done in the following way. First a logarithmic radial grid is set up on the basis of thenx
andxbound
parameters. Then the interval between the innermost cell interface and thexres_nspan
th cell interface (i.e.xres_nspan
-1 grid cell) will be taken and split intoxres_nlev
grid cells. Then the innermost grid cell will be split intoxres_nlev
‘new’ grid cells, then again the innermost, refined grid cell will be taken and split intoxres_nlev
cells. The splitting of the innermost cell will be donexres_nstep
times.
Dust opacity¶
dustkappa_ext : strFile name tag in the dust opacity file. Dust opacity files should have names like e.g.,dustkappa_EXT.inp
, where thedustkappa_ext
parameter should contain the ‘EXT’ tags from the file name (e.g. fordustkappa_ext = 'silicate'
the dust opacity file should bedustkappa_silicate.inp
. gdens : floatBulk density of the material gsdist_powex : floatGrain size distribution power exponent gsmax : floatMaximum grain size in the distribution gsmin : floatMinimum grain size in the distribution lnk_fname : listFile name list (including full path) containing optical constants (NOTE, the file should contain three columns: wavelength [micron], n, k) mixabun : listIf multiple species specified their mass absorption coefficients can be mixed according to the mixing ratios (mass fractions) in mixabun. ngs : floatNumber of grain sizes in the grain size distribution
Gas lines¶
gasspec_colpart_abun : floatAbundance of the collisional partner gasspec_colpart_name : floatName of the collisional partner gasspec_mol_abun : floatMolecular abundance gasspec_mol_dbase_type : {‘leiden’, ‘linelist’}Database type of the molecular data (see the RADMC-3D manual for the definitions of various formats). gasspec_mol_name : strName of the molecular species whose lines should be calculated
Code¶
istar_sphere : intIf 0 discrete stars are taken to be point-like, if 1 the finite extent of the star is taken into account itemdecoup : intAllows (0) or prevents (1) the decoupling of the temperature of different dust species lines_mode : intLine mode (for the definitions of the individual line modes see the RADMC-3D manual):
- 1 - LTE
- 2 - User-defined populations I
- 3 - LVG populations
- 4 - Optically thin NLTE level populations method
- 5 - User-defined populations II
nphot : intNumber of photons in the thermal Monte Carlo simulations nphot_scat : intNumber of photons used for the scattering Monte Carlo simulations when images are calculated nphot_spec : intNumber of photons used for the scattering Monte Carlo simultaions when SEDs/spectra are calculated rto_style : intOutput format: 1 - Formatted ASCII, 3 - C-style binary scattering_mode_max : intScattering mode :
- 0 - Scattering is switched off
- 1 - Isotropic scattering
- 2 - Anysotropic scattering with Henyey-Greenstein phase function
- 3 - Anysotropic scattering with tabulated phase function
- 4 - Anysotropic scattering with polarization but the full scattering matrix is only used for the last scattering
- 5 - Anysotropic scattering with scattering matrix, full treatment
tgas_eq_tdust : intDust temperature is taken to be the gas kinetic temperature modified_random_walk : intSwitches on (1) and off (0) modified random walk