Giter Club home page Giter Club logo

cocopy's Introduction

CoCoPy

This repository contains all Jupyter notebooks and scripts needed to reproduce or extend the analysis presented in the following study.

R. Andrassy, J. Higl, H. Mao, M. Mocák, D. G. Vlaykov, W. D. Arnett, I. Baraffe, S. W. Campbell, T. Constantino, P. V. F. Edelmann, T. Goffrey , T. Guillet, F. Herwig, R. Hirschi, L. Horst, G. Leidi, C. Meakin, J. Pratt, F. Rizzuti, F. K. Röpke, and P. Woodward 2021, Dynamics in a stellar convective layer and at its boundary: Comparison of five 3D hydrodynamics codes, submitted to Astronomy & Astrophysics in October 2021

The Jupyter notebooks can be run on the CoCo Hub, which also contains the data files necessary for the analysis. Alternatively, you can clone this repository on your machine and download the 1D and 2D data from Zenodo (add link). The original 3D data cubes are only available on the CoCo Hub because of the large data volume.

What is included

  • analysis.py: Python script that was used to generate 1D averages, spectra and 2D slices from the original 3D data cubes.
  • 1D2D/
    • 1D-profiles.ipynb: Jupyter notebook that analyses and plots the 1D profiles. The notebook also plots the MESA stellar-structure model contained in the file mesa_model_29350.npy, which the simulation setup is based on.
    • 2D-slices.ipynb: Jupyter notebook that compares 2D slices from different simulations at a given point in time.
    • spectra.ipynb: Jupyter notebook that loads and plots kinetic-energy spectra.
    • animations.ipynb: Jupyter notebook that creates individual frames of the animations available on Zenodo (add link).
    • FK-in-two-stream-model.ipynb: Jupyter notebook that creates Fig. B.1 shown in the paper's Appendix B.
    • setup-two-layers.ipynb: Jupyter notebook that generates the 1D initial stratification as defined in the paper.
    • plotting_settings.py: Python script that that defines the most important plotting-related parameters and variables.
    • make-hstry-files.ipynb: Jupyter notebook that generates simulation-history files. Although not necessary for the analysis, the history files speed up access to the .rprof files by simulation time, which may be useful in future studies.
  • 3D/
    • 3D-data-exploration.ipynb: Jupyter notebook that shows how to load and visualise the 3D data.
    • PPMstardata.py: Python reader of 3D data cubes from the PPMSTAR code.
    • slhoutput.py: Python reader of 3D data cubes from the SLH code.
    • UTILS/PROMPI/PROMPI_data.py: Python reader of 3D data cubes from the PROMPI code.

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.