Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Stellar structure equations in Matlab?

  1. Apr 22, 2014 #1
    Does anyone have a Matlab file for solving the stellar structure equations that they wouldn't mind passing along? I'm trying to settle an argument with a friend that they can't really be used to describe nuetron stars and I don't have much programming experience.


  2. jcsd
  3. Apr 22, 2014 #2


    User Avatar
    Staff Emeritus
    Science Advisor
    Homework Helper

    It's not clear how a Matlab file is going to settle your argument. If your friend doesn't understand how the structure of a neutron star differs from that of a conventional star, I don't think he will be swayed by the file.
  4. Apr 22, 2014 #3
    I just want something that can be used to give a numerical value for a given set of conditions and see how it differs from reality.
  5. Apr 22, 2014 #4


    User Avatar
    Science Advisor
    Gold Member

    How do you plan on applying the stellar structure equations to a neutron star though? It's not like a neutron star has all the same input terms as a regular star, but a different result arises due to different physics. The input terms would all (almost all) be different. If you modify the equations enough, you might as well just model a neutron star. I don't see how a matlab file is going to help in this case either...
  6. Apr 22, 2014 #5
    Nevermind, forget I asked anything.
  7. Aug 4, 2014 #6
    You can write code for a "cold" neutron star. Take a look at the paper, "Astrophysical APL - Diamonds in the Sky," hosted at http://nicmosis.as.arizona.edu:8000/PUBLICATIONS/WHITEDWARF_TOTV.pdf. Although the paper is for a "cold" white dwarf, you'll need to use the equation of state for a degenerate neutron gas instead of a degenerate electron gas. An additional paper to loock at is "Structure of neutron stars with unified equations of state" hosted at http://arxiv.org/abs/1206.6922.

    Hope this helps.
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook