The SKIRT project
advanced radiative transfer for astrophysics
Functions
pts.storedtable.convert_enthalpies Namespace Reference

Functions for converting enthalpies to stored table format. More...

Functions

def convertDraineEnthalpies (inFilePaths, outFilePaths)
 This function converts the column text files with enthalpies calculated according to Draine & Li (2001) to stored table format. More...
 
def convertDustemEnthalpies (inFilePaths, outFilePaths)
 This function converts "heat capacity" data files shipped with the DustEM code to enthalpies in stored table format. More...
 
def convertTrustBenchmarkEnthalpies (inFilePaths, outFilePaths)
 This function converts the column text files with enthalpies for the TRUST dust model to stored table format. More...
 

Detailed Description

Functions for converting enthalpies to stored table format.

The functions in this module can convert various kinds of enthalpy data to SKIRT stored table format. The stored tables produced by the functions in this module have:

Dividing the value listed in the table (in J/m3) by the bulk density of the material (in kg/m3) yields a specific enthalpy value per unit of mass (in J/kg).

Providing the specific enthalpy per unit of volume implies that the information can be used for different bulk densities. However, some of the tables have been prepared assuming a specific bulk density value. In those cases, a proper dust model will be obtained only when using that particular bulk density value.

In any case, the same bulk density value must be specified for the complete dust composition (i.e. also for calculating the dust mass from the size distribution) to obtain a consistent dust model.

Function Documentation

◆ convertDraineEnthalpies()

def pts.storedtable.convert_enthalpies.convertDraineEnthalpies (   inFilePaths,
  outFilePaths 
)

This function converts the column text files with enthalpies calculated according to Draine & Li (2001) to stored table format.

The function expects a single input file path and a single output file path, plus a bulk density value in kg/m3 posing as the second input file path. This value is used to convert the enthalpies from per-mass to per-volume. Refer to the notes in the input directory for more information on the data format.

◆ convertDustemEnthalpies()

def pts.storedtable.convert_enthalpies.convertDustemEnthalpies (   inFilePaths,
  outFilePaths 
)

This function converts "heat capacity" data files shipped with the DustEM code to enthalpies in stored table format.

The function expects a sequence of input file paths and a sequence of corresponding output file paths. Refer to the notes in the input directory for more information on the input data format and the conversion process.

◆ convertTrustBenchmarkEnthalpies()

def pts.storedtable.convert_enthalpies.convertTrustBenchmarkEnthalpies (   inFilePaths,
  outFilePaths 
)

This function converts the column text files with enthalpies for the TRUST dust model to stored table format.

The function expects a single input file path and a single output file path, plus a bulk density value in kg/m3 posing as the second input file path. This value is used to convert the enthalpies from per-mass to per-volume. Refer to the notes in the input directory for more information on the data format.