Skip to main content

A package to visualize AMR data from the RAMSES code

Project description

Documentation Status Join the chat at https://gitter.im/osyris-project

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 can be found at https://osyris.readthedocs.io.

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)

hist2d

Create a 2D gas density slice 2000 au wide through the plane normal to z, with velocity vectors overlayed as arrows, once again 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")

map2d

Have a problem or need a new feature?

  • Bugs reports or feature requests should be submitted by opening an issue
  • For general discussions or questions about how to do something with osyris, start a new discussion

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.5.0.tar.gz (35.6 kB view details)

Uploaded Source

Built Distribution

osyris-2.5.0-py3-none-any.whl (47.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: osyris-2.5.0.tar.gz
  • Upload date:
  • Size: 35.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.10

File hashes

Hashes for osyris-2.5.0.tar.gz
Algorithm Hash digest
SHA256 9dabb7635134676ae69542abc23eec55ed4cea944d4c0674c8e52e4171c656d5
MD5 5b25cc5747349cd7eaa17ba4b964ef31
BLAKE2b-256 6d7097ab18766e1ba360d8a7c6e33a08c0746ec2b6809ecef9b1839a5af8f256

See more details on using hashes here.

File details

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

File metadata

  • Download URL: osyris-2.5.0-py3-none-any.whl
  • Upload date:
  • Size: 47.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.10

File hashes

Hashes for osyris-2.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c7d05f78de2f2a87d9c38632505730b6fc5b1115a515b4ba7b701211d83f1872
MD5 68b9c494df83f40ff03c2c2eea38f302
BLAKE2b-256 998238606ca37fbb412f0b617cafe07dd54cd288d5985e879c7e32c16a07075e

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