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"]["position"][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?

  • 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.8.0.tar.gz (37.3 kB view details)

Uploaded Source

Built Distribution

osyris-2.8.0-py3-none-any.whl (48.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: osyris-2.8.0.tar.gz
  • Upload date:
  • Size: 37.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.1 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.12

File hashes

Hashes for osyris-2.8.0.tar.gz
Algorithm Hash digest
SHA256 e94a9752d04f234b8f32fb1e222a5268ae6d5ae003055e7f01de6ca015371ae7
MD5 8b9b271d46524fffb1b7b6a55b83fa62
BLAKE2b-256 970820cca91f32215ead7aaf1eea1a7ea96da5a2729b73191ab2393dfdc45007

See more details on using hashes here.

File details

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

File metadata

  • Download URL: osyris-2.8.0-py3-none-any.whl
  • Upload date:
  • Size: 48.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.1 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.12

File hashes

Hashes for osyris-2.8.0-py3-none-any.whl
Algorithm Hash digest
SHA256 864f764178b0ec5f060c55c4aa902f3bf1fe2d53784590408a3912e3d787d711
MD5 04ca87ebdcc01a7ea0eef00c537c360c
BLAKE2b-256 2802fb249b2021665b808994025ac0e7b40947ad94c8a5af7dd4a145956838ed

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