Giter VIP home page Giter VIP logo

gpappasgr / cppegb Goto Github PK

View Code? Open in Web Editor NEW

This project forked from esmyrnio/cppegb

0.0 0.0 0.0 28.42 MB

Program for obtaining static Neutron Star solutions in regularized 4D Einstein-Gauss-Bonnet gravity, for tabulated EoS, using the KEH/CST numerical scheme.

License: MIT License

Shell 0.01% C++ 98.03% Python 0.01% Perl 0.01% C 0.18% Makefile 0.01% HTML 0.01% CMake 0.01% Batchfile 0.01% M4 0.01% Roff 1.77% SWIG 0.01%

cppegb's Introduction

cppEGB

Description

Program for obtaining static Neutron Star solutions in regularized 4D Einstein-Gauss-Bonnet gravity1, for tabulated EoS2, using the KEH/CST numerical scheme3. A C++ version of the Savitzky-Golay filter4 is used, along with some modules from the BOOST C++ library5. Both are included and implemented as header-only libraries. In addition the C++ code is wrapped using SWIG6, into a python library which can be imported and used in any way, as shown in swig/test.py.

Usage

Compile, using the provided makefile. Type "make" in the main directory, where the makefile is also located, to create the executionable file.

EGB.exe takes 7 inputs in-turn. The parameters are specified using the following flags:

  1. -f eos_name (The EoS file name).
  2. -c coupling (The EGB coupling constant in km^2).
  3. -e central_pressure (The central pressure in dyn/cm^2/10^35).
  4. -t relative_error (The relative error for the iteration scheme).
  5. -m maximum_iterations (The maximum number of iterations).
  6. -l relaxation_factor
  7. -p print_option:
    • 0: Prints gravitational mass M and radius R.
    • 1: Prints (0) along with the distance, metric, scalar, energy density and pressure profiles.

For example,

./EGB -f ppsly4.cold.rns1.1.txt -c 20.0 -e 10.0 -t 1e-05 -m 100 -l 0.2 -p 0

typical input parameter space:

  • central pressure ~ 0.1-30.0 (10^35 dyn/cm^2)
  • coupling ~ 0-70 (km^2)

Footnotes

  1. https://iopscience.iop.org/article/10.1088/1475-7516/2022/02/033

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

  3. https://academic.oup.com/mnras/article/237/2/355/976460, https://ui.adsabs.harvard.edu/abs/1992ApJ...398..203C/abstract, https://gitlab.com/niksterg/rns1-1/

  4. https://github.com/arntanguy/sgsmooth

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

  6. https://github.com/swig/swig

cppegb's People

Contributors

esmyrnio 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.