Skip to main content

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:

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

music_mesa_tables-0.2.2-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (81.8 MB view hashes)

Uploaded CPython 3.7+ manylinux: glibc 2.17+ x86-64

music_mesa_tables-0.2.2-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (81.8 MB view hashes)

Uploaded CPython 3.7+ manylinux: glibc 2.17+ ARM64

music_mesa_tables-0.2.2-cp37-abi3-macosx_11_0_arm64.whl (82.6 MB view hashes)

Uploaded CPython 3.7+ macOS 11.0+ ARM64

music_mesa_tables-0.2.2-cp37-abi3-macosx_10_12_x86_64.whl (81.8 MB view hashes)

Uploaded CPython 3.7+ macOS 10.12+ x86-64

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page