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),
reinterpolated in (density, internal energy) space. In the regimes typically
simulated in MUSIC, those tables come from the work of
Rogers and Nayfonov (2002).
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
Hashes for music_mesa_tables-0.2.1-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4ea214ae971e8be3041766c035c9026672ccc0478b29333a5d3eaa22ac66c3cc |
|
MD5 | a09e1667d82a7120dea213b77d7acdf3 |
|
BLAKE2b-256 | 5f4dcaa1c8730a05edcb2e087d09ca96a7882b7bea966f803f9e241d9419f442 |
Hashes for music_mesa_tables-0.2.1-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 25d16b2bcb6b47dfa33b364653beec19529a067868e56510c38f9747f1a0421c |
|
MD5 | dd46a0e68d339b367ab669578bf62271 |
|
BLAKE2b-256 | 9feccad6aba71acc9bfa97537ace8cb246f9337cc7b4a8f3640b4691c4cae473 |
Hashes for music_mesa_tables-0.2.1-cp37-abi3-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ef0c5d66cbf0af6092016a2fde462aea9858d7a8dfc5a1e9932fa9f86cc265ce |
|
MD5 | bce359dcba1af0aecb816ad36c1bf18b |
|
BLAKE2b-256 | c5f2ebe244c29f646e8e760e0a5080c84c310d62b38ac1cd0676aa9548bebc41 |
Hashes for music_mesa_tables-0.2.1-cp37-abi3-macosx_10_12_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f761e04e2dc414fe3a80844d998a812d5ba7ab8b935ff13ccb968ca08e8c5cb0 |
|
MD5 | cf6c7b3c77ae689a68730205f09ddb38 |
|
BLAKE2b-256 | 2ee06216c51cc479dcf06a3a9c0cb16ca82b0d541e586ac904435ee39264ee98 |