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
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 numpy as np
import osyris
data = osyris.RamsesDataset(8, path="data").load()
osyris.hist2d(data["mesh"]["density"], data["mesh"]["B_field"],
norm="log", loglog=True)
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["mesh"]["density"])
center = data["mesh"]["position"][ind]
osyris.map(
data["mesh"].layer("density", norm="log"),
data["mesh"].layer("velocity", mode="vec"),
dx=2000 * osyris.units("au"),
origin=center,
direction="z",
)
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file osyris-3.0.0.tar.gz
.
File metadata
- Download URL: osyris-3.0.0.tar.gz
- Upload date:
- Size: 183.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d61353f29f18ceaf14775de74b2477a7b03387c0e55409ad9dab207148d3497a |
|
MD5 | f9593d96af30bbcdbd051b5e148b9185 |
|
BLAKE2b-256 | f1732406846bf4922bf770fdbe8949ca62494b8adcaf77b6152c7368285ade03 |
File details
Details for the file osyris-3.0.0-py3-none-any.whl
.
File metadata
- Download URL: osyris-3.0.0-py3-none-any.whl
- Upload date:
- Size: 53.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 69f04e79ecaccc14b0dab471b92327c765767bdfc783e3569564dc796d7133ce |
|
MD5 | 01313a0015d419d6457e0de5250fda07 |
|
BLAKE2b-256 | 71a1ef2955605ce9168179ee9e371ea984a1b1606be5c86d64528447542d6c35 |