Homework 4 Solutions

# This is a common method for determining model

This preview shows page 1. Sign up to view the full content.

This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: rived above. Was the initial estimate for κ correct? κH ­ = 8x10 ­34 (4.9x10 ­5)1/2(5800)9 = 0.04 m2/kg this is quite a bit smaller than the original estimate (e) [10 pts] Repeat steps a ­d until you converge on values for P, ρ and κ for the Solar photosphere. “Converge” in this case means that the last iteration differed form the previous iteration by < 10%. This is a common method for determining model parameters, and is most easily done with a computer! Here’s a short python script I wrote to do this: #!/usr/bin/python -tt import numpy as np def main(): # initial values (all units SI) kap = 0.1 teff = 5800. g = 270. mu = 1/0.77 mh = 1.67e-27 k = 1.38e-23 for x in range(20): P = 0.67*g/kap rho = P*mu*mh/(k*teff) kap = 8.e-34*np.sqrt(rho)*(teff**9) print P, rho, kap # Standard boilerplate that calls the main() function. if __name__ == '__main__': main() and here is the output...
View Full Document

{[ snackBarMessage ]}

### What students are saying

• As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

Kiran Temple University Fox School of Business ‘17, Course Hero Intern

• I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

Dana University of Pennsylvania ‘17, Course Hero Intern

• The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

Jill Tulane University ‘16, Course Hero Intern