Skip to main content

read and analyze Gizmo simulations

Project description

Description

Python package for reading and analyzing simulations generated using the Gizmo code, in particular, the FIRE cosmological simulations.


Requirements

python 3, numpy, scipy, h5py, matplotlib

This package also requires the utilities/ Python package for various utility functions.


Contents

gizmo_analysis

gizmo_io.py

  • read particles from Gizmo snapshot files

gizmo_plot.py

  • analyze and plot particle data

gizmo_track.py

  • track star particles and gas cells across snapshots

gizmo_file.py

  • clean, compress, delete, or transfer Gizmo snapshot files

gizmo_diagnostic.py

  • run diagnostics on Gizmo simulations

gizmo_ic.py

  • generate cosmological zoom-in initial conditions from existing snapshot files

gizmo_star.py

  • models of stellar evolution as implemented in FIRE-2 and FIRE-3: rates and yields from supernovae (core-collapse and white-dwarf) and stellar winds

gizmo_elementtracer.py

  • generate elemental abundances in star particles and gas cells in post-processing, using the element-tracer module

tutorials

gizmo_tutorial_read.ipynb

  • Jupyter notebook tutorial for reading particle data, understanding its data structure and units

gizmo_tutorial_analysis.ipynb

  • Jupyter notebook tutorial for analyzing and plotting particle data

transcript.txt

data

snapshot_times.txt

  • example file for storing information about snapshots: scale-factors, redshifts, times, etc

Units

Unless otherwise noted, this package stores all quantities in (combinations of) these base units

  • mass [M_sun]
  • position [kpc comoving]
  • distance, radius [kpc physical]
  • time [Gyr]
  • temperature [K]
  • magnetic field [Gauss]
  • elemental abundance [linear mass fraction]

These are the common exceptions to those standards

  • velocity [km/s]
  • acceleration [km/s / Gyr]
  • gravitational potential [km^2 / s^2]
  • rates (star formation, cooling, accretion) [M_sun / yr]
  • metallicity (if converted from stored massfraction) [log10(mass_fraction / mass_fraction_solar)], using Asplund et al 2009 for Solar

Installing

The easiest way to install this packages and all of its dependencies is by using pip:

python -m pip install gizmo_analysis

Alternately, to install the latest stable version from source, clone from bitbucket:

git clone git://bitbucket.org/awetzel/gizmo_analysis.git

then either point your PYTHONPATH to this repository (along with our utilities repository that it depends on), or build and install this project via pip by going inside the top-level gizmo_analysis directory and:

python -m pip install .

Using

Once installed, you can call individual modules like this:

import gizmo_analysis as gizmo
gizmo.io

Citing

If you use this package, please cite it, along the lines of: 'This work used GizmoAnalysis (http://ascl.net/2002.015), which first was used in Wetzel et al 2016 (https://ui.adsabs.harvard.edu/abs/2016ApJ...827L..23W).'

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

gizmo_analysis-1.0.2.tar.gz (156.1 kB view details)

Uploaded Source

Built Distribution

gizmo_analysis-1.0.2-py3-none-any.whl (161.5 kB view details)

Uploaded Python 3

File details

Details for the file gizmo_analysis-1.0.2.tar.gz.

File metadata

  • Download URL: gizmo_analysis-1.0.2.tar.gz
  • Upload date:
  • Size: 156.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.12.2

File hashes

Hashes for gizmo_analysis-1.0.2.tar.gz
Algorithm Hash digest
SHA256 c31b09e22ce6f4be15601f93fbffb8b49ed55a33c7052c4199ec0db919ca4b45
MD5 fcc25ba37f6b0b74a3ce5b7567d1a63d
BLAKE2b-256 35ca654a5a065337fbc34e00e5556de302ed8387d368a8799b10b812056eab3a

See more details on using hashes here.

File details

Details for the file gizmo_analysis-1.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for gizmo_analysis-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 d6bd837b95a0f063c52d32b199ebd8ffa1b68c08b2a4be2d34a93f75f47f7053
MD5 41799dcc5dfe1a649d6b14112daa523c
BLAKE2b-256 105f4ad3cf5bfea63345f65fe624a901045d5e3143c6dd40776fe0a087259219

See more details on using hashes here.

Supported by

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