Skip to content
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

Open
ishfaq333 opened this issue Oct 19, 2020 · 3 comments
Open

Run tov.py code #1

ishfaq333 opened this issue Oct 19, 2020 · 3 comments

Comments

@ishfaq333
Copy link

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

@gnibeil
Copy link

gnibeil commented Aug 30, 2021

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.
As you can see there is Input 3 you specify where the EOS data is coming from:

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.
eos will now contain a full table as numpy object.

In the next line you specify which colums really to use in the code.

I hope I could help you,
Greetings

@ishfaq333
Copy link
Author

Thank you for the response.
I am able to run the codes successfully.
However, I have a question.
Well, the core EoS supplied is joined with the Crust EoS (already present).
I want to calculate the MR profile for pure Quark star and don't want to take crust EoS into consideration, how would I do that?
Please help, if you can.

@gnibeil
Copy link

gnibeil commented Sep 10, 2021

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,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants