Giter VIP home page Giter VIP logo

cpptov's Introduction

cppTOV

This is the TOV solver used in quickStar, for tabulated1 (EoS/) or polytropic equations of state. The bindings used to expose the TOV class to JavaScript are located in src/bindings.cpp. The Tolman–Oppenheimer–Volkoff (TOV) system of ODEs is solved by implementing a C++11 version of LSODA2, which has been slightly modified to fit the TOV class. Additionaly, some modules from the BOOST3 C++ library are used to interpolate the tabulated equations of state, and also to find the central pressure in polytropic equations of state.

Usage

Compile, using the provided makefile.

The executable inputs are specified using the following flags:

  • -m EoS model ('p' for polytrope, 't' for tabulated)
  • -f EoS name (EoS file name, if EoS is tabulated).
  • -g Gamma (polytropic parameter, if EoS is polytropic)
  • -k Kappa (polytropic parameter, if EoS is polytropic)
  • -e central energy density (central energy density in CGS/10^15).
  • -p print option:
    • 0: Prints gravitational mass M and radius R.
    • 1: Prints (0) along with the distance, metric, energy density and pressure profiles.

For example,

./TOV -m t -f ppsly4.cold.rns1.1.txt -e 2.5
./TOV -m p -g 2.0 -k 100.0 -e 2.5

Footnotes

  1. https://ui.adsabs.harvard.edu/abs/2021PhRvD.103l3004B/abstract (table IX)

  2. https://github.com/dilawar/libsoda-cxx

  3. https://github.com/boostorg/boost

cpptov's People

Contributors

esmyrnio avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.