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.10.tar.gz (46.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.10-py3-none-any.whl (50.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyramis-0.1.10.tar.gz
  • Upload date:
  • Size: 46.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.10.tar.gz
Algorithm Hash digest
SHA256 a3b42b896426dcbcdab87b5829a20ddc5e48836f5b8e45f9ce396a8fd0a44d46
MD5 8bb110f34b509386cf94cf73a4386d16
BLAKE2b-256 c934b775942e0a74db06643aa4fe385def8f89c11e6f6f973d9cb829b3057f8a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyramis-0.1.10-py3-none-any.whl
  • Upload date:
  • Size: 50.4 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.10-py3-none-any.whl
Algorithm Hash digest
SHA256 bfdbfdfd0c75cfc2a1f2d14d7330e789106bafcba54b1980f069264cb74533d7
MD5 6d4f6740e4605e6d50f94a6b3d849577
BLAKE2b-256 628e5c933021ef6cdab201c148e4ca9a00d650871d2acfce1d9065322ea96fba

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