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.8.tar.gz (45.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.8-py3-none-any.whl (49.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyramis-0.1.8.tar.gz
  • Upload date:
  • Size: 45.5 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.8.tar.gz
Algorithm Hash digest
SHA256 ca03939432bbe734551d6c361844c7b1053ab3334bc50728a616949d538e039e
MD5 72bcf274968c48450f8ecbfe1fbd1ab8
BLAKE2b-256 59a35eed44dadbb7b1f50fbf09eed4f235f43f2d49f19c646e2bd00a68abc769

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyramis-0.1.8-py3-none-any.whl
  • Upload date:
  • Size: 49.2 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.8-py3-none-any.whl
Algorithm Hash digest
SHA256 16aa72f77ca29561b6d28a0644c7dc0a91d76d0071cce01483f372a74333bab4
MD5 958dc250682dc93819da32f423f512f6
BLAKE2b-256 2a2fcf8587e1faab2a188621b38820e6842479ce850470ddf7c76a7b1db75476

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