MESA tables for post-processing of MUSIC simulations
Project description
music-mesa-tables
Fast implementation of the 'mesa'
equation of state as used in the MUSIC
project.
MUSIC is a stellar convection code. See e.g. Viallet et al (2016), Goffrey et al (2017).
The so-called 'mesa'
equation of state implemented in MUSIC relies on tables
from the MESA project (version 15140).
In the regimes typically simulated in MUSIC, the relevant tables are:
- FreeEOS, from Irwin;
- OPAL, from Rogers and Nayfonov (2002);
- SCVH, from Saumon, Chabrier, and van Horn (1995).
See the MESA documentation for more details.
For use in MUSIC, these tables are reinterpolated in (density, internal energy) space. The reinterpolated tables are bundled in this package. This package is intended for post-processing of data from MUSIC simulations. To build stellar evolution models, refer to the MESA project.
This offers a Python API. Here is a simple example:
import music_mesa_tables as mmt
import numpy as np
eos = mmt.CstCompoEos(metallicity=0.02, he_frac=0.28)
density = np.array([1.05, 15.7, 134.9])
internal_energy = np.array([1e12, 1e15, 3e15])
state = mmt.CstCompoState(eos, density, internal_energy)
temperature = 10 ** state.compute(mmt.StateVar.LogTemperature)
# array([2.21745558e+03, 5.00852231e+06, 1.48317986e+07])
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
File details
Details for the file music_mesa_tables-0.2.2-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: music_mesa_tables-0.2.2-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 81.8 MB
- Tags: CPython 3.7+, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: maturin/1.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1a8edded1b42233f6afaf24dfa265da344b54126e8db4ce1c3eca14d29d40792 |
|
MD5 | f2df3c24967e9e9dfa59d9bf61d33a91 |
|
BLAKE2b-256 | fb7446c97306849131d26e144aceb22736e4a91f9fbe03f704f798ed442e3d02 |
File details
Details for the file music_mesa_tables-0.2.2-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
.
File metadata
- Download URL: music_mesa_tables-0.2.2-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
- Upload date:
- Size: 81.8 MB
- Tags: CPython 3.7+, manylinux: glibc 2.17+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: maturin/1.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ea551a2a394a3ebe08bd41f9d5a899b0c2b3edbb29baa8328b9d51c5ad247505 |
|
MD5 | e12778565efdb770aeb4d3a1d6ac8ad4 |
|
BLAKE2b-256 | 2b144f95c6536574912d157f5cb3b1df5b596dc97c6359006bb9805025d45619 |
File details
Details for the file music_mesa_tables-0.2.2-cp37-abi3-macosx_11_0_arm64.whl
.
File metadata
- Download URL: music_mesa_tables-0.2.2-cp37-abi3-macosx_11_0_arm64.whl
- Upload date:
- Size: 82.6 MB
- Tags: CPython 3.7+, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: maturin/1.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 84552266c64855b6abc48ed34ccb19692898372ec0f421dfc6bec8de032f2aaf |
|
MD5 | e224445d54ee9d3ab0d5c7d04fe96c6a |
|
BLAKE2b-256 | ce83083f4e67b9acdc44e1707c18d91da860e817ac98c42545b3f25fe765dae4 |
File details
Details for the file music_mesa_tables-0.2.2-cp37-abi3-macosx_10_12_x86_64.whl
.
File metadata
- Download URL: music_mesa_tables-0.2.2-cp37-abi3-macosx_10_12_x86_64.whl
- Upload date:
- Size: 81.8 MB
- Tags: CPython 3.7+, macOS 10.12+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: maturin/1.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6871230ef989f12e0b95c70cb9d5f0365a561a6b7d4afebe1cb5edf6d7f6432d |
|
MD5 | 02a0d3717cc96bea87dd609ea02fec7c |
|
BLAKE2b-256 | 9ad56be8ef4b30d1d19e79fb57e209ca6fb247c8ae8e9ae3bd58ab72b897a56c |