Skip to main content

A package to visualize AMR data from the RAMSES code

Project description

Osyris

A python visualization utility for RAMSES astrophysical simulations data. Osyris aims to remain portable, lightweight and fast, to allow users to quickly explore and understand their simulation data, as well as produce publication grade figures.

Documentation

The documentation for osyris is hosted on Readthedocs.

Installation

pip install osyris

A short example

You can download the sample data here.

Plot a 2D histogram of the cell magnetic field versus the gas density.

import osyris
data = osyris.Dataset(8, scale="au", path="data").load()
osyris.histogram2d(data["hydro"]["density"], data["hydro"]["B_field"],
                   norm="log", loglog=True)

Screenshot at 2021-10-09 21-19-12

Create a 2D gas density slice 2000 au wide through the plane normal to z, with velocity vectors overlayed as arrows, once agains using layers:

ind = np.argmax(data["hydro"]["density"])
center = data["amr"]["xyz"][ind.values]
osyris.plane({"data": data["hydro"]["density"], "norm": "log"}, # layer 1
             {"data": data["hydro"]["velocity"], "mode": "vec"}, # layer 2
             dx=2000 * osyris.units("au"),
             origin=center,
             direction="z")

Screenshot at 2021-10-09 21-20-01

Have a problem or need a new feature?

Submit an issue on Github.

Contributors

  • Neil Vaytet (StarPlan/NBI)
  • Tommaso Grassi (StarPlan/NBI)
  • Matthias Gonzalez (CEA Saclay)
  • Troels Haugbolle (StarPlan/NBI)
  • Lucas Beeres

Logo credit

Icon vector created by frimufilms - www.freepik.com

Project details


Download files

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

Source Distribution

osyris-2.3.1.tar.gz (32.8 kB view details)

Uploaded Source

Built Distribution

osyris-2.3.1-py3-none-any.whl (42.3 kB view details)

Uploaded Python 3

File details

Details for the file osyris-2.3.1.tar.gz.

File metadata

  • Download URL: osyris-2.3.1.tar.gz
  • Upload date:
  • Size: 32.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.8

File hashes

Hashes for osyris-2.3.1.tar.gz
Algorithm Hash digest
SHA256 41b2b54bf7d8049b800fca72d507943bc0863a902de4aa3d77087efd02e9d3d3
MD5 4d7870c90f32af8c1e74c6f6e36102d6
BLAKE2b-256 878eea9bb9174dafa8eeaccede3d26f4ec20447891a4c5e7316689b51f31e77c

See more details on using hashes here.

File details

Details for the file osyris-2.3.1-py3-none-any.whl.

File metadata

  • Download URL: osyris-2.3.1-py3-none-any.whl
  • Upload date:
  • Size: 42.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.8

File hashes

Hashes for osyris-2.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 11be64a96564f09b640887c9b06e4a150787ebe04d19374390fa6f9e0584a4b0
MD5 3afb03299fd7da89b0a519e7fbed36d1
BLAKE2b-256 a040c071afef334df8e74a4f9e49fab9b2548e315bce7d10ce360fedb5b94abc

See more details on using hashes here.

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