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 map 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"]["position"][ind.values]
osyris.map({"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?

  • Bug 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.10.2.tar.gz (323.2 kB view details)

Uploaded Source

Built Distribution

osyris-2.10.2-py3-none-any.whl (50.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: osyris-2.10.2.tar.gz
  • Upload date:
  • Size: 323.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.17

File hashes

Hashes for osyris-2.10.2.tar.gz
Algorithm Hash digest
SHA256 cb06697084be5d11fd92a888023cc68f6c65e1b160495aefce23784f54954bc1
MD5 ea54b6a947a9f769ecc51ac21b5b1003
BLAKE2b-256 21d86bb577a337c5c288a02d1e30611c172e9510bd898ab7a76d3455bbf015f5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: osyris-2.10.2-py3-none-any.whl
  • Upload date:
  • Size: 50.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.17

File hashes

Hashes for osyris-2.10.2-py3-none-any.whl
Algorithm Hash digest
SHA256 4e8db9c579180a8381ac59b456d68bcb5e7d0950d8c22f122f45506da2d0433a
MD5 fc846f64c05e8d5a2274d86b506b936f
BLAKE2b-256 deee0225f74cd8421fd193479fd640716d4f3453d8e8b16355e6ae2997f91dcd

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