A python-based ramses analyzer for minimalist
Project description
PYthon-based Ramses Analyzer MInimaliSt
A minimalist version of Ramses Univsersal Reader, to provide key essential features for management and analysis of the RAMSES simulation data.
Installing
Using pip
pip install pyramis
How to use
Reading the particle data
from pyramis import io
ramses_path = '/path/to/ramses' # path to the directory where output_* are located
iout = 3 # output number
region = [[0.4, 0.6], [0.4, 0.6], [0.4, 0.6]] # targeting box
part = io.read_part(ramses_path, iout, region)
print(f"Total particle mass within the box is {np.sum(part['m'])}") # in code unit
Reading the cell data
from pyramis import io
ramses_path = '/path/to/ramses' # path to the directory where output_* are located
iout = 3 # output number
region = [[0.4, 0.6], [0.4, 0.6], [0.4, 0.6]] # targeting box
cell = io.read_cell(ramses_path, iout, region)
print(f"Mean gas density within the box is {np.mean(cell['rho'])}") # in code unit
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
pyramis-0.1.7.tar.gz
(37.6 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
pyramis-0.1.7-py3-none-any.whl
(40.9 kB
view details)
File details
Details for the file pyramis-0.1.7.tar.gz.
File metadata
- Download URL: pyramis-0.1.7.tar.gz
- Upload date:
- Size: 37.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d2a7a7b69a17785bbf4d483f291e746f092a5f7911b9ceb7d7517dae0d1bb341
|
|
| MD5 |
381c88eaa00d54bd8c2ca4d45369c23a
|
|
| BLAKE2b-256 |
205075a089ccb90b3c56ebf2cfa3c4859c50b9d1fbe7a7046411183206e5cbfa
|
File details
Details for the file pyramis-0.1.7-py3-none-any.whl.
File metadata
- Download URL: pyramis-0.1.7-py3-none-any.whl
- Upload date:
- Size: 40.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6da1347e2056c2bedc758354e5894f77401d589ad0c3a5a520870066f5056f6a
|
|
| MD5 |
e1b51614c2a32b569e3c32a2b5b095f6
|
|
| BLAKE2b-256 |
07f62b7ac9c12d9ac98e28dcb88e8171ffabc31d6c9bdadd01aba569df500f0f
|