Skip to content

jwkern/blackbodyFunctions_Python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation




blackbodyFunctions_Python


GENERAL DESCRIPTION: This Python script uses matplotlib to plot the blackbody function of concentric disks of gas around a star (i.e. a protoplantary or accretion disk).


DATA DESCRIPTION: The data are simply the four different arrays which correspond to the blackbody functions of three dust rings and one central star as a function of wavelength.


CODE DESCRIPTION: The code imports matplotlib, numpy, math, and pylab packages. Constants and arrays are defined, after which the blackbody functions are coded in, summed, and plotted. The four components are labeled in the legend.


RUNNING THE CODE:

  1. Download the python script (exodisk_bbf.py)

  2. In a terminal, cd into the directory that now contains the script

  3. Run the script by typing the following into the command line:

        python3.8 exodisk_bbf.py
    

3.1) The output can be saved directly from the GUI screen.




About

This Python script uses matplotlib to plot a set of blackbody functions.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages