Skip to content

pmalloy2200/mt2

Repository files navigation

Midterm 2: White Dwarf

Physics 2200, Fall 2014

Professor Dr. Rozman

Patrick Malloy 12/13/14

The program solves the following system of two first order differential equations, which describe the mass, density and radius of a white dwarf star.

The first program, white-dwarf.c, calculates the density gradient of a white dwarf star and prints values of density versus mass and radius. Using the makefile and gnuplot, the following graph of density vs. radius is produced: ![Rho vs. Radius] (https://raw.githubusercontent.com/pmalloy2200/mt2/master/rho_vs_r.png)

The second program, white-dwarf-iterate.c, iterates over values of central density from .1 to 1,000,000 and exports mass vs radius as central density increases. Using the makefile and gnuplot, the following graph of total vs. total radius is produced: ![Total Mass vs. Total Radius] (https://raw.githubusercontent.com/pmalloy2200/mt2/master/m_vs_r.png)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published