amotornenko / tovsolver Goto Github PK
View Code? Open in Web Editor NEWPython package for solving TOV equation and calculating tidal properties
Python package for solving TOV equation and calculating tidal properties
m_arr = []
R_arr = []
for dens_c in np.logspace(-0,3.7,350):
R, M, prof = tov_s.solve(dens_c, rmax=50e5, dr=100)
m_arr.append(M)
R_arr.append(R)
print(R, M, dens_c) # extra I have written to check which central density gives the maximum mass of the neutron star.
I found that the radius and central density corresponded to the maximum mass 2.1498973233892715 M_sun are
12.004 km 1076.692506643068 MeV/fm^3
R, M, prof = tov_s.solve(1076.692506643068, rmax=50e5, dr=100) # 2.1498973233892715 M_sun, 12.004 km
12.004 km 4.274931084233547 M_sun
If you compare the masses there is huge differences 4.274931084233547-2.1498973233892715 = 2.125033761 M_sun. But the radius is same.
R, M, prof = tov_s.solve(386.20641587213856, rmax=50e5, dr=100) # 1.3820322317287081, 13.144
print(max(prof[0]/1e5), max(prof[3]/1e33)) gives
13.144 km 2.748081260697474 M_sun
Please help me in this regard.
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.