Giter Site home page Giter Site logo

nugrid / nupycee Goto Github PK

View Code? Open in Web Editor NEW
26.0 22.0 18.0 61.57 MB

You can find the website of NuPyCEE at

Home Page: http://nugrid.github.io/NuPyCEE/

License: BSD 3-Clause "New" or "Revised" License

TeX 0.11% HTML 4.34% Makefile 0.04% CSS 0.06% JavaScript 0.29% Python 2.36% Batchfile 0.02% Shell 0.01% Jupyter Notebook 92.19% Fortran 0.59%
galaxies chemical-evolution nugrid

nupycee's Introduction

Build Status DOI

NuPyCEE

Public NuGrid Python Chemical Evolution Environment

This is a code repository containing the simple stellar population code SYGMA (Stellar Yields for Galactic Modeling Applications), the single-zone galaxy code OMEGA (One-zone Model for the Evolution of Galaxies), and the observational data plotting tool STELLAB (Stellar Abundances).

Requirement: The codes are now in Python3 and use the "future" module.

Online usage: These tools can be used directly online via the public WENDI interface.

Userguides: See the Documentation folder.

Acknowledgments:

Installation Instructions

  • Create the directory where you want to download the codes.
  • Go in that directory with a terminal and clone the GitHub repository:
    • git clone https://github.com/NuGrid/NuPyCEE.git
  • From the same directory which contains the cloned NuPyCEE directory, you can import the codes in Python mode by typing:
    • from NuPyCEE import omega
    • from NuPyCEE import sygma
    • from NuPyCEE import stellab
  • If you want to import the NuPyCEE codes from anywhere else within your work space, you have to update your Python path using a terminal:
    • export PYTHONPATH="your_path_to_before_NuPyCEE:$PYTHONPATH"
    • Example: export PYTHONPATH="benoitcote/gce_code:$PYTHONPATH"
    • Important: Do not forget :$PYTHONPATH at the end, otherwise the python path will be overwritten.
    • Note: All export commands should be put into your bash file. With MAC, it is the .bash_profile file in your home directory. Otherwise, you will need to define the paths each time you open a terminal.

Installation of the Decay Module for Using Radioactive Isotopes

  • In the NuPyCEE folder, type the following
    • f2py -c decay_module.f95 -m decay_module
    • Note: Use the f2py version that will be compatible with your Python version.

nupycee's People

Contributors

adam-paul avatar alexji avatar andresyague avatar becot85 avatar chritter avatar earnric avatar fherwig avatar jacobbrazier avatar katewomack avatar nannau avatar tomtrueman avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

nupycee's Issues

Difference between the same stellar yields in different tables

Hi builders of NuPyCEE,

I am doing some researches using different stellar yields. I find that there is some slight difference between K10 AGB yields from agb_and_massive_stars_nugrid_K10.txt and from other tables using K10 AGB yields. Also, there is some slight difference between NuGrid AGB yields from agb_and_massive_stars_nugrid_MESAonly_fryer12mix.txt and from other tables using NuGrid AGB yields. But they should be the same. You can see it from the figure I made.
YieldsVSinitialmass
It shows the relation between yields fraction scaled by final mass and initial mass. You can see that there are slight difference for AGB yields between the same yields (i.e. K10-1 and K10-2: other tables contain K10 AGB yields and agb_and_massive_stars_nugrid_K10.txt , NuGrid-1 and NuGrid-2: other tables contain NuGrid AGB yields and agb_and_massive_stars_nugrid_MESAonly_fryer12mix.txt )

Could you explain why?

Bugs of ry

When I use the function to read the yields table, it shows that there is no ry. I check the code from NuPyCEE, there is no definition of ry. However, it use it and its function to read the table. Obviously, it cannot work.

travis build failing

travis is suddenly failing, not because of anything we do but because matplotlib in conda is not working properly, I fixed it in NuGridPy by instead installing required python packages with pip

chem_evol.py -> comma missing between two elements in an array

chem_evol.py, line 1563, definition of "self.elem_list_periodic_table". There is a comma missing between elements "Rn" "Fr", thus causing those two elements to combine together into one "RnFr". This cases self.elem_list_periodic_table to incorrectly have corresponding element number after Rn (86th element). Adding a comma solves the issue.

Extra sources flexibility

I think a good modification to our codes would be to add a mass range associated with the extra_source_table. Furthermore, it would be great to convert these parameters into arrays where the index of these array refers to one specific extra source. Here is an example with 2 extra sources:

extra_mass_range = [ [1,8], [8,12] ]
extra_source_table = ['s-process table.txt', 'r-process table.txt']

That would allow to control in which stars the extra table is applied, and it would prevent from adding more and more parameters for additional extra sources. In chem_evol.py, we could simply loop over the length of the extra_mass_range array.

I think we could do the same for delayed sources that need a delay time (e.g., neutron star mergers, black hole neutron star mergers, iRAWDs, and other things we want to try). We would "simply" need to include a delay-time distribution array as well.

Transition mass and input yield grid

When the transitionmass variable is set to one of the input yield grid masses then the initial mass range intervals for the yields are not set properly. Visible with iolevel=1. To solve this need to decide how the initial mass range intervals are split up in such a case.

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.