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

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.6.tar.gz (37.5 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.6-py3-none-any.whl (40.9 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pyramis-0.1.6.tar.gz
Algorithm Hash digest
SHA256 d29b143c6e7c74c110b26d3deef0c043fe8a5c1784f342519c5156491ddede64
MD5 6e54027ac4dbfa2144b2492d75a12409
BLAKE2b-256 ab31172764528ed875fe608f9b4fd1a535d6b96975362fa63aad14bbd45c3c96

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyramis-0.1.6-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

Hashes for pyramis-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 9184fd161af3faf722e8a0f36516f1556f47b79e127ab19a86d42128ccb63e37
MD5 077bc75d5e06555c429de94c5992a327
BLAKE2b-256 7584b488bf57a48ab6c3d4c44305cc6a6a9b6d22ea450733728749db45e5c497

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