Skip to content

Easy Tolman-Oppenheimer-Volkoff equation solver using RK4

Notifications You must be signed in to change notification settings

joon-young-lee/EasyTOV

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Easy Tolman-Oppenheimer-Volkoff equation solver using RK4 method.

How to run:

  1. Make a EoS data sheet inside eos directory. (First column pressure, second column energy density both in MeV/fm^3 units.)
  2. $ python -u tov.py

Inputs:

  1. Name of EoS data file in 'eos' directory.
  2. Initial pressure and Final pressure for central pressure.
  3. Number of neutron stars you want to calcualte in the interval between Initial pressure and Final pressure.

Output:

  1. Plot of M-R
  2. M-R data in text file inside 'results' directory.
    First column: Central pressure in MeV/fm^3
    Second column: Total mass of neutron star in M_0
    Third column: Total radius of neutron star in km

Output Log:

  1. Mass, radius, outer crust, inner crust length, and number of iterations of the rk4 method.
  2. Final, maximum mass, and maximum radius of neutron stars in interval of Initial pressure and Final pressure.

Updates:

  1. Change functions to classes.
  2. Numerical error.

Reference

  1. Chagne of metric: tovh.pdf, James Lattimer
  2. Crust EoS: Baym, 1971, inlcusion of inner and outer crust is default. (unchangable for now!)

About

Easy Tolman-Oppenheimer-Volkoff equation solver using RK4

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages