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_enrichtracer.py
- generate elemental abundances in star particles and gas cells in post-processing, using the enrichment-tracer model
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
- Transcript of Zach Hafen's video tutorial (https://www.youtube.com/watch?v=bl-rpzE8hrU) on using this package to read FIRE simulations.
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, in one of two ways:
- either using HTTPS:
git clone https://bitbucket.org/awetzel/gizmo_analysis.git
- or using SSH:
git clone git://bitbucket.org/awetzel/gizmo_analysis.git
Then do one of the following:
-
either point your PYTHONPATH to this repository (and also install and point PYTHONPATH to the utilities/ repository that it depends on)
-
or build and install this project via pip by going inside the top-level
gizmo_analysis/directory and doing:
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file gizmo_analysis-1.0.5.tar.gz.
File metadata
- Download URL: gizmo_analysis-1.0.5.tar.gz
- Upload date:
- Size: 161.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aa9266b0ca0e5442a93e01d607c9a11d1403e88b4348f3319445e784e7f8cedd
|
|
| MD5 |
88664da4d9605618a2254da61ba1397c
|
|
| BLAKE2b-256 |
06bdbfa3bbe2be1b668914bd192fab2c07d30ddb2ced94f53f26219d5b090469
|
File details
Details for the file gizmo_analysis-1.0.5-py3-none-any.whl.
File metadata
- Download URL: gizmo_analysis-1.0.5-py3-none-any.whl
- Upload date:
- Size: 166.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6bc236e8c66a2c256ac83dd27ca6aed0554dbf6eae02a254616188e583ea9aab
|
|
| MD5 |
ca24f9c3d8fd10a6b70437b6943ac568
|
|
| BLAKE2b-256 |
d31267aefe53aa22c2f5a49a18cdd86b313a02c8a423bb2eeca327de45212084
|