-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Run tov.py code #1
Comments
Hello, Well the tov.py is more a kind of libery that you call from a different code. In the easiest cases it is either Python or jupiter notebook as in the example. eos = np.genfromtxt("example_eos.dat", names=True, skip_header=1, unpack=True) In this case it is a relative pass from where the jupiter notebook is, but you can also give a full path to where the EOS table is. In the next line you specify which colums really to use in the code. I hope I could help you, |
Thank you for the response. |
Hi, Well if you do not want to consider a crust eos you can switch adding a crust of by adding the following option add_crust=False: tov_s = TOV(n_arr, p_arr, plot_eos=True,add_crust=False) It mid be needed to add a row of 0 0 on the begin of your table in order to avoid problems with the ranges of the interpolations. Have fun, |
Hello,
I have installed the TOVsolver code as instructed.
Now I want to use my EoS to solve the TOV equation and calculate Mass, radius, etc.
Where do I need to save my EoS and how do I then run tov.py
Please respond back.
I will be waiting
The text was updated successfully, but these errors were encountered: