Giter VIP home page Giter VIP logo

tovsolver's Introduction

Logo

TOV Solver (tovsolver)

No Maintenance Intended MIT license

Purpose

The main purpose of this program is to integrate the TOV equations under some Equation of State.

Command Line Parameters

-config FILENAME : defines which config file should be read by the program.

-rho_0 : define the value for central energy density (e(R = 0)).

##EOS File format

The file is very simple. It must be formated in 3 columns (comma separated), in the following order:

  1. Density (mass density, it will be converted internally to energy density, depending on the chosen unit system).
  2. Pressure.
  3. Baryon density, if provided.

The data must be sorted as density descending, i.e. from the bigger mass density to the smaller. In the future, one should be abble to inform the data in any sorting.

Config File Parameters

  • diff_eq_step : Runge-Kutta step size.

  • max_rk_steps : Upper limit to the number of steps the program must iterate.

  • interpolation_tolerance : TODO

  • max_diff_eq_step : TODO

  • min_diff_eq_step : TODO

  • verbose_eos : If TRUE, the program will output the EoS's values. Otherwise, no output.

  • output_summary_only : If true, the program wil output the summary, but not the profiles. Use false for optimization.

  • output_gnuplot_style : TODO

  • verbose_interpolation_coeficients : If true, the program will output the interpolation coeficients.

  • RHO_0 : The central density.

  • interpolation_method : Two methods are available at the moment: cubic_spline and linear.

  • RHO_ADIM : TODO

  • cutoff_RHO_0 : TODO

  • cutoff_density : The density where the program must stop the Runge-Kutta calculations(i.e. a stop condition).

  • K_entropy : TODO

  • eos_file_name : The EoS file name.

  • UNIT_SYSTEM : CGS=1, NUCLEAR=2, SI=3, NUN=4, OTHER=5. You should note that this is not fully implemented. Only CGS and Nuclear units are working up to now.

  • eos_file_provides_baryonic_density : true or false.

  • log_base_calc_infor_entropy : TODO

Usage

It is provided a lot of scripts along the executable. Let's see what each one does.

tovsolver's People

Contributors

rsouza01 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

tovsolver's Issues

Executing the code

Hi,

Given an EOS (using the ones you provided in python folder), how long does it take to execute the entire code (from data to plotting)? Could you provide a rough estimate? Plus is it possible for you to generalize the code to openmp or openacc format? Probably will help in calculating quickly.

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.