8000 GitHub - cmsquared/pyreaclib: python interfaces to the JINA reaclib database
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

cmsquared/pyreaclib

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pyreaclib

Python interfaces to the JINA reaclib nuclear reactions database. The main goal is to provide a parser for the reaclib format to produce either a callable python function for a rate or output the python code for a function that can be incorporated into a rate module.

For performance reasons, the common temperature factors needed by a rate are stored in a Tfactors class---a Tfactors object is passed into each rate function to get the rate.

example

import reaclib

r = reaclib.Rate("c13-pg-n14-nacr")

# output python code for this rate
print r.function_string()

# evaluate this rate at T = 1.e9 K
print r.eval(1.0e9)

TODO

  • output Fortran functions as an option

  • output Cython code

  • interface to the nuclei properties (Z, A, binding energies)

About

python interfaces to the JINA reaclib database

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%
0