astr8300_rappture is a sample package for Astr8300 rappture projects
This tool has been developed for the final project for the Galactic Astronomy class, taught by prof. Bradley Meyer in Fall 2018, Clemson University.
You will need a computer with rappture installed. If you do not have the software, follow the steps below.
- Make an account on Amazon AWS
- From the EC2 dashboard, click on 'AMIs' and, under the public images, launch the 'webnucleo' one (this instance will have rappture installed).
- Connect to the instance with "ssh -i "/path/to/key.pem" -X ubuntu@..."
- git clone http://github.com/leamarcotulli/astr8300_rappture_lea_BS.git
- cd astr8300_rappture/Final_Project
- export PATH=$PATH:/usr/local/rappture/bin/
- rappture
This tool is based on the paper from Bachall and Soneira (1980).
The goal of this rappture tool is to compute the distribution of stars of absolute magnitude M as a function of their distance from the Galactic Center (x) and their height above the plane (z).
Below, I will highlight the assumption behind the calculation. For a detailed description of the model, I refer the user to the actual paper.
-
The luminosity function of disk stars (i.e. the number of stars per pc3 per absolute visual magnitude, MV) is taken from the analytic function derived in Tremaine, Ostriker and Spitzer (1975):
with n*=4.03x10-3, M*=+1.28, Mb=-6, Md=+19, α=0.74, β=0.04, 1/δ=3.40.
-
The distribution of stars perpendicular to the plane of the Galaxies changes depending on their luminosity. Younger, more massive and brighter stars are found close to the plane, while older, less massive and fainter stars are more spread. The observed scale height (H) can be modeled by a trivial function which depends on MV (and well agrees with the observations):
-
The star density variation in the disk (ρd⊥) as a function of z can be approximated by:
-
The star density variation in the disk (ρd∥) as a function of x can be approximated by:
where r0 is the distance of the Sun for the Galactic Center (r0 = 8 kpc) and h is the scale lenght that varies with morphological type (h=3.5 kpc, De Vaucouleurs and Pence, 1978).
-
Therefore, star density variation in the disk* ρd is the product of 3. and 4.:
-
For the star density in the spheroidal component, assuming it is made of stars with MV > 6, an expansion (valid for r/re>0.2) is:
where b=7.669, C is the normalization constant (taken as 1 for simplicity), re = r0/3 (De Vaucouleurs and Buta, 1978).
-
Including the spheroidal component, the total distribution of stars in the galaxy is given by:
The input parameters shown in the left of the rappture GUI are:
- Minimum (absolute visual) Magnitude (MMIN) and Maximum (absolute visual) Magnitude (MMAX). These will be used to compute the luminosity function and the scale height.
- Single (absolute visual) Magnitude. This is the magnitude for which you want to calculate the density and spatial distribution.
- Npoints (integer). This is the number of points in which you want to divide the coordinate space: longitude (l), latitude (b) and distance from the Sun (R).
After you press 'Simulate', the tool will produce six graphs:
- The luminosity function, calculated from MMIN to MMAX using equation (1)
- Scale height, calculated from MMIN to MMAX using equation (2)
- ρdperp vs. z, calculated for stars of magnitude M using equation (3)
- ρdparall vs. x, calculated for stars of magnitude M using equation (4)
- ρs vs. r, calculated for stars of magnitude M findinging the roots of equation (5) if M<6, or (7) if M>6
We note that for the last plot we find the root of equations (5) and (6) iterating for every M and every x over a range [-zMAX, +zMAX], where zMAX=1.e6 (arbitrary choice).
- Lea Marcotulli lmarcot@g.clemson.edu
- Bradley S. Meyer mbradle@clemson.edu