Skip to content

VA00/libNSE

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

libnse

A library for interpolating abundances of nuclear species in a state of nuclear statistical equilibrium (NSE).

Library provides the function calculating the abundance of a specified nuclide defined by Z nad N:

nse(double T9, double rho, double Ye, int Z, int N)

where:

  • T9 - temperature in 1E9 K (Kelvins)
  • rho - density in [g/cc] (grams per cubic centimeter)
  • Ye - electron fraction of the matter (ratio of lepton number to baryon number)
  • Z - number of protons in the nuclei
  • N - number of neutrons in the nuclei

Prerequisites

  • Linux operating system
  • GCC
  • autoconf
  • libtool
  • Mathematica link

Installation & Usage

In your console go to libNSE folder and type:

autoreconf -vif
./configure
mathematica src/NSE_pn_table_generator.nb

In the new console window type:

cd path_to_your_library/libNSE/src
gcc NSE_pn_table_parser.c -o NSE_pn_parser
./NSE_pn_table_parser > ../data/np_table.c
cd ../
make

About

Nuclear Statistical Equlibrium (NSE) library

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors