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.9.tar.gz (45.6 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.9-py3-none-any.whl (49.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyramis-0.1.9.tar.gz
  • Upload date:
  • Size: 45.6 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.9.tar.gz
Algorithm Hash digest
SHA256 eddaac416c9a955a4b5e7b7bcf77715edc22f9f6ee1e82ea7d798e56599e3eb0
MD5 5849cc553a2c6251ee7741e08b356ca7
BLAKE2b-256 60aab3d5e3d30a7753fa618a8865927286f1db9a7a7b29835db4f31512fbce16

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyramis-0.1.9-py3-none-any.whl
  • Upload date:
  • Size: 49.3 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.9-py3-none-any.whl
Algorithm Hash digest
SHA256 a719ae6624b101142deb0e2150d94b82f574fbf218e326a6c6fb93adde9379d7
MD5 61e42621e7a161f48206fad02905ce00
BLAKE2b-256 0f6e72fabc4467a3d9b486ced00320e25dea93f8f8cd30b3e59c7bab52b050a9

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