Skip to main content

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

Using developement mode

git clone https://github.com/sanhancluster/pyramis
cd pyramis
pip install -e .

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


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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyramis-0.1.11-py3-none-any.whl (54.6 kB view details)

Uploaded Python 3

File details

Details for the file pyramis-0.1.11.tar.gz.

File metadata

  • Download URL: pyramis-0.1.11.tar.gz
  • Upload date:
  • Size: 50.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for pyramis-0.1.11.tar.gz
Algorithm Hash digest
SHA256 b620d63de8f00a21c04253c0dcc5b98ca0b7952ba0a25a582a045627c1533c9b
MD5 b65fd5885de7a25b75bb024f0d09b3fa
BLAKE2b-256 57a2ccf2eed6a1784635f043e1bf82b5c9bb43b8cc3488c29e6d93d57fcbcf3f

See more details on using hashes here.

File details

Details for the file pyramis-0.1.11-py3-none-any.whl.

File metadata

  • Download URL: pyramis-0.1.11-py3-none-any.whl
  • Upload date:
  • Size: 54.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for pyramis-0.1.11-py3-none-any.whl
Algorithm Hash digest
SHA256 0c547e514b9b43398fb11eaf267db08cffdb7199eb5ebd634b515fda2e081c08
MD5 02c9040401c8860d58c9de485dd77bf9
BLAKE2b-256 5b230209a4b3934eb05f97fd7b187b1e76c153bb0ec6ed2210ef481d2a10f162

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page